@@ -18,7 +18,7 @@ import { NavLinks } from './NavLinks';
18
18
import { RandomSongButton } from './RandomSongButton' ;
19
19
import { BlockSearch } from './BlockSearchProps' ;
20
20
21
- export async function Header ( ) {
21
+ export const Header = async ( ) => {
22
22
let isLogged ;
23
23
let userData ;
24
24
@@ -34,13 +34,19 @@ export async function Header() {
34
34
}
35
35
36
36
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
+ >
38
41
{ /* 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
+ >
40
46
{ /* Logo */ }
41
47
< div className = 'hidden lg:block flex-0 text-lg text-nowrap' >
42
48
< picture className = 'w-full h-auto' >
43
- < Link href = '/' >
49
+ < Link id = 'logo' href = '/' >
44
50
< Image
45
51
unoptimized
46
52
src = '/nbw-logo-flat.png'
@@ -55,7 +61,7 @@ export async function Header() {
55
61
56
62
{ /* Icon */ }
57
63
< div className = 'flex-0 flex justify-start lg:justify-center min-w-fit' >
58
- < Link href = '/' >
64
+ < Link id = 'icon' href = '/' >
59
65
< Image
60
66
unoptimized
61
67
quality = { 100 }
@@ -106,10 +112,10 @@ export async function Header() {
106
112
</ div >
107
113
108
114
{ /* Sign in / Profile */ }
109
- < div className = 'flex-0' >
115
+ < div id = 'nav-links' className = 'flex-0' >
110
116
< NavLinks isUserLoggedIn = { isLogged } userData = { userData } />
111
117
</ div >
112
118
</ nav >
113
119
</ header >
114
120
) ;
115
- }
121
+ } ;
0 commit comments