Skip to content

Commit 9b83117

Browse files
refactor(header): update header bg color and hover effects
- added section id to nav items href
1 parent 5de0531 commit 9b83117

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/common/Navbar.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { FaBars, FaGithub } from "react-icons/fa"
33
---
44

5-
<nav class="bg-[#FC485033] w-[90%] fixed z-10 top-5 left-1/2 -translate-x-1/2 backdrop-blur-xl border border-white/10 rounded-full">
5+
<nav class="bg-[#222222]/80 w-[90%] fixed z-10 top-5 left-1/2 -translate-x-1/2 backdrop-blur-xl border border-white/10 rounded-full">
66
<div class="mx-auto max-w-7xl px-2 sm:px-6 lg:px-8">
77
<div class="relative flex h-16 items-center justify-between">
88
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
@@ -18,16 +18,16 @@ import { FaBars, FaGithub } from "react-icons/fa"
1818
</div>
1919
<div class="hidden sm:ml-6 sm:block">
2020
<div class="flex space-x-4">
21-
<a href="#" aria-current="page" class="block rounded-full bg-[#FC485050] px-3 py-2 text-base font-medium text-white">Docs</a>
22-
<a href="#" class="block rounded-full px-3 py-2 text-base font-medium text-gray-300 hover:bg-[#FC485033] hover:text-white">Themes</a>
23-
<a href="#" class="block rounded-full px-3 py-2 text-base font-medium text-gray-300 hover:bg-[#FC485033] hover:text-white">Features</a>
24-
<a href="#" class="block rounded-full px-3 py-2 text-base font-medium text-gray-300 hover:bg-[#FC485033] hover:text-white">Updates</a>
21+
<a href="#" aria-current="page" class="block rounded-full px-3 py-2 text-base font-medium text-gray-300 hover:bg-[#333333] hover:text-white">Docs</a>
22+
<a href="#themes" class="block rounded-full px-3 py-2 text-base font-medium text-gray-300 hover:bg-[#333333] hover:text-white">Themes</a>
23+
<a href="#features" class="block rounded-full px-3 py-2 text-base font-medium text-gray-300 hover:bg-[#333333] hover:text-white">Features</a>
24+
<a href="#updates" class="block rounded-full px-3 py-2 text-base font-medium text-gray-300 hover:bg-[#333333] hover:text-white">Updates</a>
2525
</div>
2626
</div>
2727
</div>
2828
<ul class="list-none absolute inset-y-0 right-0 flex gap-2 items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0">
2929
<li>
30-
<a href="https://github.com/NitroVim/NitroVim" target="_blank" class="relative text-white cursor-pointer hover:text-[#FC4850] text-2xl">
30+
<a href="https://github.com/NitroVim/NitroVim" target="_blank" class="relative text-white cursor-pointer text-2xl">
3131
<span class="absolute -inset-1.5"></span>
3232
<span class="sr-only">Github</span>
3333
<FaGithub />

0 commit comments

Comments
 (0)