diff --git a/app/(private)/AgregarTiempo/page.tsx b/app/(private)/AgregarTiempo/page.tsx
index c7a081d..d2e84ef 100644
--- a/app/(private)/AgregarTiempo/page.tsx
+++ b/app/(private)/AgregarTiempo/page.tsx
@@ -7,10 +7,9 @@ import "./addTime.css";
export default async function Page({ searchParams }: any) {
- const numAccount = searchParams?.numAccount
- ? Number(searchParams.numAccount)
- : null;
-
+ const params =await searchParams;
+ const numAccount = params.numAccount ? Number(params.numAccount) : null;
+
let student: any = null;
if (numAccount) {
student = await GetStudent(numAccount);
@@ -27,7 +26,7 @@ export default async function Page({ searchParams }: any) {
Cargando...
; + if (loading) returnCargando...
; - return !authenticated ? <>{children}> : null; + return !authenticated ? <>{children}> : null; }; -//IO \ No newline at end of file +//IO diff --git a/app/Routes/PrivateRoute.tsx b/app/Routes/PrivateRoute.tsx index a3c679a..8342c1c 100644 --- a/app/Routes/PrivateRoute.tsx +++ b/app/Routes/PrivateRoute.tsx @@ -18,4 +18,4 @@ export const PrivateRoute = ({ children }: { children: React.ReactNode }) => { return authenticated ? <>{children}> : null; }; -//IO \ No newline at end of file +//IO diff --git a/app/globals.css b/app/globals.css index 7eee956..86aef13 100644 --- a/app/globals.css +++ b/app/globals.css @@ -153,18 +153,18 @@ select { border: 1px solid #cfcfcf; background-color: #fff; border-radius: 4px; - font-size: 1.5rem; + font-size: 2rem; color: black; } label { - font-size: 1.5rem; + font-size: 2rem; font-weight: bold; display: block; } button { - font-size: 1.5rem; + font-size: 2rem; padding: 1rem 1.75rem; border-radius: 4px; cursor: pointer; @@ -252,7 +252,7 @@ a { top: 0; left: 0; width: 100%; - font-size: 2.5rem; + font-size: 3rem; font-weight: bold; text-align: start; border-bottom: 1px solid #cfcfcf; @@ -369,6 +369,16 @@ table tr { text-align: start; } +.loginContainer { + position: relative; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100%; + width: 100%; +} + @media (max-width: 1300px) { .container { width: 100%; @@ -436,7 +446,7 @@ table tr { footer p { font-size: 1.2rem; -} + } } @media (max-height: 960px) { diff --git a/app/layout.tsx b/app/layout.tsx index 2d12ac2..861eace 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -26,7 +26,7 @@ export default function RootLayout({ }>) { return ( - +