Next.js 15 Tutorial - 20 - Active Links
Автор: Codevolution
Загружено: 2025-01-07
Просмотров: 18064
Описание:
How to Style Active Links in Next.js
Previously we learned about navigating between routes using the Link component. In this video, we'll dive into styling active links to highlight the current page in the navigation menu. We'll use Next.js's usePathName hook and Tailwind CSS for styling. Starting with a prepared layout in auth routes, we'll map out links for 'register', 'login', and 'forgot password'. Learn how to identify active links, apply conditional styles, and ensure the styling is visible in the browser.
📔 GitHub Repo - https://github.com/gopinav/Next.js-15...
📘 Frontend Interview Course - https://learn.codevolution.dev/
💖 Support UPI - https://support.codevolution.dev/
💖 Support Paypal - https://www.paypal.me/Codevolution
💾 Github - https://github.com/gopinav
📱 Follow Codevolution
Twitter - / codevolutionweb
Facebook - / codevolutionweb
📫 Business - [email protected]
00:00 Introduction to Active Link Styling
00:22 Setting Up the Navigation Links
01:03 Implementing the usePathName Hook
02:19 Adding Conditional Styling
03:08 Final Touches and Testing
03:49 Conclusion and Call to Action
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: