Skip to content

Commit 5fc2010

Browse files
committed
feat: make gradient hover animation for resume button
1 parent 981bd56 commit 5fc2010

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/components/Atoms/Descriptions/HomeDesc.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import Link from "next/link";
77
import { BsFillFileEarmarkTextFill } from "react-icons/bs";
88
import clsx from "clsx";
99
import { homeConfig } from "@/src/config/home-config";
10-
import { IconTech } from "../Icons/IconTech";
10+
import { IconWithTooltip } from "../Icons/IconWithTooltip";
11+
import { HoverBorderGradientWrapper } from "../../Molecules/Wrappers/GradientHover.wrapper";
12+
import { HoverBorderGradient } from "../../ui/hover-border-gradient";
1113

1214
export default function HomeDesc() {
1315
const [ghalyEffect, setGhalyEffect] = React.useState("");
@@ -55,9 +57,11 @@ export default function HomeDesc() {
5557

5658
<div className="flex flex-row gap-5 mt-5">
5759
<Reveal delay={0.5} duration={0.5}>
58-
<Button
59-
className="relative z-30 dark:bg-[#0e1111] border-[1px] border-slate-600 text-sm sm:text-[15px] font-ghaly font-semibold rounded-sm cursor-pointer dark:hover:bg-gray-800 hover:duration-300"
60-
variant={"outline"}
60+
<HoverBorderGradient
61+
containerClassName={
62+
"rounded-xl dark:bg-[#0e1111] border-0 m-1 active:scale-[0.93] hover:scale-[1.02] hover:duration-300"
63+
}
64+
className="relative z-30 px-5 py-3 border-[1px] border-slate-600 text-sm sm:text-[15px] font-ghaly font-semibold rounded-xl cursor-pointer dark:hover:bg-gray-950 hover:duration-300"
6165
>
6266
<Link
6367
href={homeConfig.resume}
@@ -68,7 +72,7 @@ export default function HomeDesc() {
6872
<BsFillFileEarmarkTextFill className="mr-2 h-[18px] w-[18px]" />{" "}
6973
Resume
7074
</Link>
71-
</Button>
75+
</HoverBorderGradient>
7276
</Reveal>
7377

7478
{/* Work Status and Resume */}
@@ -91,16 +95,16 @@ export default function HomeDesc() {
9195
onMouseOut={() => setHoverSocialMedia({ [data.iconName]: "" })}
9296
passHref
9397
>
94-
<IconTech
98+
<IconWithTooltip
9599
icon={data.icon}
96100
iconName={data.iconName}
97101
className={`bg-transparent pr-[1px] text-[18px] duration-500 ${
98102
hoverSocialMedia[data.iconName]
99103
}`}
100104
/>
101-
<p className="dark:hover:text-white duration-500">
105+
{/* <p className="dark:hover:text-white duration-500">
102106
{data.title}
103-
</p>
107+
</p> */}
104108
</Link>
105109
);
106110
})}

0 commit comments

Comments
 (0)