From 52888787cff9c93390d0ebb2a6f8a5440107caad Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:36:58 +0100 Subject: [PATCH] fixed vertical nav --- apps/hub/app/(app)/layout.tsx | 12 ++--- apps/hub/app/_components/Nav.tsx | 78 ++++++++++++++++++++++++++++ apps/hub/app/_components/ui/Nav.tsx | 80 ----------------------------- 3 files changed, 84 insertions(+), 86 deletions(-) create mode 100644 apps/hub/app/_components/Nav.tsx delete mode 100644 apps/hub/app/_components/ui/Nav.tsx diff --git a/apps/hub/app/(app)/layout.tsx b/apps/hub/app/(app)/layout.tsx index 62c51cc4..6d66e0bf 100644 --- a/apps/hub/app/(app)/layout.tsx +++ b/apps/hub/app/(app)/layout.tsx @@ -1,15 +1,15 @@ -import type { Metadata } from "next"; +import type { Metadata } from 'next'; import { DiscordLogoIcon, InstagramLogoIcon, ReaderIcon, -} from "@radix-ui/react-icons"; -import { HorizontalNav, VerticalNav } from "../_components/ui/Nav"; -import { Toaster } from "react-hot-toast"; +} from '@radix-ui/react-icons'; +import { HorizontalNav, VerticalNav } from '../_components/Nav'; +import { Toaster } from 'react-hot-toast'; export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: 'Create Next App', + description: 'Generated by create next app', }; export default async function RootLayout({ diff --git a/apps/hub/app/_components/Nav.tsx b/apps/hub/app/_components/Nav.tsx new file mode 100644 index 00000000..c925bd72 --- /dev/null +++ b/apps/hub/app/_components/Nav.tsx @@ -0,0 +1,78 @@ +import { + HomeIcon, + PersonIcon, + GearIcon, + ExitIcon, + LockClosedIcon, +} from '@radix-ui/react-icons'; +import Link from 'next/link'; + +export const VerticalNav = () => { + return ( +