@@ -10,28 +10,42 @@ const headerLinks = [
1010
1111function Header ( ) {
1212 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" />
2233
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 >
3044 </ div >
3145
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" >
3347 { 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 } >
3549 { x . title }
3650 </ a >
3751 ) ) }
0 commit comments