🌈 style: correct colors for dark theme

This commit is contained in:
2026-01-20 01:45:11 +03:00
parent fb1b49a3b2
commit ec0498f425

View File

@@ -5,16 +5,26 @@ interface AnimatedLinkProps {
href: string;
children: React.ReactNode;
className?: string;
underlineColor?: string;
textColor?: string;
}
const AnimatedLink = ({ href, children, className = '' }: AnimatedLinkProps) => {
const AnimatedLink = ({
href,
children,
className = '',
underlineColor = 'bg-black dark:bg-white',
textColor = 'text-black dark:text-white'
}: AnimatedLinkProps) => {
return (
<Link
href={href}
className={`group relative text-white hover:text-white ${className}`}
className={`group relative ${textColor} transition-colors duration-300 ${className}`}
>
{children}
<span className="absolute bottom-0 left-0 w-full h-0.5 bg-white transform scale-x-0 origin-left transition-transform duration-300 ease-in-out group-hover:scale-x-100"></span>
<span
className={`absolute bottom-0 left-0 w-full h-0.5 ${underlineColor} transform scale-x-0 origin-left transition-transform duration-300 ease-in-out group-hover:scale-x-100`}
></span>
</Link>
);
};