From de03a5831c320a103470e2ce464b860ec28bc08b Mon Sep 17 00:00:00 2001 From: luzzifoss Date: Fri, 13 Oct 2023 14:19:43 +0100 Subject: [PATCH 1/3] feat(frontend): update campaigns page ui to the new standards --- .../frontend/src/components/layout/index.tsx | 11 ++- .../src/components/ui/navbar/index.tsx | 17 ++++- .../frontend/src/pages/campaigns/index.tsx | 72 +++++++++---------- .../src/pages/campaigns/top-nav/index.tsx | 4 +- .../frontend/src/pages/home/hero/index.tsx | 2 +- 5 files changed, 62 insertions(+), 44 deletions(-) diff --git a/packages/frontend/src/components/layout/index.tsx b/packages/frontend/src/components/layout/index.tsx index 54e7e7814..8729b849c 100644 --- a/packages/frontend/src/components/layout/index.tsx +++ b/packages/frontend/src/components/layout/index.tsx @@ -7,10 +7,11 @@ import { } from "../../constants"; import { CarrotMarquee } from "../ui/carrot-marquee"; import { Footer } from "../ui/footer"; -import { Navbar } from "../ui/navbar"; +import { Navbar, type NavbarProps } from "../ui/navbar"; interface LayoutProps { navbarLinks?: NavbarLink[]; + navbarBgColor?: NavbarProps["bgColor"]; noNavbar?: boolean; footerLinks?: FooterLink[]; children?: ReactNode; @@ -18,13 +19,19 @@ interface LayoutProps { export const Layout = ({ navbarLinks, + navbarBgColor, noNavbar, footerLinks, children, }: LayoutProps) => { return (
- {!noNavbar && } + {!noNavbar && ( + + )} {children}