From 56f6a45ccc10ccd0482792592870987d5e03cd3a Mon Sep 17 00:00:00 2001 From: Oier Bravo Urtasun Date: Tue, 10 Jun 2025 00:28:28 +0200 Subject: [PATCH] centered grid --- src/pages/index.astro | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 4ab91ca..f8737ef 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,26 +5,28 @@ import { SignIn, SignOut } from 'auth-astro/components'; import KarKarCarAuth from "../components/KarKarCarAuth.astro" // 1. Import any dependencies (Full support for JavaScript/TypeScript) -import { getUser, type KarKarCarSession } from "../api/index.ts" +import { getUser, type KarKarCarSession } from "../api/index" import UserInfo from "../components/UserInfo.astro" import config from 'auth:config' - - const session = await getUser(Astro.request, config); --- - - - {(session: KarKarCarSession) => ( - <> - {session ? - Logout - : - Login - } - - )} - +
+
+ + + {(session: KarKarCarSession) => ( + <> + {session ? + Logout + : + Login + } + + )} + +
+
\ No newline at end of file