Skip to content

Commit 4d77e7c

Browse files
committed
admin page design fixes
1 parent afe848b commit 4d77e7c

File tree

1 file changed

+24
-26
lines changed

1 file changed

+24
-26
lines changed

app/admin/page.tsx

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,31 @@ const AdminPage: React.FC = async () => {
1414

1515
return (
1616
<main>
17-
<section className="p-6 md:p-15 h-dvh">
18-
<div className="grid place-content-center h-full bg-zinc-100 relative">
19-
<div className="flex flex-col gap-4">
20-
<p>
21-
Welcome{" "}
22-
<span className="underline underline-offset-2">
23-
{session.user.name}
24-
</span>
25-
!
26-
</p>
27-
<form
28-
action={async () => {
29-
"use server"
30-
await auth.api.signOut({
31-
headers: await headers(),
32-
})
33-
redirect("/auth/")
34-
}}
17+
<section className="grid place-content-center h-dvh relative">
18+
<div className="flex flex-col gap-4">
19+
<p>
20+
Welcome{" "}
21+
<span className="underline underline-offset-2">
22+
{session.user.name}
23+
</span>
24+
!
25+
</p>
26+
<form
27+
action={async () => {
28+
"use server"
29+
await auth.api.signOut({
30+
headers: await headers(),
31+
})
32+
redirect("/auth/")
33+
}}
34+
>
35+
<button
36+
className="w-full px-3 py-2 text-sm cursor-pointer flex gap-2 items-center transition-colors bg-zinc-800 hover:bg-zinc-700 focus:bg-zinc-950 text-zinc-200"
37+
type="submit"
3538
>
36-
<button
37-
className="border-dashed w-full border border-zinc-300 transition-colors focus:border-zinc-800 hover:border-zinc-800 bg-zinc-50 px-3 py-2 text-sm cursor-pointer text-center"
38-
type="submit"
39-
>
40-
Sign Out
41-
</button>
42-
</form>
43-
</div>
39+
Sign Out
40+
</button>
41+
</form>
4442
</div>
4543
</section>
4644
</main>

0 commit comments

Comments
 (0)