Skip to content

Commit 07cc955

Browse files
committed
improve navbar
1 parent 39a0374 commit 07cc955

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

apps/web/src/app/(home)/_components/Navbar.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const Navbar = () => {
6262
<div className="flex justify-center">
6363
<div
6464
className={`flex items-center backdrop-blur-md bg-black/40 rounded-md border border-blue-500/30 py-1 px-1.5 text-sm relative transition-all duration-500 ease-out ${
65-
scrolled ? "w-[420px]" : "sm:w-[280px] w-[350px]"
65+
scrolled ? "w-[180px]" : "sm:w-[180px] w-[180px]"
6666
}`}
6767
>
6868
<div
@@ -79,7 +79,7 @@ const Navbar = () => {
7979
>
8080
<span className="text-blue-500">~/</span>home
8181
</Link>
82-
<Link
82+
{/* <Link
8383
href="https://www.github.com/better-t-stack/create-better-t-stack"
8484
target="_blank"
8585
ref={(ref) => {
@@ -91,7 +91,7 @@ const Navbar = () => {
9191
>
9292
<PackageIcon pm="github" className="w-4 h-4" />{" "}
9393
<span className="max-sm:hidden">github</span>
94-
</Link>
94+
</Link> */}
9595
<Link
9696
href="https://www.npmjs.com/package/create-better-t-stack"
9797
target="_blank"
@@ -103,9 +103,9 @@ const Navbar = () => {
103103
className="text-gray-300 hover:text-blue-300 transition-colors py-2 px-4 rounded-md relative flex gap-2 items-center font-mono"
104104
>
105105
<PackageIcon pm="npm" className="w-4 h-4 rounded-full" />{" "}
106-
<span className="max-sm:hidden">npm</span>
106+
<span>npm</span>
107107
</Link>
108-
<span
108+
{/* <span
109109
className="text-blue-500 transition-all duration-300"
110110
style={{
111111
opacity: scrolled ? 1 : 0,
@@ -131,7 +131,7 @@ const Navbar = () => {
131131
}`}
132132
>
133133
documentation
134-
</Link>
134+
</Link> */}
135135
</div>
136136
</div>
137137

@@ -141,12 +141,13 @@ const Navbar = () => {
141141
}`}
142142
>
143143
<Link
144-
href="/docs"
144+
href="https://www.github.com/better-t-stack/create-better-t-stack"
145+
target="_blank"
145146
className="relative max-sm:hidden inline-flex h-12 overflow-hidden rounded-md p-[1px] focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 focus:ring-offset-black"
146147
>
147148
<span className="absolute inset-[-1000%] animate-[spin_2s_linear_infinite] bg-[conic-gradient(from_90deg_at_50%_50%,#3b82f6_0%,#6366f1_50%,#3b82f6_100%)]" />
148149
<span className="inline-flex h-full w-full cursor-pointer items-center justify-center rounded-md bg-black px-6 py-px text-sm font-medium text-blue-400 backdrop-blur-3xl font-mono">
149-
<span className="text-blue-500 mr-1">$</span> ./docs
150+
<PackageIcon pm="github" className="w-4 h-4 mr-2" /> github
150151
</span>
151152
</Link>
152153
</div>

0 commit comments

Comments
 (0)