Skip to content

Commit c4b1101

Browse files
committed
fix(navbar): improper border color, alignment and layout issues
1 parent bb4533f commit c4b1101

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

src/constants/Header.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,5 @@ export const navigationData = {
1818
{ label: 'Join Development', path: '/join-development' },
1919
{ label: 'Volunteer', path: '/volunteer' },
2020
],
21-
linksBefore:[
22-
{ label: 'Home', path: '/' },
23-
],
21+
linksBefore: [{ label: 'Home', path: '/' }],
2422
};

src/sections/Header.tsx

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ const Header: React.FC = () => {
6464
return (
6565
<>
6666
<header
67-
className={`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${isScrolled
68-
? 'backdrop-blur-md bg-white/90 dark:bg-gray-900/80 shadow-lg'
69-
: 'bg-white dark:bg-gray-900'
70-
}`}
67+
className={`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${
68+
isScrolled
69+
? 'backdrop-blur-md bg-white/90 dark:bg-gray-900/80 shadow-lg'
70+
: 'bg-white dark:bg-gray-900'
71+
}`}
7172
>
7273
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
7374
<div className="flex justify-between items-center h-16 md:h-20">
@@ -93,20 +94,23 @@ const Header: React.FC = () => {
9394
>
9495
<div className="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2">
9596
<span
96-
className={`block w-6 h-0.5 bg-gray-600 dark:bg-gray-200 transition-all duration-300 ${isMobileMenuOpen
97-
? 'rotate-45 translate-y-1.5'
98-
: 'translate-y-[-4px]'
99-
}`}
97+
className={`block w-6 h-0.5 bg-gray-600 dark:bg-gray-200 transition-all duration-300 ${
98+
isMobileMenuOpen
99+
? 'rotate-45 translate-y-1.5'
100+
: 'translate-y-[-4px]'
101+
}`}
100102
/>
101103
<span
102-
className={`block w-6 h-0.5 bg-gray-600 dark:bg-gray-200 transition-all duration-300 mt-1 ${isMobileMenuOpen ? 'opacity-0' : ''
103-
}`}
104+
className={`block w-6 h-0.5 bg-gray-600 dark:bg-gray-200 transition-all duration-300 mt-1 ${
105+
isMobileMenuOpen ? 'opacity-0' : ''
106+
}`}
104107
/>
105108
<span
106-
className={`block w-6 h-0.5 bg-gray-600 dark:bg-gray-200 transition-all duration-300 mt-1 ${isMobileMenuOpen
107-
? '-rotate-45 -translate-y-1.5'
108-
: 'translate-y-[4px]'
109-
}`}
109+
className={`block w-6 h-0.5 bg-gray-600 dark:bg-gray-200 transition-all duration-300 mt-1 ${
110+
isMobileMenuOpen
111+
? '-rotate-45 -translate-y-1.5'
112+
: 'translate-y-[4px]'
113+
}`}
110114
/>
111115
</div>
112116
</button>
@@ -227,8 +231,9 @@ const MobileNavDrawer: React.FC<{
227231
>
228232
<span>{dropdown.label}</span>
229233
<svg
230-
className={`w-5 h-5 transition-transform duration-200 ${activeDropdown === key ? 'rotate-180' : ''
231-
}`}
234+
className={`w-5 h-5 transition-transform duration-200 ${
235+
activeDropdown === key ? 'rotate-180' : ''
236+
}`}
232237
fill="none"
233238
viewBox="0 0 24 24"
234239
stroke="currentColor"

0 commit comments

Comments
 (0)