Skip to content

Commit 29c40c1

Browse files
committed
Fix header responsiveness
1 parent de43054 commit 29c40c1

File tree

5 files changed

+309
-262
lines changed

5 files changed

+309
-262
lines changed

src/constants/Header.ts

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
export interface MenuItem {
2-
label: string;
3-
path: string;
4-
}
1+
export const navigationData = {
2+
dropdowns: {
3+
about: {
4+
label: 'About',
5+
items: [
6+
{ label: 'About Us', path: '/about-us' },
7+
{ label: 'Leadership', path: '/leadership' },
8+
{ label: 'Contact Us', path: '/contact-us' },
9+
{ label: 'FAQs', path: '/faqs' },
10+
],
11+
},
12+
},
513

6-
export interface DropdownItem {
7-
label: string;
8-
items: MenuItem[];
9-
}
10-
11-
const aboutItems: MenuItem[] = [
12-
{ label: 'About Us', path: '/about-us' },
13-
{ label: 'Leadership', path: '/leadership' },
14-
{ label: 'Contact Us', path: '/contact-us' },
15-
{ label: 'FAQs', path: '/faqs' },
16-
];
17-
18-
export const dropdowns: Record<string, DropdownItem> = {
19-
about: { label: 'About', items: aboutItems },
14+
links: [
15+
{ label: 'News', path: '/news' },
16+
{ label: 'Products', path: '/products' },
17+
{ label: 'Donate', path: '/donate' },
18+
{ label: 'Join Development', path: '/join-development' },
19+
{ label: 'Volunteer', path: '/volunteer' },
20+
],
2021
};

src/pages/TrySugar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const TrySugar = () => {
66
return (
77
<div className="min-h-screen flex flex-col">
88
<Header />
9-
<main className="flex-grow bg-[#F6DEC9] p-4 md:p-16 mt-10">
9+
<main className="flex-grow bg-[#F6DEC9] p-4">
1010
<div className="max-w-6xl mx-auto space-y-8">
1111
<Try />
1212
</div>

src/sections/Banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const PromoBanner: React.FC<PromoBannerProps> = ({
109109
<div
110110
className={`w-full bg-gradient-to-r ${styles.background} border-b ${styles.border} shadow-sm overflow-hidden`}
111111
>
112-
<div className="max-w-7xl mx-auto px-3 py-6 sm:px-6 md:px-8 relative mt-10 sm:mt-12">
112+
<div className="max-w-7xl mx-auto px-3 py-6 sm:px-6 md:px-8 relative">
113113
<AnimatePresence initial={false} custom={direction} mode="wait">
114114
<motion.div
115115
key={currentBannerIndex}

0 commit comments

Comments
 (0)