- Introduced DrawLine component for drawing animations. - Added LazyRevealImage component for lazy loading images with reveal animations. - Implemented TextDiffuseReveal for animated text reveals with staggered effects. - Created TopProgressBar for a dynamic loading indicator. - Added PointCloud mock for testing animations. - Developed useReducedMotion hook to handle user preferences for reduced motion. - Centralized animation configurations in config.ts for easier management. - Defined animation variants in variants.ts for consistent animation effects. - Established AnimationProvider to supply global animation settings. - Created tests for AnimationProvider and useReducedMotion hook. - Added SVG assets for branding and UI elements. - Documented frontend review plan and hero circuit board animation plan.
349 lines
17 KiB
TypeScript
349 lines
17 KiB
TypeScript
"use client";
|
|
|
|
import { motion, useReducedMotion } from "framer-motion";
|
|
|
|
const SOCIAL_LINKS = [
|
|
{
|
|
href: "https://github.com/evandrodevbr",
|
|
label: "GitHub",
|
|
icon: (
|
|
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
|
|
),
|
|
},
|
|
{
|
|
href: "https://www.linkedin.com/in/evandro-fonseca-junior-0969aa1b0/",
|
|
label: "LinkedIn",
|
|
icon: (
|
|
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
|
|
),
|
|
},
|
|
{
|
|
href: "mailto:[email protected]",
|
|
label: "Email",
|
|
icon: (
|
|
<>
|
|
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" />
|
|
<polyline points="22,6 12,13 2,6" />
|
|
</>
|
|
),
|
|
stroke: true,
|
|
},
|
|
];
|
|
|
|
const PROOF_ITEMS = [
|
|
{
|
|
label: "Especialidade",
|
|
value:
|
|
"Produtos conectados, interfaces de alta performance e sistemas criticos.",
|
|
},
|
|
{
|
|
label: "Escopo",
|
|
value:
|
|
"Da integracao com hardware e APIs complexas ao frontend e operacao.",
|
|
},
|
|
{
|
|
label: "Formato",
|
|
value:
|
|
"Consultoria, execucao ponta a ponta e colaboracao remota para squads.",
|
|
},
|
|
];
|
|
|
|
export default function Hero() {
|
|
const shouldReduceMotion = useReducedMotion();
|
|
|
|
const hour = new Date().getHours();
|
|
const greeting =
|
|
hour >= 8 && hour < 12
|
|
? "Ola! Vi seu portfolio. Podemos conversar?"
|
|
: hour >= 13 && hour < 18
|
|
? "Boa tarde! Vi seu portfolio. Podemos conversar?"
|
|
: "Ola! Vi seu portfolio. Podemos conversar quando estiver disponivel?";
|
|
|
|
return (
|
|
<section
|
|
id="home"
|
|
className="relative flex min-h-[100svh] w-full items-center overflow-hidden bg-[var(--ink)] text-[#f4f2ed]"
|
|
>
|
|
<div className="pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,rgba(10,10,10,0.2)_0%,var(--ink)_100%)]" />
|
|
<div
|
|
className="pointer-events-none absolute inset-0 opacity-[0.03] mix-blend-screen"
|
|
style={{
|
|
backgroundImage: `url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E")`,
|
|
}}
|
|
/>
|
|
<div className="pointer-events-none absolute inset-x-0 bottom-0 h-40 bg-gradient-to-t from-[var(--ink)] to-transparent" />
|
|
|
|
<div className="relative z-10 mx-auto flex w-full max-w-[1240px] flex-col px-sp-6 py-sp-16 lg:px-sp-16 lg:py-0 pointer-events-none">
|
|
<motion.div
|
|
initial={shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 24 }}
|
|
animate={shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }}
|
|
transition={{ duration: 0.8, ease: [0.16, 1, 0.3, 1] }}
|
|
className="grid items-end gap-sp-10 lg:grid-cols-[minmax(0,1.2fr)_minmax(320px,0.8fr)] pointer-events-auto"
|
|
>
|
|
<div className="max-w-[720px]">
|
|
<div className="mb-sp-6 inline-flex items-center gap-sp-3 border border-[rgba(255,255,255,0.12)] bg-[rgba(10,10,10,0.4)] px-4 py-2 backdrop-blur-xl">
|
|
<motion.span
|
|
className="h-2 w-2 bg-[var(--slash)]"
|
|
animate={
|
|
shouldReduceMotion
|
|
? { opacity: 1 }
|
|
: { opacity: [1, 0.25, 1] }
|
|
}
|
|
transition={
|
|
shouldReduceMotion
|
|
? { duration: 0 }
|
|
: {
|
|
duration: 1.5,
|
|
ease: "easeInOut",
|
|
repeat: Number.POSITIVE_INFINITY,
|
|
}
|
|
}
|
|
/>
|
|
<span className="font-mono text-[10px] uppercase tracking-[0.2em] text-[rgba(244,242,237,.82)] drop-shadow-md">
|
|
Available for selected builds {"//"} Remote worldwide
|
|
</span>
|
|
</div>
|
|
|
|
<motion.p
|
|
className="mb-sp-4 max-w-[220px] font-mono text-[10px] uppercase tracking-[0.22em] text-[var(--slash)] drop-shadow-lg"
|
|
initial={
|
|
shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 12 }
|
|
}
|
|
animate={
|
|
shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }
|
|
}
|
|
transition={{
|
|
duration: 0.7,
|
|
delay: 0.08,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
Software engineering for products, operations & critical flows
|
|
</motion.p>
|
|
|
|
<h1
|
|
className="max-w-[920px] text-balance font-display text-[clamp(2.9rem,7vw,6.4rem)] font-extrabold leading-[0.92] tracking-[-0.04em] text-transparent bg-clip-text bg-gradient-to-br from-[#ffffff] to-[#a3a3a3]"
|
|
aria-label="evandro.dev.br"
|
|
>
|
|
Engenharia de software para produtos conectados, interfaces de
|
|
alta performance e sistemas criticos.
|
|
</h1>
|
|
|
|
<motion.p
|
|
className="mt-sp-6 max-w-[640px] text-[15px] leading-7 text-[rgba(244,242,237,.9)] lg:text-[16px] drop-shadow-md"
|
|
initial={
|
|
shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 16 }
|
|
}
|
|
animate={
|
|
shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }
|
|
}
|
|
transition={{
|
|
duration: 0.8,
|
|
delay: 0.16,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
Da integracao com hardware e APIs complexas ao frontend moderno,
|
|
construo sistemas estaveis, operaveis e prontos para crescer sem
|
|
sacrificar clareza tecnica.
|
|
</motion.p>
|
|
|
|
<motion.div
|
|
className="mt-sp-8 flex flex-wrap items-center gap-sp-4"
|
|
initial={
|
|
shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 16 }
|
|
}
|
|
animate={
|
|
shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }
|
|
}
|
|
transition={{
|
|
duration: 0.8,
|
|
delay: 0.24,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
<motion.a
|
|
href={`https://wa.me/5547992742365?text=${encodeURIComponent(greeting)}`}
|
|
className="inline-flex min-h-12 items-center justify-center bg-[var(--slash)] px-sp-8 font-mono text-[11px] font-bold uppercase tracking-[0.12em] text-[#0A0A0A] no-underline transition-[transform,background-color,box-shadow] duration-300 hover:bg-white hover:shadow-[0_0_20px_rgba(204,255,0,0.4)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--slash)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--ink)]"
|
|
whileHover={shouldReduceMotion ? undefined : { scale: 1.02 }}
|
|
whileTap={shouldReduceMotion ? undefined : { scale: 0.98 }}
|
|
>
|
|
Iniciar projeto
|
|
</motion.a>
|
|
|
|
<motion.a
|
|
href="#projects"
|
|
className="inline-flex min-h-12 items-center justify-center border border-[rgba(244,242,237,.28)] bg-[rgba(10,10,10,0.4)] backdrop-blur-md px-sp-8 font-mono text-[11px] font-bold uppercase tracking-[0.12em] text-[#f4f2ed] no-underline transition-[transform,border-color,background-color,color] duration-300 hover:border-[var(--slash)] hover:bg-[rgba(204,255,0,0.08)] hover:text-[var(--slash)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--slash)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--ink)]"
|
|
whileHover={shouldReduceMotion ? undefined : { scale: 1.02 }}
|
|
whileTap={shouldReduceMotion ? undefined : { scale: 0.98 }}
|
|
>
|
|
Ver projetos
|
|
</motion.a>
|
|
|
|
<a
|
|
href="/assets/Evandro_Fonseca_Junior_CV.pdf"
|
|
download
|
|
className="inline-flex min-h-12 items-center justify-center px-sp-2 text-[12px] font-medium text-[rgba(244,242,237,.9)] no-underline transition-colors duration-300 hover:text-[var(--slash)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--slash)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--ink)] drop-shadow-md"
|
|
>
|
|
Download CV
|
|
</a>
|
|
</motion.div>
|
|
|
|
<motion.div
|
|
className="mt-sp-10 flex flex-wrap items-center gap-x-sp-6 gap-y-sp-3 border-t border-[rgba(255,255,255,.08)] pt-sp-6"
|
|
initial={
|
|
shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 16 }
|
|
}
|
|
animate={
|
|
shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }
|
|
}
|
|
transition={{
|
|
duration: 0.8,
|
|
delay: 0.32,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
<div className="inline-flex items-center gap-sp-3 text-[11px] uppercase tracking-[0.12em] text-[rgba(244,242,237,.72)]">
|
|
<span className="h-2 w-2 rounded-full bg-[var(--slash)] shadow-[0_0_8px_var(--slash)]" />
|
|
Garuva, SC / Brasil
|
|
</div>
|
|
<div className="inline-flex items-center gap-sp-3 text-[11px] uppercase tracking-[0.12em] text-[rgba(244,242,237,.72)]">
|
|
<span className="h-[1px] w-6 bg-[rgba(255,255,255,.2)]" />
|
|
Next.js, Tauri, Rust, Node.js
|
|
</div>
|
|
<div className="flex items-center gap-sp-2">
|
|
{SOCIAL_LINKS.map((link) => (
|
|
<a
|
|
key={link.label}
|
|
href={link.href}
|
|
target={link.href.startsWith("http") ? "_blank" : undefined}
|
|
rel={
|
|
link.href.startsWith("http")
|
|
? "noopener noreferrer"
|
|
: undefined
|
|
}
|
|
className="inline-flex h-11 w-11 items-center justify-center rounded-full border border-[rgba(244,242,237,0.18)] bg-[rgba(10,10,10,0.4)] backdrop-blur-md text-[rgba(244,242,237,.88)] transition-[transform,border-color,color,background-color] duration-300 hover:border-[var(--slash)] hover:bg-[rgba(204,255,0,0.1)] hover:text-[var(--slash)] hover:shadow-[0_0_15px_rgba(204,255,0,0.2)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--slash)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--ink)]"
|
|
aria-label={link.label}
|
|
>
|
|
<svg
|
|
width="20"
|
|
height="20"
|
|
viewBox="0 0 24 24"
|
|
fill={link.stroke ? "none" : "currentColor"}
|
|
stroke={link.stroke ? "currentColor" : "none"}
|
|
strokeWidth={link.stroke ? "2" : undefined}
|
|
role="img"
|
|
aria-label={link.label}
|
|
>
|
|
{link.icon}
|
|
</svg>
|
|
</a>
|
|
))}
|
|
</div>
|
|
</motion.div>
|
|
</div>
|
|
|
|
<motion.aside
|
|
className="relative overflow-hidden border border-[rgba(255,255,255,0.15)] bg-[linear-gradient(180deg,rgba(10,10,10,0.6),rgba(10,10,10,0.3))] p-sp-6 backdrop-blur-xl lg:p-sp-8"
|
|
initial={
|
|
shouldReduceMotion ? { opacity: 0 } : { opacity: 0, x: 24 }
|
|
}
|
|
animate={shouldReduceMotion ? { opacity: 1 } : { opacity: 1, x: 0 }}
|
|
transition={{ duration: 0.9, delay: 0.22, ease: [0.16, 1, 0.3, 1] }}
|
|
>
|
|
<div className="absolute inset-x-0 top-0 h-px bg-[linear-gradient(90deg,transparent,rgba(204,255,0,0.9),transparent)]" />
|
|
<div className="absolute inset-y-0 left-0 w-px bg-[linear-gradient(180deg,rgba(204,255,0,0.4),transparent)]" />
|
|
|
|
<div className="flex items-start justify-between gap-sp-4 border-b border-[rgba(255,255,255,0.08)] pb-sp-5">
|
|
<div>
|
|
<div className="font-mono text-[10px] uppercase tracking-[0.18em] text-[var(--slash)]">
|
|
Execution Brief
|
|
</div>
|
|
<h2 className="mt-sp-2 font-display text-[clamp(1.35rem,3vw,2rem)] font-extrabold leading-[1.02] tracking-[-0.03em] text-[#f7f4ee]">
|
|
Clareza de arquitetura antes de complexidade.
|
|
</h2>
|
|
</div>
|
|
<div className="shrink-0 border border-[rgba(204,255,0,0.3)] bg-[rgba(204,255,0,0.05)] px-3 py-2 font-mono text-[10px] uppercase tracking-[0.14em] text-[var(--slash)]">
|
|
2026
|
|
</div>
|
|
</div>
|
|
|
|
<div className="mt-sp-6 space-y-sp-5">
|
|
{PROOF_ITEMS.map((item, index) => (
|
|
<motion.article
|
|
key={item.label}
|
|
className="border-b border-[rgba(255,255,255,0.08)] pb-sp-5 last:border-b-0 last:pb-0"
|
|
initial={
|
|
shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 12 }
|
|
}
|
|
animate={
|
|
shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }
|
|
}
|
|
transition={{
|
|
duration: 0.65,
|
|
delay: 0.28 + index * 0.08,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
<div className="font-mono text-[10px] uppercase tracking-[0.18em] text-[rgba(244,242,237,.7)]">
|
|
{item.label}
|
|
</div>
|
|
<p className="mt-sp-2 text-[14px] leading-6 text-[rgba(244,242,237,.94)]">
|
|
{item.value}
|
|
</p>
|
|
</motion.article>
|
|
))}
|
|
</div>
|
|
|
|
<motion.div
|
|
className="mt-sp-8 grid gap-sp-4 sm:grid-cols-2"
|
|
initial={
|
|
shouldReduceMotion ? { opacity: 0 } : { opacity: 0, y: 16 }
|
|
}
|
|
animate={
|
|
shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }
|
|
}
|
|
transition={{
|
|
duration: 0.75,
|
|
delay: 0.48,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
<div className="border border-[rgba(255,255,255,0.1)] bg-[rgba(10,10,10,0.4)] p-sp-4 hover:border-[var(--slash)] transition-colors duration-300">
|
|
<div className="font-mono text-[10px] uppercase tracking-[0.18em] text-[var(--slash)]">
|
|
Focus
|
|
</div>
|
|
<p className="mt-sp-2 text-[13px] leading-6 text-[rgba(244,242,237,.9)]">
|
|
Sistemas com baixa latencia, alta previsibilidade e manutencao
|
|
sustentavel.
|
|
</p>
|
|
</div>
|
|
<div className="border border-[rgba(255,255,255,0.1)] bg-[rgba(10,10,10,0.4)] p-sp-4 hover:border-[var(--slash)] transition-colors duration-300">
|
|
<div className="font-mono text-[10px] uppercase tracking-[0.18em] text-[var(--slash)]">
|
|
Availability
|
|
</div>
|
|
<p className="mt-sp-2 text-[13px] leading-6 text-[rgba(244,242,237,.9)]">
|
|
Aberto a novos projetos com ownership tecnico, discovery e
|
|
entrega iterativa.
|
|
</p>
|
|
</div>
|
|
</motion.div>
|
|
</motion.aside>
|
|
</motion.div>
|
|
</div>
|
|
|
|
<motion.div
|
|
className="absolute bottom-10 left-1/2 flex -translate-x-1/2 flex-col items-center gap-3 opacity-50 z-10 pointer-events-none"
|
|
initial={shouldReduceMotion ? { opacity: 0 } : { opacity: 0 }}
|
|
animate={shouldReduceMotion ? { opacity: 0.5 } : { opacity: 0.5 }}
|
|
transition={{ delay: 1, duration: 1 }}
|
|
>
|
|
<span className="font-mono text-[9px] uppercase tracking-widest text-[var(--slash)]">
|
|
Scroll
|
|
</span>
|
|
<div className="h-10 w-[1px] bg-gradient-to-b from-[var(--slash)] to-transparent" />
|
|
</motion.div>
|
|
</section>
|
|
);
|
|
}
|