refactor: change animation for links

This commit is contained in:
Kentai Radiquum 2025-07-25 00:45:23 +05:00
parent a2a120e05e
commit dfbed4197e
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 22 additions and 15 deletions

View file

@ -2,11 +2,21 @@ type IconWithTextProps = {
icon: string;
text: string;
desc: string;
hoverTextColor?: string | null;
};
export const IconWithText = ({ icon, text, desc }: IconWithTextProps) => {
export const IconWithText = ({
icon,
text,
desc,
hoverTextColor,
}: IconWithTextProps) => {
return (
<div className="flex items-center gap-1 hover:text-[#c8e8fe] transition-colors">
<div
className={`flex items-center gap-1 ${
hoverTextColor ? `hover:text-${hoverTextColor}` : ""
} transition-[color,_scale] hover:scale-105 duration-100`}
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src={icon} alt={""} />
<div>