Bigger buttons
This commit is contained in:
@@ -20,7 +20,10 @@ import './src/styles/global.css'
|
|||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<Image src={logo} alt="KarKarCar" />
|
<div class="min-h-screen grid place-items-center">
|
||||||
<slot />
|
<div class="grid gap-6 text-center">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -8,25 +8,26 @@ import KarKarCarAuth from "../components/KarKarCarAuth.astro"
|
|||||||
import { getUser, type KarKarCarSession } from "../api/index"
|
import { getUser, type KarKarCarSession } from "../api/index"
|
||||||
import UserInfo from "../components/UserInfo.astro"
|
import UserInfo from "../components/UserInfo.astro"
|
||||||
import config from 'auth:config'
|
import config from 'auth:config'
|
||||||
|
import { Image } from 'astro:assets';
|
||||||
|
import logo from '../images/logo-urdina.png';
|
||||||
|
|
||||||
const session = await getUser(Astro.request, config);
|
const session = await getUser(Astro.request, config);
|
||||||
|
|
||||||
---
|
---
|
||||||
<Layout>
|
<Layout>
|
||||||
<div class="min-h-screen grid place-items-center">
|
<div class="flex justify-center">
|
||||||
<div class="grid gap-6 text-center">
|
<Image src={logo} alt="KarKarCar" class="max-w-xs" />
|
||||||
<UserInfo session={session} />
|
|
||||||
<KarKarCarAuth>
|
|
||||||
{(session: KarKarCarSession) => (
|
|
||||||
<>
|
|
||||||
{session ?
|
|
||||||
<SignOut class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors duration-200 font-medium">Logout</SignOut>
|
|
||||||
:
|
|
||||||
<SignIn provider="keycloak" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors duration-200 font-medium">Login</SignIn>
|
|
||||||
}
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</KarKarCarAuth>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<UserInfo session={session} />
|
||||||
|
<KarKarCarAuth>
|
||||||
|
{(session: KarKarCarSession) => (
|
||||||
|
<>
|
||||||
|
{session ?
|
||||||
|
<SignOut class="px-8 py-4 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors duration-200 font-medium text-xl">Logout</SignOut>
|
||||||
|
:
|
||||||
|
<SignIn provider="keycloak" class="px-8 py-4 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors duration-200 font-medium text-xl">Login</SignIn>
|
||||||
|
}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</KarKarCarAuth>
|
||||||
</Layout>
|
</Layout>
|
||||||
Reference in New Issue
Block a user