diff --git a/src/app/dashboard/page.tsx b/src/app/Escaner/page.tsx similarity index 72% rename from src/app/dashboard/page.tsx rename to src/app/Escaner/page.tsx index e2a15dd..40b30f7 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/Escaner/page.tsx @@ -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/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 145f582..c07d2b5 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; } @@ -38,7 +38,7 @@ h1, h2, h3 { margin: 0 0 5rem 0; - font-weight: 900; + font-weight: 600; font-family: "Montserrat", sans-serif; /* 👈 Títulos con Montserrat */ } @@ -54,3 +54,9 @@ h3 { font-size: 4rem; text-align: center; } + +label { + display: block; + text-align: start; + width: 100%; +} 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 63fae1d..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; @@ -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; } @@ -39,3 +39,7 @@ margin-bottom: 10px; } } + +.imageContainer { + border-radius: 20px; +} 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 ( diff --git a/src/components/Login.tsx b/src/components/Login.tsx index 7fa8b92..5c7f35b 100644 --- a/src/components/Login.tsx +++ b/src/components/Login.tsx @@ -3,6 +3,8 @@ 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(""); @@ -16,28 +18,40 @@ 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 + /> +
+
+
+ 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} />