Merge branch 'homepage-refactoring' into 'dev'
Refactor the whole page. See merge request rheinsw/website!26
This commit is contained in:
@@ -63,12 +63,18 @@ const Nav = ({openNav}: Props) => {
|
||||
{navLinks.map((link) => (
|
||||
<Link href={link.url} key={link.id}>
|
||||
<p
|
||||
className={`nav_link ${contentSize} uppercase transition-all duration-300 ease-in-out ${
|
||||
className={`relative group ${contentSize} uppercase transition-all duration-300 ease-in-out ${
|
||||
pathname === link.url
|
||||
? "text-white font-bold"
|
||||
: "text-gray-300 font-medium"
|
||||
}`}>
|
||||
}`}
|
||||
>
|
||||
{link.label}
|
||||
{pathname !== link.url && (
|
||||
<span
|
||||
className="absolute bottom-0 left-0 w-full h-[2px] bg-current transform transition-transform duration-300 origin-right scale-x-0 group-hover:scale-x-100"
|
||||
/>
|
||||
)}
|
||||
</p>
|
||||
</Link>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user