From 6928f11a57e2554a0ef16d73ab7064e5ce66578e Mon Sep 17 00:00:00 2001 From: Mads Hermansen <119772939+madshermansen@users.noreply.github.com> Date: Sun, 7 Apr 2024 15:39:34 +0200 Subject: [PATCH] feat(frontend): :sparkles: Update Navbar and Drawer styles (#227) --- frontend/src/components/Navbar.tsx | 108 ++++++++++++++++++++++++-- frontend/src/components/ui/drawer.tsx | 7 +- 2 files changed, 104 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index 5849535..01a2b09 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -31,6 +31,88 @@ export function IconParkHamburgerButton(props: SVGProps) { ); } +const iconSize = 30; +const iconStyle = "mx-2"; + +export function SolarSatelliteLineDuotone(props: SVGProps) { + return ( + + + + + + + + + + + + + ); +} + +export function MingcuteEdit4Line(props: SVGProps) { + return ( + + + + + + + ); +} + +export function CodiconGithubProject(props: SVGProps) { + return ( + + + + + + + ); +} + export default function Navbar() { const pathname = usePathname(); const getButtonVariant = (path: string) => { @@ -58,20 +140,32 @@ export default function Navbar() { -
- - - - - - diff --git a/frontend/src/components/ui/drawer.tsx b/frontend/src/components/ui/drawer.tsx index 33a4a48..72fa4d9 100644 --- a/frontend/src/components/ui/drawer.tsx +++ b/frontend/src/components/ui/drawer.tsx @@ -7,7 +7,7 @@ import { cn } from "@/lib/utils"; const Drawer = ({ shouldScaleBackground = true, - direction = "top", + direction = "right", ...props }: React.ComponentProps) => ( , React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( @@ -45,13 +45,12 @@ const DrawerContent = React.forwardRef< {children} -
));