mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 09:31:13 +00:00
feat(layout): implement sidebar with navigation
This commit is contained in:
parent
fb8f3f0b26
commit
fa30235172
23
src/components/sidebar.tsx
Normal file
23
src/components/sidebar.tsx
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import Link from "next/link";
|
||||||
|
import Image from "next/image";
|
||||||
|
import { Navigation } from "./navigation";
|
||||||
|
import { Separator } from "./ui/separator";
|
||||||
|
|
||||||
|
export const Sidebar = () => {
|
||||||
|
return (
|
||||||
|
<aside className="h-full p-4 w-full">
|
||||||
|
<Link href="/">
|
||||||
|
<Image
|
||||||
|
src="/logo.svg"
|
||||||
|
alt="logo"
|
||||||
|
width={100}
|
||||||
|
height={50}
|
||||||
|
style={{ width: "auto", height: "auto" }}
|
||||||
|
priority
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
<Separator className="my-4" />
|
||||||
|
<Navigation />
|
||||||
|
</aside>
|
||||||
|
);
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user