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
|
@ -19,26 +19,23 @@ export const Intro = () => {
|
||||||
<div className="w-full flex items-center justify-center py-24 bg-[#161213] rounded-bl-[128px] rounded-tr-[128px] md:rounded-bl-[256px] md:rounded-tr-[256px] overflow-hidden">
|
<div className="w-full flex items-center justify-center py-24 bg-[#161213] rounded-bl-[128px] rounded-tr-[128px] md:rounded-bl-[256px] md:rounded-tr-[256px] overflow-hidden">
|
||||||
<div className="flex flex-col md:flex-row md:gap-8 md:flex-wrap md:justify-center 2xl:gap-16">
|
<div className="flex flex-col md:flex-row md:gap-8 md:flex-wrap md:justify-center 2xl:gap-16">
|
||||||
<p
|
<p
|
||||||
className="text-[#C8E8FE] font-medium text-4xl md:text-5xl xl:text-8xl transition-transform duration-1000 ease-out"
|
className={`text-[#C8E8FE] ${
|
||||||
style={{
|
isAnimated ? "translate-y-0" : "translate-y-64 md:translate-y-96"
|
||||||
transform: !isAnimated ? "translateY(600%)" : "translateY(0)",
|
} font-medium text-4xl md:text-5xl xl:text-8xl transition-transform duration-1000 ease-out`}
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
Photographer
|
Photographer
|
||||||
</p>
|
</p>
|
||||||
<p
|
<p
|
||||||
className="text-[#FF8686] font-medium text-4xl md:text-5xl xl:text-8xl transition-transform delay-150 duration-1000 ease-out"
|
className={`text-[#FF8686] ${
|
||||||
style={{
|
isAnimated ? "translate-y-0" : "translate-y-64 md:translate-y-96"
|
||||||
transform: !isAnimated ? "translateY(600%)" : "translateY(0)",
|
} font-medium text-4xl md:text-5xl xl:text-8xl transition-transform delay-150 duration-1000 ease-out`}
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
Developer
|
Developer
|
||||||
</p>
|
</p>
|
||||||
<p
|
<p
|
||||||
className="text-[#FF851A] font-medium text-4xl md:text-5xl xl:text-8xl transition-transform delay-300 duration-1000 ease-out"
|
className={`text-[#FF851A] ${
|
||||||
style={{
|
isAnimated ? "translate-y-0" : "translate-y-64 md:translate-y-96"
|
||||||
transform: !isAnimated ? "translateY(600%)" : "translateY(0)",
|
} font-medium text-4xl md:text-5xl xl:text-8xl transition-transform delay-300 duration-1000 ease-out`}
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
Self-Hosting admirer
|
Self-Hosting admirer
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -2,11 +2,21 @@ type IconWithTextProps = {
|
||||||
icon: string;
|
icon: string;
|
||||||
text: string;
|
text: string;
|
||||||
desc: string;
|
desc: string;
|
||||||
|
hoverTextColor?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const IconWithText = ({ icon, text, desc }: IconWithTextProps) => {
|
export const IconWithText = ({
|
||||||
|
icon,
|
||||||
|
text,
|
||||||
|
desc,
|
||||||
|
hoverTextColor,
|
||||||
|
}: IconWithTextProps) => {
|
||||||
return (
|
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 */}
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||||
<img src={icon} alt={""} />
|
<img src={icon} alt={""} />
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -2,7 +2,7 @@ export const Section = ({
|
||||||
children,
|
children,
|
||||||
}: Readonly<{ children: React.ReactNode }>) => {
|
}: Readonly<{ children: React.ReactNode }>) => {
|
||||||
return (
|
return (
|
||||||
<div className="max-w-[400px] md:max-w-[542px] xl:max-w-[1012px] w-full mx-auto flex flex-col gap-2">
|
<div className="max-w-[400px] md:max-w-[542px] xl:max-w-[1012px] w-full mx-auto flex flex-col gap-2 px-2">
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue