Skip to content

Commit

Permalink
✨ Update before highlight (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
asim-shrestha authored Jul 16, 2023
1 parent cbd2501 commit 8548549
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions next/src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function NavBar() {
/>
<span className="text-xl font-extralight tracking-wider">Reworkd</span>
</div>
<div className="hidden h-[42px] items-center self-center rounded-full border-[0.5px] border-white/30 bg-neutral-100 bg-opacity-5 px-2 py-1 backdrop-blur-lg sm:flex">
<div className="hidden h-[42px] items-center self-center overflow-hidden rounded-full border-[0.5px] border-white/30 bg-neutral-100 bg-opacity-5 px-2 py-1 backdrop-blur-lg sm:flex">
<CycleIcons
hoveredItemIndex={hoveredButtonIndex}
icons={navigation.map((nav) => nav.icon)}
Expand All @@ -56,11 +56,12 @@ export default function NavBar() {
key={item.name}
href={item.href}
className={clsx(
"font-inter text-sm font-medium tracking-normal text-white/50 hover:text-white",
"font-inter text-sm tracking-normal text-white/50 hover:text-white",
"flex items-center justify-center p-2",
"px-4 text-center transition-colors duration-300",
"px-4 text-center transition-colors duration-700",
"relative flex flex-col items-center",
"after-gradient after:absolute after:-bottom-[3px] after:h-[1px] after:w-14 after:px-2 after:opacity-0 after:transition-opacity after:duration-500 hover:after:opacity-100"
"before:absolute before:-bottom-[17px] before:-z-20 before:h-6 before:w-7 before:bg-white/60 before:opacity-0 before:blur-lg before:transition-opacity before:duration-700 hover:before:opacity-100",
"after-gradient after:absolute after:-bottom-[2.5px] after:h-[1px] after:w-14 after:px-2 after:opacity-0 after:transition-opacity after:duration-700 hover:after:opacity-100"
)}
onMouseEnter={() => setHoveredButtonIndex(i)}
onMouseLeave={() => setHoveredButtonIndex(0)}
Expand Down

0 comments on commit 8548549

Please sign in to comment.