mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 21:00:54 +00:00
feat(auth): add authentication layout
This commit is contained in:
parent
6261025880
commit
59bdba44c2
26
src/app/(auth)/layout.tsx
Normal file
26
src/app/(auth)/layout.tsx
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
|
interface AuthLayoutProps {
|
||||||
|
children: React.ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
const AuthLayout = ({ children }: AuthLayoutProps) => {
|
||||||
|
return (
|
||||||
|
<main className="min-h-screen">
|
||||||
|
<div className="mx-auto max-w-screen-2xl p-4">
|
||||||
|
<nav className="flex items-center justify-between">
|
||||||
|
<Image src="/logo.svg" alt="logo" width={100} height={50} />
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<Button variant="secondary">Sign Up</Button>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<div className="flex flex-col items-center justify-center pt-4 md:pt-14">
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default AuthLayout;
|
Loading…
Reference in New Issue
Block a user