@@ -12,19 +12,19 @@ export interface IHeaderProps {
12
12
navItems ?: PageFrontMatter [ ] ;
13
13
}
14
14
15
- const Header : React . FunctionComponent < IHeaderProps > = forwardRef ( ( { navItems} : React . PropsWithChildren < IHeaderProps > , ref : ForwardedRef < HTMLElement >
16
- ) => {
15
+ const Header : React . FunctionComponent < IHeaderProps > = forwardRef ( ( { navItems } : React . PropsWithChildren < IHeaderProps > , ref : ForwardedRef < HTMLElement >
16
+ ) => {
17
17
const router = useRouter ( ) ;
18
18
19
19
const isDocs = useMemo ( ( ) => {
20
20
return router . pathname . startsWith ( '/docs' ) ;
21
21
} , [ router . pathname ] ) ;
22
-
22
+
23
23
return (
24
24
< >
25
25
< header
26
- ref = { ref }
27
- className = { `fixed inset-x-0 top-0 z-50 flex h-16 lg:h-20 items-center justify-between px-4 transition sm:px-6 lg:z-30 lg:px-8 bg-vulcan-500/80 backdrop-blur-lg ${ isDocs ? "right-0 lg:left-72 xl:left-80 " : "" } ` } >
26
+ ref = { ref }
27
+ className = { `fixed inset-x-0 top-0 z-50 flex h-16 lg:h-20 items-center justify-between px-4 transition sm:px-6 lg:z-30 lg:px-8 bg-vulcan-500/80 backdrop-blur-lg ${ isDocs ? "right-0 lg:left-72 xl:left-96 " : "" } ` } >
28
28
29
29
< div className = "flex items-center justify-between lg:hidden w-full" >
30
30
< Home className = 'h-12' />
@@ -35,12 +35,12 @@ const Header: React.FunctionComponent<IHeaderProps> = forwardRef(({navItems}: Re
35
35
36
36
< div className = { `flex items-center gap-4` } >
37
37
< Searchbox />
38
-
38
+
39
39
< MobileNavigation navItems = { navItems } />
40
40
</ div >
41
41
</ div >
42
42
43
- < div className = { `hidden lg:flex items-center w-full ${ isDocs ? "" : "max-w-7xl mx-auto" } ` } >
43
+ < div className = { `hidden lg:flex items-center w-full ${ isDocs ? "" : "max-w-7xl mx-auto" } ` } >
44
44
< div className = "flex items-center justify-between w-full" >
45
45
{
46
46
! isDocs && (
@@ -49,8 +49,8 @@ const Header: React.FunctionComponent<IHeaderProps> = forwardRef(({navItems}: Re
49
49
}
50
50
51
51
< div className = "flex items-center gap-6 ml-auto" >
52
- < GlobalNavigation
53
- listClassName = 'flex gap-6' />
52
+ < GlobalNavigation
53
+ listClassName = 'flex gap-6' />
54
54
55
55
< SocialNavigation />
56
56
0 commit comments