@@ -18,7 +18,7 @@ import { NavLinks } from './NavLinks';
1818import { RandomSongButton } from './RandomSongButton' ;
1919import { BlockSearch } from './BlockSearchProps' ;
2020
21- export async function Header ( ) {
21+ export const Header = async ( ) => {
2222 let isLogged ;
2323 let userData ;
2424
@@ -34,13 +34,19 @@ export async function Header() {
3434 }
3535
3636 return (
37- < header className = 'fixed w-[calc(100vw_-_16px)] h-14 flex flex-row justify-center items-center bg-zinc-900 border-b border-zinc-700 py-2 z-10' >
37+ < header
38+ id = 'header'
39+ className = 'fixed w-[calc(100vw_-_16px)] h-14 flex flex-row justify-center items-center bg-zinc-900 border-b border-zinc-700 py-2 z-10'
40+ >
3841 { /* Navbar */ }
39- < nav className = 'w-full flex flex-row justify-between items-center gap-8 md:gap-12 max-w-screen-xl px-6 sm:px-10' >
42+ < nav
43+ id = 'navbar'
44+ className = 'w-full flex flex-row justify-between items-center gap-8 md:gap-12 max-w-screen-xl px-6 sm:px-10'
45+ >
4046 { /* Logo */ }
4147 < div className = 'hidden lg:block flex-0 text-lg text-nowrap' >
4248 < picture className = 'w-full h-auto' >
43- < Link href = '/' >
49+ < Link id = 'logo' href = '/' >
4450 < Image
4551 unoptimized
4652 src = '/nbw-logo-flat.png'
@@ -55,7 +61,7 @@ export async function Header() {
5561
5662 { /* Icon */ }
5763 < div className = 'flex-0 flex justify-start lg:justify-center min-w-fit' >
58- < Link href = '/' >
64+ < Link id = 'icon' href = '/' >
5965 < Image
6066 unoptimized
6167 quality = { 100 }
@@ -106,10 +112,10 @@ export async function Header() {
106112 </ div >
107113
108114 { /* Sign in / Profile */ }
109- < div className = 'flex-0' >
115+ < div id = 'nav-links' className = 'flex-0' >
110116 < NavLinks isUserLoggedIn = { isLogged } userData = { userData } />
111117 </ div >
112118 </ nav >
113119 </ header >
114120 ) ;
115- }
121+ } ;
0 commit comments