Moved Logout Button

This commit is contained in:
2025-04-13 05:00:08 -04:00
parent bc1fb0e3c7
commit 71daa94988
2 changed files with 8 additions and 9 deletions

View File

@@ -15,13 +15,7 @@ function Mobile() {
<h1 className="text-3xl sm:text-4xl font-bold tracking-[-.01em] text-center sm:text-left">
{isAuthenticated ? `Welcome, ${session.username} !!` : ""}
</h1>
{isAuthenticated ? (
<div>
<button type="button" className="btn bg-surface-500">
<a href="/auth/logout">Logout</a>
</button>
</div>
) : (
{!isAuthenticated ? (
<div className="flex gap-4">
<button type="button" className="btn bg-surface-500">
<a href="/auth/login?screen_hint=signup">Sign up</a>
@@ -30,7 +24,7 @@ function Mobile() {
<a href="/auth/login?screen_hint=login">Log in</a>
</button>
</div>
)}
) : null}
</main>
);
}

View File

@@ -44,7 +44,7 @@ function Mobile() {
}
return (
<div className="px-6 py-10 max-w-full lg:max-w-1/2 mx-auto font-sans text-neutral-100">
<div className="px-6 py-10 my-10 max-w-full lg:max-w-1/2 mx-auto font-sans text-neutral-100">
<div className="bg-[color:var(--color-surface-600)]/70 backdrop-blur-md rounded-xl px-6 py-5 my-6 shadow-sm">
<h1 className="text-2xl sm:text-3xl font-bold tracking-[-.01em] text-center">
Hi, {username || ""}!!
@@ -119,6 +119,11 @@ function Mobile() {
Don't forget you have a 400mg caffeine limit and 30.5g sugar limit!
</p>
</div>
<div>
<button type="button" className="btn bg-surface-800 w-full">
<a href="/auth/logout">Logout</a>
</button>
</div>
</div>
);
}