From 1f0bb8e96d710dd4b6dc8d5eb879aa525526acb3 Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Thu, 23 Oct 2025 17:37:03 -0600 Subject: [PATCH 1/3] new style --- src/app/styles/base/_globales.scss | 10 ++++++-- src/app/styles/layout/login.scss | 6 ++--- src/components/Login.tsx | 39 +++++++++++++++++------------- 3 files changed, 33 insertions(+), 22 deletions(-) diff --git a/src/app/styles/base/_globales.scss b/src/app/styles/base/_globales.scss index abacb2a..a5f8dc6 100644 --- a/src/app/styles/base/_globales.scss +++ b/src/app/styles/base/_globales.scss @@ -2,6 +2,7 @@ html { font-size: 62.5%; box-sizing: border-box; scroll-padding-top: 0rem; + scrollbar-width: none; } *, @@ -19,8 +20,7 @@ body { font-size: 2rem; font-optical-sizing: auto; min-height: 100dvh; - width: 100%; - max-width: 100vw; + width: 100vw; &.overflow-hidden { overflow: hidden; @@ -56,3 +56,9 @@ h3 { font-size: 4rem; text-align: center; } + +label { + display: block; + text-align: start; + width: 100%; +} diff --git a/src/app/styles/layout/login.scss b/src/app/styles/layout/login.scss index 63fae1d..7c1fe04 100644 --- a/src/app/styles/layout/login.scss +++ b/src/app/styles/layout/login.scss @@ -20,8 +20,8 @@ width: 100%; padding: 10px; margin-bottom: 15px; - border-radius: 5px; - border: 1px solid #ccc; + border-radius: 10px; + border: 1px solid #003e79; } button { @@ -30,7 +30,7 @@ background-color: #004aad; color: white; border: none; - border-radius: 5px; + border-radius: 4px; cursor: pointer; } diff --git a/src/components/Login.tsx b/src/components/Login.tsx index 7fa8b92..092db74 100644 --- a/src/components/Login.tsx +++ b/src/components/Login.tsx @@ -3,6 +3,7 @@ import { useState } from "react"; import "../app/styles/layout/login.scss"; +import "../app/styles/base/_globales.scss"; // si tienes estilos globales export default function Login() { const [email, setEmail] = useState(""); @@ -16,25 +17,29 @@ export default function Login() { return (
-

Iniciar sesión

+

Inicio sesión

{error &&

{error}

}
- - setEmail(e.target.value)} - required - /> - - setPassword(e.target.value)} - required - /> +
+ + setEmail(e.target.value)} + required + /> +
+
+ + setPassword(e.target.value)} + required + /> +
From fedfdde90dc550ece8c3ec97dfcc217263cf2761 Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Fri, 24 Oct 2025 17:16:03 -0600 Subject: [PATCH 2/3] added image --- src/app/layout.tsx | 2 +- src/app/styles/base/_globales.scss | 2 +- src/app/styles/layout/header.module.scss | 5 +++-- src/app/styles/layout/login.scss | 6 +++++- src/components/Login.tsx | 11 ++++++++++- src/components/header.tsx | 2 +- 6 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e4b0d55..14938eb 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,7 +5,7 @@ import "../app/styles/base/_globales.scss"; // si tienes estilos globales // Carga optimizada de fuentes const inter = Inter({ subsets: ["latin"], - weight: ["400", "700"], + weight: ["400", "500", "700"], variable: "--font-inter", }); const montserrat = Montserrat({ diff --git a/src/app/styles/base/_globales.scss b/src/app/styles/base/_globales.scss index a5f8dc6..7461881 100644 --- a/src/app/styles/base/_globales.scss +++ b/src/app/styles/base/_globales.scss @@ -40,7 +40,7 @@ h1, h2, h3 { margin: 0 0 5rem 0; - font-weight: 900; + font-weight: 600; font-family: "Montserrat", sans-serif; /* 👈 Títulos con Montserrat */ } diff --git a/src/app/styles/layout/header.module.scss b/src/app/styles/layout/header.module.scss index 2ae8617..2ef7777 100644 --- a/src/app/styles/layout/header.module.scss +++ b/src/app/styles/layout/header.module.scss @@ -25,13 +25,14 @@ content: ""; top: 0; left: -20px; - width: 65%; + width: 100%; height: 30px; min-width: 300px; - background: #bd8c01; + background: linear-gradient(to right, #bd8c01 40%, #fff 100%); transform: skew(-45deg); z-index: 0; } + .header { background-color: #fff; display: grid; diff --git a/src/app/styles/layout/login.scss b/src/app/styles/layout/login.scss index 7c1fe04..fa561df 100644 --- a/src/app/styles/layout/login.scss +++ b/src/app/styles/layout/login.scss @@ -6,7 +6,7 @@ } .login-container { - width: 400px; + width: 300px; margin: 100px auto; padding: 1.5rem; text-align: center; @@ -39,3 +39,7 @@ margin-bottom: 10px; } } + +.imageContainer { + border-radius: 20px; +} diff --git a/src/components/Login.tsx b/src/components/Login.tsx index 092db74..5c7f35b 100644 --- a/src/components/Login.tsx +++ b/src/components/Login.tsx @@ -4,6 +4,7 @@ import { useState } from "react"; import "../app/styles/layout/login.scss"; import "../app/styles/base/_globales.scss"; // si tienes estilos globales +import Image from "next/image"; export default function Login() { const [email, setEmail] = useState(""); @@ -40,9 +41,17 @@ export default function Login() { required /> - + +
+ Logo FES + Logo FES + Logo FES + Logo FES + Logo FES + Logo FES +
); } diff --git a/src/components/header.tsx b/src/components/header.tsx index 4ad2e9c..ff06ddf 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -21,7 +21,7 @@ function Header() { src="/logo-blanco.png" alt="Logo FES" width={250} - height={60} + height={70} />
From e6151d0fe5ced5edfdf78f840666d8a325f4334b Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Fri, 24 Oct 2025 17:34:07 -0600 Subject: [PATCH 3/3] modified barNavigation and name of dasboard --- src/app/{dashboard => Escaner}/page.tsx | 40 +++++++++++++++++-------- src/components/BarNavigation.tsx | 21 +++++++------ 2 files changed, 38 insertions(+), 23 deletions(-) rename src/app/{dashboard => Escaner}/page.tsx (70%) diff --git a/src/app/dashboard/page.tsx b/src/app/Escaner/page.tsx similarity index 70% rename from src/app/dashboard/page.tsx rename to src/app/Escaner/page.tsx index a04e1f4..40b30f7 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/Escaner/page.tsx @@ -3,7 +3,7 @@ import { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import BarcodeScanner from "../../components/BarcodeScanner"; -import "../styles/components/dashboard.scss"; +import "../styles/layout/dashboard.scss"; type Equipo = { id: string; @@ -22,14 +22,11 @@ export default function Dashboard() { const [search, setSearch] = useState(""); const [lastScan, setLastScan] = useState(""); - useEffect(() => { - const loggedIn = localStorage.getItem("loggedIn"); - if (!loggedIn) router.push("/"); - }, [router]); - const buscarEquipo = () => { const resultado = equipos.filter( - e => e.id.includes(search) || e.nombre.toLowerCase().includes(search.toLowerCase()) + (e) => + e.id.includes(search) || + e.nombre.toLowerCase().includes(search.toLowerCase()) ); setEquipos(resultado); }; @@ -42,7 +39,7 @@ export default function Dashboard() { const handleScan = (code: string) => { setLastScan(code); - const encontrado = equipos.find(e => e.id === code); + const encontrado = equipos.find((e) => e.id === code); if (encontrado) { alert(`Equipo encontrado: ${encontrado.nombre} (${encontrado.estado})`); } else { @@ -64,7 +61,12 @@ export default function Dashboard() {

Buscar equipo

- setSearch(e.target.value)} /> + setSearch(e.target.value)} + />
@@ -72,7 +74,11 @@ export default function Dashboard() {

Escanear código de barras

- {lastScan &&

Último código escaneado: {lastScan}

} + {lastScan && ( +

+ Último código escaneado: {lastScan} +

+ )}
@@ -80,8 +86,18 @@ export default function Dashboard() { diff --git a/src/components/BarNavigation.tsx b/src/components/BarNavigation.tsx index 933f89a..4198cb8 100644 --- a/src/components/BarNavigation.tsx +++ b/src/components/BarNavigation.tsx @@ -16,23 +16,22 @@ function BarNavigation() { return (