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() {
@@ -80,8 +86,18 @@ export default function Dashboard() {
{equipos.map((e) => (
-
- {e.id} - {e.nombre}
- {e.estado}
+
+ {e.id} - {e.nombre}
+
+
+ {e.estado}
+
))}
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 (