272 lines
7.6 KiB
TypeScript
272 lines
7.6 KiB
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import Link from "next/link";
|
|
import "./pregunta3_3.css";
|
|
|
|
export default function Pregunta3_3() {
|
|
const data = [
|
|
{
|
|
tipo: "Core Ultra (i3, i5, i7) Serie 2",
|
|
alumnos: "",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "",
|
|
total: "0",
|
|
},
|
|
{
|
|
tipo: "Core Ultra (i3, i5, i7) Serie 1",
|
|
alumnos: "",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "",
|
|
total: "0",
|
|
},
|
|
{
|
|
tipo: "i9 o equivalentes (13a generación en adelante)",
|
|
alumnos: "",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "",
|
|
total: "0",
|
|
},
|
|
{
|
|
tipo: "i7 o equivalentes (12a generación en adelante)",
|
|
alumnos: "16",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "27",
|
|
total: "43",
|
|
},
|
|
{
|
|
tipo: "i7 o equivalentes (11a generación)",
|
|
alumnos: "",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "1",
|
|
total: "1",
|
|
},
|
|
{
|
|
tipo: "i5 o equivalentes (13a generación en adelante)",
|
|
alumnos: "",
|
|
profesores: "1",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "1",
|
|
total: "2",
|
|
},
|
|
{
|
|
tipo: "i5 o equivalentes (12a generación en adelante)",
|
|
alumnos: "146",
|
|
profesores: "34",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "42",
|
|
total: "222",
|
|
},
|
|
{
|
|
tipo: "i5 o equivalentes (11a generación en adelante)",
|
|
alumnos: "",
|
|
profesores: "2",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "15",
|
|
total: "19",
|
|
},
|
|
{
|
|
tipo: "i3 o equivalentes (13a generación en adelante)",
|
|
alumnos: "",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "12",
|
|
total: "12",
|
|
},
|
|
{
|
|
tipo: "i3 o equivalentes (12a generación en adelante)",
|
|
alumnos: "",
|
|
profesores: "8",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "23",
|
|
total: "31",
|
|
},
|
|
{
|
|
tipo: "i3 o equivalentes (11a generación en adelante)",
|
|
alumnos: "",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "",
|
|
total: "0",
|
|
},
|
|
{
|
|
tipo: "Pentium Dual Core o anteriores",
|
|
alumnos: "",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "",
|
|
total: "0",
|
|
},
|
|
{
|
|
tipo: "Celeron (equivalente 2018 hasta la fecha)",
|
|
alumnos: "299",
|
|
profesores: "8",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "4",
|
|
total: "311",
|
|
},
|
|
{
|
|
tipo: "Celeron anteriores",
|
|
alumnos: "",
|
|
profesores: "",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "",
|
|
total: "0",
|
|
},
|
|
{
|
|
tipo: "Core2 Duo, Quad Core, Pentium Dual Core o anteriores",
|
|
alumnos: "4",
|
|
profesores: "4",
|
|
tecnicos: "",
|
|
investigadores: "",
|
|
administrativos: "3",
|
|
total: "11",
|
|
},
|
|
];
|
|
|
|
const total = {
|
|
alumnos: "445",
|
|
profesores: "132",
|
|
tecnicos: "0",
|
|
investigadores: "0",
|
|
administrativos: "139",
|
|
total: "716",
|
|
};
|
|
|
|
return (
|
|
<main className="pregunta-page pregunta3">
|
|
<div className="pregunta-container">
|
|
<h1 className="pregunta-titulo">PREGUNTA 3 (3/5)</h1>
|
|
|
|
<section className="pregunta-seccion">
|
|
<p className="pregunta-texto">
|
|
3. Desglose la cantidad de población beneficiada por plataforma y
|
|
tipo de procesador: *
|
|
</p>
|
|
<p className="pregunta-subtexto">
|
|
Presione cada pestaña para ingresar la información.
|
|
</p>
|
|
|
|
{/* === PESTAÑAS === */}
|
|
<div className="tab-container">
|
|
<div className="tab inactive">
|
|
Computadoras de escritorio Plataforma PC
|
|
</div>
|
|
<div className="tab inactive">
|
|
Computadoras de escritorio Plataforma Apple
|
|
</div>
|
|
<div className="tab active">
|
|
Computadoras portátiles Plataforma PC
|
|
</div>
|
|
<div className="tab inactive">
|
|
Computadoras portátiles Plataforma Apple
|
|
</div>
|
|
<div className="tab inactive">Alto rendimiento Servidores</div>
|
|
</div>
|
|
|
|
{/* === TABLA === */}
|
|
<div className="tabla-pc-container">
|
|
<table className="tabla-pc">
|
|
<thead>
|
|
<tr>
|
|
<th rowSpan={2} className="header-procesador">
|
|
Plataforma PC <br /> Tipo de procesador
|
|
</th>
|
|
<th colSpan={5} className="header-poblacion">
|
|
Población Beneficiada
|
|
</th>
|
|
<th rowSpan={2} className="header-total">
|
|
Total
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<th className="sub-header">Alumnos</th>
|
|
<th className="sub-header">Profesores</th>
|
|
<th className="sub-header">Técnicos Académicos</th>
|
|
<th className="sub-header">Investigadores</th>
|
|
<th className="sub-header">Administrativos</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{data.map((item, index) => (
|
|
<tr key={index}>
|
|
<td className="tipo-procesador">{item.tipo}</td>
|
|
<td>
|
|
<input type="text" value={item.alumnos} readOnly />
|
|
</td>
|
|
<td>
|
|
<input type="text" value={item.profesores} readOnly />
|
|
</td>
|
|
<td>
|
|
<input type="text" value={item.tecnicos} readOnly />
|
|
</td>
|
|
<td>
|
|
<input type="text" value={item.investigadores} readOnly />
|
|
</td>
|
|
<td>
|
|
<input
|
|
type="text"
|
|
value={item.administrativos}
|
|
readOnly
|
|
/>
|
|
</td>
|
|
<td className="total-celda">{item.total}</td>
|
|
</tr>
|
|
))}
|
|
<tr className="fila-total">
|
|
<td className="tipo-procesador">Total</td>
|
|
<td>
|
|
<input type="text" value={total.alumnos} readOnly />
|
|
</td>
|
|
<td>
|
|
<input type="text" value={total.profesores} readOnly />
|
|
</td>
|
|
<td>
|
|
<input type="text" value={total.tecnicos} readOnly />
|
|
</td>
|
|
<td>
|
|
<input type="text" value={total.investigadores} readOnly />
|
|
</td>
|
|
<td>
|
|
<input type="text" value={total.administrativos} readOnly />
|
|
</td>
|
|
<td className="total-celda final-total">{total.total}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<button className="boton-consultar">
|
|
Consultar las equivalencias de procesadores
|
|
</button>
|
|
</div>
|
|
</section>
|
|
|
|
<div className="boton-contenedor">
|
|
<Link href="/pregunta3.4" className="boton siguiente">
|
|
Pregunta 3 (4/5) →
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|