From b95a1f02ac48ccdcab99c27b872503868d4cb4af Mon Sep 17 00:00:00 2001 From: Tanuj Nainwal Date: Sat, 7 Dec 2024 12:53:41 +0530 Subject: [PATCH 1/9] updated font size and height of showDropdown component --- components/header.tsx | 14 +++++++------- package-lock.json | 14 ++++++++------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/components/header.tsx b/components/header.tsx index 05b476b..529643b 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -252,13 +252,13 @@ export default function Header(props: { fixed?: boolean }) { }`} id="header" > -
Date: Sun, 22 Dec 2024 00:12:19 +0530 Subject: [PATCH 7/9] updated the dekstop version --- components/header.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/header.tsx b/components/header.tsx index 1dcf724..8c8695b 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -95,7 +95,7 @@ export default function Header(props: { fixed?: boolean }) { className={`md:w-[25px] ${ scrolled ? "brightness-0" : "" } ${ - mobileMenuOpen?"pt-6":"" + mobileMenuOpen?"pb-44 pt-4 m-0":"" } transition-all`} /> ), @@ -161,7 +161,7 @@ export default function Header(props: { fixed?: boolean }) { return ( { setMobileMenuOpen(false); e.preventDefault(); @@ -188,7 +188,7 @@ export default function Header(props: { fixed?: boolean }) { return ( -
{navigation.map((item, i) => ( ))} -
Date: Tue, 24 Dec 2024 23:55:16 +0530 Subject: [PATCH 8/9] changes section to link for support tab --- components/header.tsx | 66 +++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/components/header.tsx b/components/header.tsx index 8c8695b..0f0c9f1 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -82,7 +82,7 @@ export default function Header(props: { fixed?: boolean }) { const navigation: NavigationItem[] = [ { type: "dropdown", content: "Products", items: productsItems }, { type: "dropdown", content: "Community", items: communityItems }, - { type: "section", content: "Supporters", id: "supporters", page: "/supporters" }, + { type: "link", content: "Supporters", href: "/supporters" }, { type: "section", content: "Contact", id: "contact", page: "/" }, { type: "link", @@ -94,8 +94,6 @@ export default function Header(props: { fixed?: boolean }) { height={50} className={`md:w-[25px] ${ scrolled ? "brightness-0" : "" - } ${ - mobileMenuOpen?"pb-44 pt-4 m-0":"" } transition-all`} /> ), @@ -153,7 +151,7 @@ export default function Header(props: { fixed?: boolean }) { switch (item.type) { case "link": return ( - + {item.content} ); @@ -161,7 +159,7 @@ export default function Header(props: { fixed?: boolean }) { return ( { setMobileMenuOpen(false); e.preventDefault(); @@ -184,33 +182,35 @@ export default function Header(props: { fixed?: boolean }) { {item.content} ); - case "dropdown": - return ( - - ); - } + case "dropdown": + return ( + + ); + } }; const DropDownRender = (props: { @@ -230,7 +230,7 @@ export default function Header(props: { fixed?: boolean }) { key={i} className={`p-4 w-[200px] text-left rounded-lg ${ scrolled ? "hover:bg-black/5" : "hover:bg-black/10" - } transition-all flex flex-col gap-2`} + } transition-all flex flex-col gap-2 `} onClick={() => { setMobileMenuOpen(false); setShowDropdown(null); From 7fb1912b2dba85864aa89d084122fb997331ed3c Mon Sep 17 00:00:00 2001 From: Tanuj Nainwal Date: Tue, 31 Dec 2024 20:16:12 +0530 Subject: [PATCH 9/9] updated height and padding of containers --- components/header.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/header.tsx b/components/header.tsx index 0f0c9f1..6b8a81a 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -151,7 +151,8 @@ export default function Header(props: { fixed?: boolean }) { switch (item.type) { case "link": return ( - + setMobileMenuOpen(false) } > {item.content} ); @@ -159,7 +160,7 @@ export default function Header(props: { fixed?: boolean }) { return ( { setMobileMenuOpen(false); e.preventDefault();