mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
refactor(AuthLayout): replace <a> with <Link> for better navigation
This commit is contained in:
parent
60ef253c1f
commit
3e4c58d953
@ -1,3 +1,4 @@
|
|||||||
|
import Link from "next/link";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { auth } from "@/lib/auth";
|
import { auth } from "@/lib/auth";
|
||||||
import { Code } from "lucide-react";
|
import { Code } from "lucide-react";
|
||||||
@ -17,12 +18,12 @@ export default async function AuthLayout({
|
|||||||
<div className="grid min-h-svh lg:grid-cols-2">
|
<div className="grid min-h-svh lg:grid-cols-2">
|
||||||
<div className="flex flex-col gap-4 p-6 md:p-10">
|
<div className="flex flex-col gap-4 p-6 md:p-10">
|
||||||
<div className="flex justify-center gap-2 md:justify-start">
|
<div className="flex justify-center gap-2 md:justify-start">
|
||||||
<a href="/" className="flex items-center gap-2 font-medium">
|
<Link href="/" className="flex items-center gap-2 font-medium">
|
||||||
<div className="flex h-6 w-6 items-center justify-center rounded-md bg-primary text-primary-foreground">
|
<div className="flex h-6 w-6 items-center justify-center rounded-md bg-primary text-primary-foreground">
|
||||||
<Code className="size-4" />
|
<Code className="size-4" />
|
||||||
</div>
|
</div>
|
||||||
Judge4c
|
Judge4c
|
||||||
</a>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-1 items-center justify-center">
|
<div className="flex flex-1 items-center justify-center">
|
||||||
<div className="w-full max-w-sm">{children}</div>
|
<div className="w-full max-w-sm">{children}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user