mirror of
https://github.com/Radiquum/radiquum.github.io.git
synced 2025-09-08 15:33:54 +05:00
refactor: change animation for links
This commit is contained in:
parent
a2a120e05e
commit
dfbed4197e
3 changed files with 22 additions and 15 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue