File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ function LinkComponent({
7979 className ?: string ;
8080 ariaLabel ?: string ;
8181} ) {
82- const baseClasses = `transition-colors duration-200 hover:text-black dark:hover:text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-offset-zinc-950 rounded px-1 ${ className } ` ;
82+ const baseClasses = `group inline-block px-1 rounded transition-all duration-300 hover:-translate-y-[2px] hover:font-medium hover: text-teal-800 dark:hover:text-violet-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-offset-zinc-950 ${ className } ` ;
8383
8484 if ( isExternal ) {
8585 return (
@@ -90,14 +90,20 @@ function LinkComponent({
9090 className = { baseClasses }
9191 aria-label = { ariaLabel }
9292 >
93- { children }
93+ < span className = "relative inline-block" >
94+ { children }
95+ < span className = "absolute left-0 -bottom-px h-px w-0 bg-slate-500 dark:bg-slate-400 transition-all duration-500 ease-out group-hover:w-full" />
96+ </ span >
9497 </ a >
9598 ) ;
9699 }
97100
98101 return (
99102 < Link href = { href } className = { baseClasses } aria-label = { ariaLabel } >
100- { children }
103+ < span className = "relative inline-block" >
104+ { children }
105+ < span className = "absolute left-0 -bottom-px h-px w-0 bg-slate-500 dark:bg-slate-400 transition-all duration-500 ease-out group-hover:w-full" />
106+ </ span >
101107 </ Link >
102108 ) ;
103109}
You can’t perform that action at this time.
0 commit comments