@@ -47,89 +47,95 @@ const NavigationBar = () => {
4747 const onMouseLeave = ( ) => {
4848 setCursorInsets ( undefined ) ;
4949 } ;
50+
5051 return (
51- < HStack
52- position = { 'fixed' }
53- marginY = { 8 }
54- w = { '100%' }
55- paddingRight = { 14 }
56- paddingLeft = { 32 }
57- zIndex = { 1000 }
58- justifyContent = { 'space-between' }
59- >
60- < Img
61- src = { AmitRaikwarLogo }
62- alt = { 'logo' }
63- w = { 8 }
64- h = { 6 }
65- _hover = { {
66- transform : 'scale(1.3)' ,
67- transition : 'transform 0.5s' ,
68- cursor : 'pointer' ,
69- } }
70- />
71- < HStack >
72- < HStack
73- columnGap = { 3 }
74- border = { '1px solid gray' }
75- padding = "2"
76- borderRadius = "100px"
77- bg = { 'rgba(255, 255, 255, 0.1)' }
78- backdropFilter = { 'blur(20px)' }
79- transition = { 'background-color 0.3s' }
80- >
81- { NavigationLink . map ( ( { name, href } ) => (
82- < LinkButton
83- key = { name }
84- text = { t ( name ) }
85- href = { `#${ href } ` }
86- fontSize = { 'lg' }
87- animationOnHover
88- />
89- ) ) }
90- < LinkButton
91- key = { ArticleLink . name }
92- text = { t ( ArticleLink . name ) }
93- href = { ArticleLink . href }
94- fontSize = { 'lg' }
95- animationOnHover
96- />
97- < Box
98- padding = "0.2"
52+ < >
53+ < HStack
54+ position = { 'fixed' }
55+ marginY = { { md : 4 , xl : 6 } }
56+ w = { '100%' }
57+ paddingRight = { 14 }
58+ paddingLeft = { { base : 14 , '2xl' : 32 } }
59+ zIndex = { 1000 }
60+ justifyContent = { 'space-between' }
61+ >
62+ < Img
63+ src = { AmitRaikwarLogo }
64+ alt = { 'logo' }
65+ w = { 8 }
66+ h = { 6 }
67+ _hover = { {
68+ transform : 'scale(1.3)' ,
69+ transition : 'transform 0.5s' ,
70+ cursor : 'pointer' ,
71+ } }
72+ />
73+ < HStack >
74+ < HStack
75+ border = { '1px solid gray' }
76+ padding = "2.5"
77+ color = { 'white' }
9978 borderRadius = "100px"
10079 bg = { 'rgba(255, 255, 255, 0.1)' }
10180 backdropFilter = { 'blur(20px)' }
102- transition = { 'background-color 0.3s' }
81+ transition = { 'all 0.3s' }
82+ _hover = { {
83+ transform : 'scale(1.1)' ,
84+ cursor : 'pointer' ,
85+ } }
86+ onMouseEnter = { onMouseEnter }
87+ onMouseLeave = { onMouseLeave }
88+ ref = { ref }
89+ onClick = { ( ) => { } } // eslint-disable-line
10390 >
104- < LinkButton
105- key = { 'Contact' }
106- text = { t ( 'navigation.contact' ) }
107- href = { '#contact' }
108- fontSize = { 'lg' }
109- />
110- </ Box >
91+ < SearchIcon />
92+ </ HStack >
11193 </ HStack >
112- < HStack
113- border = { '1px solid gray' }
114- padding = "2.5"
115- color = { 'white' }
94+ </ HStack >
95+ < HStack
96+ zIndex = { 1000 }
97+ position = { 'fixed' }
98+ columnGap = { 3 }
99+ bottom = { 4 }
100+ border = { '1px solid gray' }
101+ padding = "2"
102+ borderRadius = "100px"
103+ bg = { 'rgba(255, 255, 255, 0.1)' }
104+ backdropFilter = { 'blur(20px)' }
105+ transition = { 'background-color 0.3s' }
106+ >
107+ { NavigationLink . map ( ( { name, href } ) => (
108+ < LinkButton
109+ key = { name }
110+ text = { t ( name ) }
111+ href = { `#${ href } ` }
112+ fontSize = { 'lg' }
113+ animationOnHover
114+ />
115+ ) ) }
116+ < LinkButton
117+ key = { ArticleLink . name }
118+ text = { t ( ArticleLink . name ) }
119+ href = { ArticleLink . href }
120+ fontSize = { 'lg' }
121+ animationOnHover
122+ />
123+ < Box
124+ padding = "0.2"
116125 borderRadius = "100px"
117126 bg = { 'rgba(255, 255, 255, 0.1)' }
118127 backdropFilter = { 'blur(20px)' }
119- transition = { 'all 0.3s' }
120- _hover = { {
121- transform : 'scale(1.1)' ,
122- cursor : 'pointer' ,
123- } }
124- onMouseEnter = { onMouseEnter }
125- onMouseLeave = { onMouseLeave }
126- ref = { ref }
127- onClick = { ( ) => { } } // eslint-disable-line
128+ transition = { 'background-color 0.3s' }
128129 >
129- < SearchIcon />
130- </ HStack >
130+ < LinkButton
131+ key = { 'Contact' }
132+ text = { t ( 'navigation.contact' ) }
133+ href = { '#contact' }
134+ fontSize = { 'lg' }
135+ />
136+ </ Box >
131137 </ HStack >
132- </ HStack >
138+ </ >
133139 ) ;
134140} ;
135141
0 commit comments