@@ -29,54 +29,52 @@ function Header() {
2929 const search = useSearch ( )
3030
3131 return (
32- < DarkTheme >
33- < Box sx = { { top : 0 , position : 'sticky' , zIndex : 1 } } >
34- < NpmHeaderBar />
35- < Box
36- as = "header"
37- sx = { {
38- display : 'flex' ,
39- height : HEADER_HEIGHT ,
40- px : [ 3 , null , null , 4 ] ,
41- alignItems : 'center' ,
42- justifyContent : 'space-between' ,
43- bg : 'canvas.default' ,
44- border : '1px solid' ,
45- borderLeftWidth : 0 ,
46- borderRightWidth : 0 ,
47- borderColor : 'border.muted' ,
48- } }
49- >
50- < Box sx = { { display : 'flex' , alignItems : 'center' } } >
51- < Link
52- to = "/"
53- sx = { {
54- mr : 4 ,
55- fontWeight : 'bold' ,
56- color : 'fg.default' ,
57- display : 'flex' ,
58- alignItems : 'center' ,
59- } }
60- >
61- < NpmLogo size = "32" sx = { { display : 'flex' , mr : 3 } } />
62- { siteMetadata . title }
63- </ Link >
64- < Box sx = { { display : [ 'none' , null , null , 'block' ] , ml : 4 } } >
65- < Search . Desktop { ...search } />
66- </ Box >
32+ < DarkTheme sx = { { top : 0 , position : 'sticky' , zIndex : 1 } } >
33+ < NpmHeaderBar />
34+ < Box
35+ as = "header"
36+ sx = { {
37+ display : 'flex' ,
38+ height : HEADER_HEIGHT ,
39+ px : [ 3 , null , null , 4 ] ,
40+ alignItems : 'center' ,
41+ justifyContent : 'space-between' ,
42+ bg : 'canvas.default' ,
43+ border : '1px solid' ,
44+ borderLeftWidth : 0 ,
45+ borderRightWidth : 0 ,
46+ borderColor : 'border.muted' ,
47+ } }
48+ >
49+ < Box sx = { { display : 'flex' , alignItems : 'center' } } >
50+ < Link
51+ to = "/"
52+ sx = { {
53+ mr : 4 ,
54+ fontWeight : 'bold' ,
55+ color : 'fg.default' ,
56+ display : 'flex' ,
57+ alignItems : 'center' ,
58+ } }
59+ >
60+ < NpmLogo size = "32" sx = { { display : 'flex' , mr : 3 } } />
61+ { siteMetadata . title }
62+ </ Link >
63+ < Box sx = { { display : [ 'none' , null , null , 'block' ] , ml : 4 } } >
64+ < Search . Desktop { ...search } />
6765 </ Box >
68- < Box sx = { { display : 'flex' } } >
69- < Box sx = { { display : [ 'none' , null , null , ' flex' ] , alignItems : 'center '} } >
70- { headerNavItems . map ( ( item , index ) => (
71- < Link key = { index } href = { item . url } sx = { { display : 'block' , ml : 4 , color : 'fg.default' } } >
72- { item . title }
73- </ Link >
74- ) ) }
75- </ Box >
76- < Box sx = { { display : [ 'flex' , null , null , 'none' ] } } >
77- < Search . Mobile { ... search } / >
78- < NavDrawer />
79- </ Box >
66+ </ Box >
67+ < Box sx = { { display : ' flex'} } >
68+ < Box sx = { { display : [ 'none' , null , null , 'flex' ] , alignItems : 'center' } } >
69+ { headerNavItems . map ( ( item , index ) => (
70+ < Link key = { index } href = { item . url } sx = { { display : 'block' , ml : 4 , color : 'fg.default' } } >
71+ { item . title }
72+ </ Link >
73+ ) ) }
74+ </ Box >
75+ < Box sx = { { display : [ 'flex' , null , null , 'none' ] } } >
76+ < Search . Mobile { ... search } />
77+ < NavDrawer / >
8078 </ Box >
8179 </ Box >
8280 </ Box >
0 commit comments