From 13c705b00a2dc4d17d03eba9ed27240123bbbb1c Mon Sep 17 00:00:00 2001 From: ayush24k Date: Fri, 17 Jan 2025 20:10:19 +0530 Subject: [PATCH 1/8] navbar fixes --- app/(pages)/HeroPage.tsx | 2 +- app/(pages)/about/page.tsx | 6 ++--- app/(pages)/layout.tsx | 6 +++-- app/components/Background.tsx | 2 +- app/components/HeroSection.tsx | 2 +- app/components/Navbar.tsx | 46 +++++++++++++++++++++++----------- 6 files changed, 42 insertions(+), 22 deletions(-) diff --git a/app/(pages)/HeroPage.tsx b/app/(pages)/HeroPage.tsx index ae5b975..b7f701e 100644 --- a/app/(pages)/HeroPage.tsx +++ b/app/(pages)/HeroPage.tsx @@ -38,7 +38,7 @@ export default function HeroPage() { function HeroSection() { return (
-
+

Improve your programming skills significantly.

diff --git a/app/(pages)/about/page.tsx b/app/(pages)/about/page.tsx index f307fd5..1528c68 100644 --- a/app/(pages)/about/page.tsx +++ b/app/(pages)/about/page.tsx @@ -38,7 +38,7 @@ function AboutHeroSection() { title={"Our Pillars"} /> -
+
-
+
{reachInfo.map((prop, i) => { return (

{prop.title}

-

{prop.reach}+

+

{prop.reach}+

) })} diff --git a/app/(pages)/layout.tsx b/app/(pages)/layout.tsx index dee9589..92aea1f 100644 --- a/app/(pages)/layout.tsx +++ b/app/(pages)/layout.tsx @@ -3,13 +3,15 @@ import Navbar from "../components/Navbar" import Footer from "../components/Footer" import Background from "../components/Background" -export default function PageLayout({children}: { +export default function PageLayout({ children }: { children: React.ReactNode }) { return (
- {children} +
+ {children} +
) } \ No newline at end of file diff --git a/app/components/Background.tsx b/app/components/Background.tsx index a35e1fa..7bcdabe 100644 --- a/app/components/Background.tsx +++ b/app/components/Background.tsx @@ -18,7 +18,7 @@ export default function Background() { function HexBg() { return (
-
+
hex background
diff --git a/app/components/HeroSection.tsx b/app/components/HeroSection.tsx index ebf6e46..8bc1069 100644 --- a/app/components/HeroSection.tsx +++ b/app/components/HeroSection.tsx @@ -6,7 +6,7 @@ import d4logo from "../assets/images/d4logo.png" export default function HeroSection({ title, description, description2, description3, img }: any) { return ( -
+

{title}

diff --git a/app/components/Navbar.tsx b/app/components/Navbar.tsx index 1f2d4ef..1986093 100644 --- a/app/components/Navbar.tsx +++ b/app/components/Navbar.tsx @@ -9,8 +9,28 @@ export default function Navbar() { const [isBurgerMenuOpen, setIsBurgerMenuOpen] = useState(false) + const NavLinks = [{ + url: "/", + title: "Home", + }, { + url: "/", + title: "Learn", + }, { + url: "/team", + title: "Team", + }, { + url: "/about", + title: "About", + }, { + url: "/events", + title: "Events", + }, { + url: "/", + title: "More", + }] + return ( -