@@ -98,33 +98,38 @@ export const HoverNavigation = ({
9898 } ) ;
9999
100100 return (
101- < div className = "bg-secondary/50 fixed top-5 left-1/2 z-30 box-border flex w-4/5 -translate-x-1/2 items-center justify-center overflow-auto rounded-[40px] border-2 border-solid border-gray-700 px-5 py-3 backdrop-blur-md lg:w-2/3 xl:w-auto" >
101+ < div className = "bg-secondary/50 fixed top-5 left-1/2 z-30 box-border flex w-11/12 -translate-x-1/2 items-center justify-center overflow-auto rounded-[40px] border-2 border-solid border-gray-700 px-5 py-3 backdrop-blur-md sm:w-4/5 lg:w-2/3 xl:w-auto" >
102102 < div className = "flex flex-col" >
103103 < div className = "flex flex-row" >
104- < a href = "/" >
105- < img
106- src = "/images/profile/contact_photo_small.webp"
107- alt = "Ryan"
108- width = { 50 }
109- className = "mr-3 rounded-full"
110- />
111- </ a >
104+ < div className = "mr-2 flex items-center justify-center sm:mr-3" >
105+ < a href = "/" >
106+ < img
107+ src = "/images/profile/contact_photo_small.webp"
108+ alt = "Ryan"
109+ width = { 50 }
110+ className = "rounded-full"
111+ />
112+ </ a >
113+ </ div >
112114 < div className = "flex flex-col items-center justify-center" >
113115 < motion . div
114116 animate = { {
115117 width : availableVisible ? "auto" : "0px" ,
116118 opacity : availableVisible ? "100%" : "0%" ,
117119 } }
120+ initial = { {
121+ width : "0px" ,
122+ } }
118123 className = "flex w-auto flex-row items-center justify-center pr-2 whitespace-nowrap opacity-100 lg:w-0 lg:opacity-0"
119124 >
120125 < a
121126 tabIndex = { 1 }
122127 href = "/contact"
123- className = "overflow-hidden whitespace-nowrap transition-colors duration-150 hover:text-green-500"
128+ className = "overflow-hidden text-sm whitespace-nowrap transition-colors duration-150 hover:text-green-500 sm:text-base "
124129 >
125130 Available for work
126131 </ a >
127- < div className = "relative z-50 ml-5 " >
132+ < div className = "relative z-50 ml-3 " >
128133 < div className = "absolute top-1/2 left-1/2 aspect-square w-[6px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-green-500" > </ div >
129134 < div className = "animate-glow absolute top-1/2 left-1/2 aspect-square w-[6px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-green-500" > </ div >
130135 </ div >
@@ -176,10 +181,11 @@ export const HoverNavigation = ({
176181 ) ) }
177182 </ motion . div >
178183
179- < div className = "hamburger-wrapper block lg:hidden" >
184+ < div className = "hamburger-wrapper flex items-center justify-center lg:hidden" >
180185 < HamburgerCross
181186 toggled = { hamburgerOpen }
182187 toggle = { setHamburgerOpen }
188+ size = { 20 }
183189 > </ HamburgerCross >
184190 </ div >
185191 </ div >
@@ -191,7 +197,10 @@ export const HoverNavigation = ({
191197 transition = { {
192198 ease : "easeInOut" ,
193199 } }
194- className = "overflow-hidden"
200+ initial = { {
201+ height : "0px" ,
202+ } }
203+ className = "h-0 overflow-hidden"
195204 >
196205 { items . map ( ( item , idx ) => (
197206 < a
0 commit comments