diff --git a/frontend/becario.html b/frontend/becario.html index 5283307..12f99a3 100644 --- a/frontend/becario.html +++ b/frontend/becario.html @@ -79,6 +79,13 @@ const ErrorBar = ({ error, onClose }) => !error ? null : ( ); +// Pie de marca, compartido por las vistas de esta página. +const PoweredBy = () => ( +
+ Powered by Collina Systems +
+); + // ═══════════════ Acceso · login / registro ═══════════════ function Acceso({ onEntra }) { const [modo, setModo] = useState(() => @@ -148,6 +155,7 @@ function Acceso({ onEntra }) {

)} + ); @@ -205,6 +213,9 @@ function Portal({ session, onSalir }) { const pendiente = resumen.estado === "pendiente"; const meta = h.porcentaje >= 100; const secTitle = { margin: "20px 0 9px", fontFamily: fonts.title, fontWeight: 600, fontSize: "15px", color: palette.brand }; + // Campo "sin caja": solo el texto con una línea sutil abajo (más elegante que + // el recuadro relleno). Se pasa como override de style al Input cream. + const campoLimpio = { border: "none", borderBottom: `1.5px solid ${palette.line}`, borderRadius: 0, background: "transparent", padding: "10px 2px" }; return (
@@ -290,22 +301,22 @@ function Portal({ session, onSalir }) {
- setDia({ ...dia, fecha: e.target.value })} required /> + setDia({ ...dia, fecha: e.target.value })} required style={campoLimpio} />
- setDia({ ...dia, entrada: e.target.value })} required /> + setDia({ ...dia, entrada: e.target.value })} required style={campoLimpio} />
- setDia({ ...dia, salida: e.target.value })} required /> + setDia({ ...dia, salida: e.target.value })} required style={campoLimpio} />

Las horas se registran en intervalos de 5 minutos (por ejemplo 9:00, 9:05, 9:10).

- setDia({ ...dia, concepto: e.target.value })} placeholder="Describe la actividad" required /> + setDia({ ...dia, concepto: e.target.value })} placeholder="Describe la actividad" required style={campoLimpio} />
{dia.entrada && dia.salida && dia.salida <= dia.entrada && ( La salida debe ser posterior a la entrada. @@ -332,7 +343,7 @@ function Portal({ session, onSalir }) { )} -
+
); diff --git a/frontend/checada.html b/frontend/checada.html index 3131f3a..d299cff 100644 --- a/frontend/checada.html +++ b/frontend/checada.html @@ -48,6 +48,9 @@ const Shell = ({ children }) => (
{children} +
+ Powered by Collina Systems +
); diff --git a/frontend/kiosco.html b/frontend/kiosco.html index 556ddb3..84d2472 100644 --- a/frontend/kiosco.html +++ b/frontend/kiosco.html @@ -38,6 +38,9 @@ const Shell = ({ children }) => (
{children} +
+ Powered by Collina Systems +
); @@ -163,7 +166,7 @@ function App() { useEffect(() => { apiFetch("/auth/session").then(setSession).catch(() => setSession(null)); }, []); const salir = async () => { try { await apiFetch("/auth/logout", { method: "POST" }); } catch {} setSession(null); }; if (session === undefined) return ; - if (!session) return ; + if (!session) return ; return ; } ReactDOM.createRoot(document.getElementById("root")).render(); diff --git a/frontend/panel.html b/frontend/panel.html index 012afef..762b139 100644 --- a/frontend/panel.html +++ b/frontend/panel.html @@ -66,6 +66,13 @@ const estadoDispTone = (e) => ({ pendiente: "warn", aprobado: "success", revocad const iconBtn = (name, o) => {icons[name](o)}; +// Pie de marca, compartido por login y panel. +const PoweredBy = () => ( +
+ Powered by Collina Systems +
+); + // ── Modal de confirmación (sustituye el diálogo nativo del navegador) ── // La llamada al backend vive en `onConfirm` (el padre); aquí solo la UI. function ConfirmModal({ title, message, confirmLabel, variant, onConfirm, onCancel }) { @@ -101,7 +108,7 @@ function Login({ onLogin }) { } finally { setBusy(false); } }; return ( -
+

Panel de supervisión

@@ -114,6 +121,7 @@ function Login({ onLogin }) {
+
); } @@ -630,6 +638,7 @@ function Panel({ session, onLogout }) { {view.name === "detalle" && setView({ name: "lista" })} onError={setError} />} {view.name === "solicitudes" && } {view.name === "config" && } + );