Skip to content

Feat: Implement Dynamic Nav with Animated Active Indicator#2

Open
Typecaster12 wants to merge 2 commits intoAyushAwasthi2384:masterfrom
Typecaster12:fix/navbar-indicators
Open

Feat: Implement Dynamic Nav with Animated Active Indicator#2
Typecaster12 wants to merge 2 commits intoAyushAwasthi2384:masterfrom
Typecaster12:fix/navbar-indicators

Conversation

@Typecaster12
Copy link

Hey,
This PR introduces a couple of nice improvements to the main header navigation to make it more modern and user-friendly.

Closes #1

What's New?

I noticed the navigation bar was built with static links and didn't give clear feedback on which page was active. This PR addresses that by:

Making the Nav Dynamic: The list of links is now an array that gets mapped over. This makes it much cleaner and easier to add or remove links in the future.

Adding an Animated Indicator: A slick, animated underline now appears beneath the active link. It smoothly slides from one link to the next as you navigate, which adds a really polished feel to the UI.

How It's Done

Refactored the static links into a navLinks array.

Added the framer-motion library to handle the animation.

Used the layoutId prop on a motion.div to create the "magic" sliding underline effect.

@vercel
Copy link

vercel bot commented Oct 9, 2025

@Typecaster12 is attempting to deploy a commit to the ayushawasthi2384's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Add Active and Focus Indicators to Navbar Links

1 participant