@@ -41,14 +41,14 @@ const Navbar = () => {
4141
4242 return (
4343 < nav
44- className = { `fixed top-0 left-0 z-[100] w-screen px-8 py-5 flex items-center justify-between transition-all duration-300 ${
44+ className = { `fixed top-0 left-0 z-[100] w-screen px-8 py-5 flex items-center sm: justify-between justify-center transition-all duration-300 ${
4545 scrolled
4646 ? "bg-transparent border-transparent"
47- : "bg-black/10 backdrop-blur-xl border-b border-white/10"
47+ : "sm: bg-black/10 sm: backdrop-blur-xl sm: border-b border-white/10"
4848 } `}
4949 >
5050 < div
51- className = { `flex items-center space-x-2 transition-opacity duration-300 ${ scrolled ? "opacity-0" : "opacity-100" } ` }
51+ className = { `max-md:hidden flex items-center space-x-2 transition-opacity duration-300 ${ scrolled ? "opacity-0" : "opacity-100" } ` }
5252 >
5353 < div className = "bg-gradient-to-br from-purple-500 via-pink-400 to-yellow-200 w-8 h-8 rounded-lg flex items-center justify-center" >
5454 < div className = "bg-white w-4 h-4 rounded-sm" />
@@ -58,7 +58,7 @@ const Navbar = () => {
5858
5959 < div
6060 className = { `flex items-center backdrop-blur-md bg-white/5 rounded-full border border-white/10 py-1 px-1.5 text-sm relative transition-all duration-500 ease-out ${
61- scrolled ? "w-[420px]" : "w-[280px]"
61+ scrolled ? "w-[420px]" : "sm: w-[280px] w-[350px ]"
6262 } `}
6363 >
6464 < div
@@ -85,7 +85,8 @@ const Navbar = () => {
8585 onMouseLeave = { ( ) => setActiveLink ( "home" ) }
8686 className = "text-gray-300 hover:text-white transition-colors py-2 px-4 rounded-full relative flex gap-2 items-center"
8787 >
88- < PackageIcon pm = "github" className = "w-4 h-4" /> Github
88+ < PackageIcon pm = "github" className = "w-4 h-4" /> { " " }
89+ < span className = "max-sm:hidden" > Github</ span >
8990 </ Link >
9091 < Link
9192 href = "https://www.npmjs.com/package/create-better-t-stack"
@@ -97,7 +98,8 @@ const Navbar = () => {
9798 onMouseLeave = { ( ) => setActiveLink ( "home" ) }
9899 className = "text-gray-300 hover:text-white transition-colors py-2 px-4 rounded-full relative flex gap-2 items-center"
99100 >
100- < PackageIcon pm = "npm" className = "w-4 h-4 rounded-full" /> Npm
101+ < PackageIcon pm = "npm" className = "w-4 h-4 rounded-full" /> { " " }
102+ < span className = "max-sm:hidden" > Npm</ span >
101103 </ Link >
102104 < span
103105 className = "text-gray-500 transition-all duration-300"
@@ -116,12 +118,12 @@ const Navbar = () => {
116118 onMouseOver = { ( ) => setActiveLink ( "documentation" ) }
117119 onMouseLeave = { ( ) => setActiveLink ( "home" ) }
118120 style = { {
119- transform : scrolled ? "translateY(0)" : "translateY(-8px)" ,
121+ transform : scrolled ? "translateY(0)" : "sm: translateY(-8px)" ,
120122 } }
121123 className = { ` hover:text-white transition-all duration-300 py-2 px-4 rounded-full ${
122124 scrolled
123- ? "opacity-100 translate-y-0"
124- : "opacity-0 pointer-events-none"
125+ ? "sm: opacity-100 sm: translate-y-0"
126+ : "sm: opacity-0 sm: pointer-events-none"
125127 } `}
126128 >
127129 Documentation
@@ -135,7 +137,7 @@ const Navbar = () => {
135137 >
136138 < button
137139 type = "button"
138- className = "relative inline-flex h-12 overflow-hidden rounded-full p-[1px] focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 focus:ring-offset-slate-50"
140+ className = "relative max-sm:hidden inline-flex h-12 overflow-hidden rounded-full p-[1px] focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 focus:ring-offset-slate-50"
139141 >
140142 < span className = "absolute inset-[-1000%] animate-[spin_2s_linear_infinite] bg-[conic-gradient(from_90deg_at_50%_50%,#E2CBFF_0%,#393BB2_50%,#E2CBFF_100%)]" />
141143 < span className = "inline-flex h-full w-full cursor-pointer items-center justify-center rounded-full bg-slate-950 px-6 py-px text-sm font-medium text-white backdrop-blur-3xl" >
0 commit comments