@@ -10,28 +10,42 @@ const headerLinks = [
10
10
11
11
function Header ( ) {
12
12
return (
13
- < nav className = "flex items-center justify-between bg-gray-900 px-8 text-white w-full h-full" >
14
- < div className = "flex items-center flex-shrink-0 text-white" >
15
- < a className = "title" href = "/" >
16
- < h1 className = "font-light text-xl tracking-tight flex space-x-4 items-center justify-start" >
17
- < img width = { 24 } height = { 24 } src = { icon } /> ️{ ' ' }
18
- < span > Testing Playground</ span >
19
- </ h1 >
20
- </ a >
21
- </ div >
13
+ < nav className = "text-white w-full h-20 md:h-16" >
14
+ < div className = "flex items-center justify-between bg-gray-900 px-8 h-10 md:h-16" >
15
+ < div className = "flex items-center flex-shrink-0 text-white" >
16
+ < a className = "title" href = "/" >
17
+ < h1 className = "font-light text-xl tracking-tight flex space-x-4 items-center justify-start" >
18
+ < img width = { 24 } height = { 24 } src = { icon } /> ️{ ' ' }
19
+ < span > Testing Playground</ span >
20
+ </ h1 >
21
+ </ a >
22
+ </ div >
23
+
24
+ < div className = "flex items-center space-x-8" >
25
+ < a
26
+ href = "https://github.com/smeijer/testing-playground"
27
+ className = "hover:underline"
28
+ >
29
+ GitHub
30
+ </ a >
31
+
32
+ < div className = "border-r border-gray-600 mx-4 h-8 hidden md:block" />
22
33
23
- < div >
24
- < a
25
- href = "https://github.com/smeijer/testing-playground"
26
- className = "hover:underline"
27
- >
28
- GitHub
29
- </ a >
34
+ { headerLinks . map ( ( x ) => (
35
+ < a
36
+ className = "hover:underline hidden md:block"
37
+ key = { x . title }
38
+ href = { x . url }
39
+ >
40
+ { x . title }
41
+ </ a >
42
+ ) ) }
43
+ </ div >
30
44
</ div >
31
45
32
- < div className = "flex space-x-8" >
46
+ < div className = "flex justify-between sm:justify-end items-center bg-gray-800 px-8 h-10 md:hidden space-x-8" >
33
47
{ headerLinks . map ( ( x ) => (
34
- < a className = "hover:underline" key = { x . title } href = { x . url } >
48
+ < a className = "hover:underline truncate " key = { x . title } href = { x . url } >
35
49
{ x . title }
36
50
</ a >
37
51
) ) }
0 commit comments