Skip to content

Commit 553620d

Browse files
committed
header update
1 parent 0e59321 commit 553620d

1 file changed

Lines changed: 30 additions & 42 deletions

File tree

docs/app/components/ui/navbar-menu.tsx

Lines changed: 30 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ export const HoveredLink = ({ children, ...rest }: any) => {
8787
)
8888
}
8989

90+
const ExternalLink = ({ url, text }: { url: string; text: string }) => {
91+
return (
92+
<a
93+
className="text-neutral-200 hover:text-slate-400 dark:text-neutral-200"
94+
target="_blank"
95+
href={url}
96+
>
97+
{text}
98+
</a>
99+
)
100+
}
101+
90102
export function Navbar({ className }: { className?: string }) {
91103
const [active, setActive] = useState<string | null>(null)
92104
return (
@@ -105,52 +117,28 @@ export function Navbar({ className }: { className?: string }) {
105117
</MenuItem>
106118
<MenuItem setActive={setActive} active={active} item="Links">
107119
<div className="flex flex-col space-y-4 text-sm">
108-
<a
109-
className="text-neutral-700 hover:text-black dark:text-neutral-200 "
110-
target="_blank"
111-
href="https://remix.run/"
112-
>
113-
Remix.run
114-
</a>
115-
<a
116-
className="text-neutral-700 hover:text-black dark:text-neutral-200 "
117-
target="_blank"
118-
href="https://github.com/Code-Forge-Net/Remix-Dev-Tools"
119-
>
120-
Github
121-
</a>
122-
<a
123-
className="text-neutral-700 hover:text-black dark:text-neutral-200 "
124-
target="_blank"
125-
href="https://github.com/sponsors/AlemTuzlak"
126-
>
127-
Sponsor
128-
</a>
120+
<ExternalLink url="https://remix.run" text="Remix.run" />
121+
<ExternalLink
122+
url="https://github.com/Code-Forge-Net/Remix-Dev-Tools"
123+
text="Github"
124+
/>
125+
<ExternalLink
126+
url="https://github.com/sponsors/AlemTuzlak"
127+
text="Sponsor"
128+
/>
129129
</div>
130130
</MenuItem>
131131
<MenuItem setActive={setActive} active={active} item="Connect">
132132
<div className="flex flex-col space-y-4 text-sm">
133-
<a
134-
className="text-neutral-700 hover:text-black dark:text-neutral-200 "
135-
target="_blank"
136-
href="https://twitter.com/AlemTuzlak59192"
137-
>
138-
Twitter
139-
</a>
140-
<a
141-
className="text-neutral-700 hover:text-black dark:text-neutral-200 "
142-
target="_blank"
143-
href="https://github.com/AlemTuzlak"
144-
>
145-
Github
146-
</a>
147-
<a
148-
className="text-neutral-700 hover:text-black dark:text-neutral-200 "
149-
target="_blank"
150-
href="https://www.youtube.com/channel/UCQVWDtZHhWTDEtr-7bAgKqg"
151-
>
152-
YouTube
153-
</a>
133+
<ExternalLink
134+
url="https://twitter.com/AlemTuzlak59192"
135+
text="Twitter"
136+
/>
137+
<ExternalLink url="https://github.com/AlemTuzlak" text="Github" />
138+
<ExternalLink
139+
url="https://www.youtube.com/channel/UCQVWDtZHhWTDEtr-7bAgKqg"
140+
text="YouTube"
141+
/>
154142
</div>
155143
</MenuItem>
156144
</Menu>

0 commit comments

Comments
 (0)