424 lines
17 KiB
TypeScript
424 lines
17 KiB
TypeScript
"use client";
|
|
|
|
import dynamic from "next/dynamic";
|
|
import { motion, useReducedMotion, type Variants } from "framer-motion";
|
|
import MagneticButton from "./cinematic/MagneticButton";
|
|
|
|
const HeroScene = dynamic(() => import("./cinematic/HeroScene"), {
|
|
ssr: false,
|
|
});
|
|
|
|
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 HERO_POINTS = [
|
|
"Produtos conectados, integracoes complexas e operacoes criticas.",
|
|
"Arquitetura mais clara para evoluir sem aumentar o caos tecnico.",
|
|
"Execucao ponta a ponta, do discovery a entrega em producao.",
|
|
];
|
|
|
|
const PROOF_ITEMS = [
|
|
{
|
|
label: "Quem eu ajudo",
|
|
value:
|
|
"Empresas que dependem de integracoes, hardware ou fluxos criticos para operar com seguranca e previsibilidade.",
|
|
},
|
|
{
|
|
label: "Como entrego",
|
|
value:
|
|
"Traduzo complexidade tecnica em backlog claro, arquitetura legivel e decisao mais rapida para o time.",
|
|
},
|
|
{
|
|
label: "Por que conversar",
|
|
value:
|
|
"Voce ganha um parceiro tecnico capaz de conectar produto, backend, interface e operacao sem perder contexto.",
|
|
},
|
|
];
|
|
|
|
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?";
|
|
|
|
// Cinematic stagger variants
|
|
const heroContainer: Variants = {
|
|
hidden: { opacity: 0 },
|
|
visible: {
|
|
opacity: 1,
|
|
transition: {
|
|
staggerChildren: 0.1,
|
|
delayChildren: 0.3,
|
|
},
|
|
},
|
|
};
|
|
|
|
const easeOut: [number, number, number, number] = [0.16, 1, 0.3, 1];
|
|
|
|
const heroItem: Variants = {
|
|
hidden: shouldReduceMotion
|
|
? { opacity: 0 }
|
|
: { opacity: 0, y: 40, filter: "blur(10px)" },
|
|
visible: {
|
|
opacity: 1,
|
|
y: 0,
|
|
filter: "blur(0px)",
|
|
transition: {
|
|
duration: 1,
|
|
ease: easeOut,
|
|
},
|
|
},
|
|
};
|
|
|
|
const heroItemSlow: Variants = {
|
|
hidden: shouldReduceMotion
|
|
? { opacity: 0 }
|
|
: { opacity: 0, y: 60, filter: "blur(12px)" },
|
|
visible: {
|
|
opacity: 1,
|
|
y: 0,
|
|
filter: "blur(0px)",
|
|
transition: {
|
|
duration: 1.2,
|
|
ease: easeOut,
|
|
},
|
|
},
|
|
};
|
|
|
|
return (
|
|
<section
|
|
id="home"
|
|
className="relative flex min-h-[100svh] w-full items-center overflow-hidden bg-[var(--ink)] text-[#f4f2ed]"
|
|
>
|
|
{/* 3D Scene Background */}
|
|
{!shouldReduceMotion && <HeroScene />}
|
|
|
|
{/* Cinematic overlays */}
|
|
<div className="pointer-events-none absolute inset-0 z-[1] bg-[radial-gradient(ellipse_80%_60%_at_50%_40%,transparent_0%,rgba(10,10,10,0.4)_50%,var(--ink)_100%)]" />
|
|
<div className="pointer-events-none absolute inset-0 z-[1] bg-gradient-to-b from-transparent via-transparent to-[var(--ink)]" />
|
|
|
|
{/* Scanlines effect */}
|
|
<div
|
|
className="pointer-events-none absolute inset-0 z-[2] opacity-[0.015]"
|
|
style={{
|
|
backgroundImage:
|
|
"repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px)",
|
|
}}
|
|
/>
|
|
|
|
{/* Vignette */}
|
|
<div className="pointer-events-none absolute inset-0 z-[2] bg-[radial-gradient(circle_at_50%_50%,transparent_40%,rgba(10,10,10,0.6)_100%)]" />
|
|
|
|
<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-sp-12">
|
|
<motion.div
|
|
initial="hidden"
|
|
animate="visible"
|
|
variants={heroContainer}
|
|
className="grid items-start gap-sp-8 lg:grid-cols-[minmax(0,1.1fr)_minmax(340px,0.9fr)] lg:gap-sp-10"
|
|
>
|
|
<div className="max-w-[760px]">
|
|
{/* Status badge with glow */}
|
|
<motion.div
|
|
className="mb-sp-5 flex flex-wrap items-center gap-sp-3"
|
|
variants={heroItem}
|
|
>
|
|
<div className="cinematic-glass inline-flex items-center gap-sp-3 px-4 py-2">
|
|
<motion.span
|
|
className="h-2 w-2 rounded-sm bg-[var(--slash)]"
|
|
animate={
|
|
shouldReduceMotion
|
|
? { opacity: 1 }
|
|
: {
|
|
opacity: [1, 0.25, 1],
|
|
boxShadow: [
|
|
"0 0 4px rgba(204,255,0,0.6)",
|
|
"0 0 12px rgba(204,255,0,0.2)",
|
|
"0 0 4px rgba(204,255,0,0.6)",
|
|
],
|
|
}
|
|
}
|
|
transition={
|
|
shouldReduceMotion
|
|
? { duration: 0 }
|
|
: {
|
|
duration: 2,
|
|
ease: "easeInOut",
|
|
repeat: Number.POSITIVE_INFINITY,
|
|
}
|
|
}
|
|
/>
|
|
<span className="font-mono text-[10px] uppercase tracking-[0.12em] text-[rgba(244,242,237,.82)]">
|
|
Available for selected builds
|
|
</span>
|
|
</div>
|
|
<div className="cinematic-glass inline-flex items-center gap-sp-2 px-4 py-2 text-[11px] text-[rgba(244,242,237,.72)]">
|
|
Produtos conectados, integracoes criticas e entrega ponta a ponta
|
|
</div>
|
|
</motion.div>
|
|
|
|
{/* Eyebrow */}
|
|
<motion.p
|
|
className="mb-sp-4 max-w-[540px] font-mono text-[10px] uppercase tracking-[0.12em] text-[var(--slash)]"
|
|
variants={heroItem}
|
|
>
|
|
Evandro Fonseca Junior | Engenheiro de software full-stack
|
|
</motion.p>
|
|
|
|
{/* Main heading with cinematic reveal */}
|
|
<motion.h1
|
|
className="max-w-[920px] text-balance font-display text-[clamp(3rem,7vw,6.2rem)] font-extrabold leading-[0.9] tracking-[-0.055em]"
|
|
variants={heroItemSlow}
|
|
>
|
|
<span className="cinematic-text-gradient">
|
|
Engenharia de software para sistemas que nao podem falhar.
|
|
</span>
|
|
</motion.h1>
|
|
|
|
{/* Subtitle */}
|
|
<motion.p
|
|
className="mt-sp-6 max-w-[680px] text-[16px] leading-8 text-[rgba(244,242,237,.88)] lg:text-[17px]"
|
|
variants={heroItem}
|
|
>
|
|
Ajudo empresas com produtos conectados, integracoes complexas e
|
|
operacoes criticas a transformar arquitetura confusa em software
|
|
estavel, mais rapido de evoluir e muito mais facil de operar.
|
|
</motion.p>
|
|
|
|
{/* Key points with staggered reveal */}
|
|
<motion.ul
|
|
className="mt-sp-8 grid gap-sp-3 sm:grid-cols-3"
|
|
variants={heroItem}
|
|
>
|
|
{HERO_POINTS.map((point, i) => (
|
|
<motion.li
|
|
key={point}
|
|
className="cinematic-glass flex min-w-0 gap-sp-3 px-sp-4 py-sp-4 text-[13px] leading-6 text-[rgba(244,242,237,.82)]"
|
|
initial={
|
|
shouldReduceMotion
|
|
? { opacity: 0 }
|
|
: { opacity: 0, y: 30, scale: 0.95 }
|
|
}
|
|
animate={{ opacity: 1, y: 0, scale: 1 }}
|
|
transition={{
|
|
duration: 0.8,
|
|
delay: 0.8 + i * 0.1,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
<span className="mt-[8px] h-1.5 w-1.5 shrink-0 rounded-full bg-[var(--slash)] shadow-[0_0_8px_rgba(204,255,0,0.5)]" />
|
|
<span>{point}</span>
|
|
</motion.li>
|
|
))}
|
|
</motion.ul>
|
|
|
|
{/* CTAs with magnetic effect */}
|
|
<motion.div
|
|
className="mt-sp-8 flex flex-wrap items-center gap-sp-4"
|
|
variants={heroItem}
|
|
>
|
|
<MagneticButton
|
|
as="a"
|
|
href={`https://wa.me/5547992742365?text=${encodeURIComponent(greeting)}`}
|
|
className="cinematic-cta-primary inline-flex min-h-12 items-center justify-center px-sp-8 font-mono text-[11px] font-bold uppercase tracking-[0.1em] text-[#0A0A0A] no-underline"
|
|
data-cursor="View"
|
|
strength={0.25}
|
|
>
|
|
<span className="relative z-10">Agendar conversa tecnica</span>
|
|
</MagneticButton>
|
|
|
|
<MagneticButton
|
|
as="a"
|
|
href="/cases"
|
|
className="cinematic-cta-secondary inline-flex min-h-12 items-center justify-center px-sp-8 font-mono text-[11px] font-bold uppercase tracking-[0.1em] text-[#f4f2ed] no-underline"
|
|
data-cursor="View"
|
|
strength={0.25}
|
|
>
|
|
Ver casos selecionados
|
|
</MagneticButton>
|
|
|
|
<MagneticButton
|
|
as="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,.76)] no-underline transition-colors duration-300 hover:text-[var(--slash)]"
|
|
strength={0.2}
|
|
>
|
|
Download CV
|
|
</MagneticButton>
|
|
</motion.div>
|
|
|
|
{/* Footer info with reveal */}
|
|
<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,.06)] pt-sp-6"
|
|
variants={heroItem}
|
|
>
|
|
<div className="inline-flex items-center gap-sp-3 text-[11px] uppercase tracking-[0.08em] text-[rgba(244,242,237,.68)]">
|
|
<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.08em] text-[rgba(244,242,237,.68)]">
|
|
<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) => (
|
|
<MagneticButton
|
|
key={link.label}
|
|
as="a"
|
|
href={link.href}
|
|
target={link.href.startsWith("http") ? "_blank" : undefined}
|
|
rel={
|
|
link.href.startsWith("http")
|
|
? "noopener noreferrer"
|
|
: undefined
|
|
}
|
|
className="cinematic-social-link inline-flex h-11 w-11 items-center justify-center rounded-full"
|
|
strength={0.4}
|
|
>
|
|
<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}
|
|
aria-hidden="true"
|
|
>
|
|
{link.icon}
|
|
</svg>
|
|
</MagneticButton>
|
|
))}
|
|
</div>
|
|
</motion.div>
|
|
</div>
|
|
|
|
{/* Aside card with cinematic entrance */}
|
|
<motion.aside
|
|
className="cinematic-aside-card relative overflow-hidden p-sp-6 lg:p-sp-8"
|
|
initial={
|
|
shouldReduceMotion
|
|
? { opacity: 0 }
|
|
: { opacity: 0, x: 60, rotateY: -8, transformPerspective: 1000 }
|
|
}
|
|
animate={
|
|
shouldReduceMotion
|
|
? { opacity: 1 }
|
|
: { opacity: 1, x: 0, rotateY: 0 }
|
|
}
|
|
transition={{
|
|
duration: 1.2,
|
|
delay: 0.5,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
{/* Top glow line */}
|
|
<motion.div
|
|
className="absolute inset-x-0 top-0 h-px bg-[linear-gradient(90deg,transparent,rgba(204,255,0,0.8),transparent)]"
|
|
initial={{ scaleX: 0 }}
|
|
animate={{ scaleX: 1 }}
|
|
transition={{ duration: 1.5, delay: 1, ease: [0.16, 1, 0.3, 1] }}
|
|
/>
|
|
|
|
<div className="border-b border-[rgba(255,255,255,0.08)] pb-sp-5">
|
|
<div className="font-mono text-[10px] uppercase tracking-[0.14em] text-[var(--slash)]">
|
|
Why this positioning works
|
|
</div>
|
|
<h2 className="mt-sp-3 font-display text-[clamp(1.35rem,3vw,2rem)] font-extrabold leading-[1.04] tracking-[-0.03em] text-[#f7f4ee]">
|
|
Menos atrito entre produto, engenharia e operacao.
|
|
</h2>
|
|
<p className="mt-sp-4 text-[14px] leading-7 text-[rgba(244,242,237,.78)]">
|
|
Entro onde a complexidade cresce e ajudo a devolver clareza,
|
|
ritmo de entrega e confiabilidade para o sistema e para o time.
|
|
</p>
|
|
</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: 20, filter: "blur(6px)" }
|
|
}
|
|
animate={{
|
|
opacity: 1,
|
|
y: 0,
|
|
filter: "blur(0px)",
|
|
}}
|
|
transition={{
|
|
duration: 0.8,
|
|
delay: 0.8 + index * 0.12,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
>
|
|
<div className="font-mono text-[10px] uppercase tracking-[0.12em] text-[rgba(244,242,237,.56)]">
|
|
{item.label}
|
|
</div>
|
|
<p className="mt-sp-2 text-[14px] leading-7 text-[rgba(244,242,237,.92)]">
|
|
{item.value}
|
|
</p>
|
|
</motion.article>
|
|
))}
|
|
</div>
|
|
</motion.aside>
|
|
</motion.div>
|
|
</div>
|
|
|
|
{/* Scroll indicator */}
|
|
<motion.div
|
|
className="absolute bottom-8 left-1/2 z-10 -translate-x-1/2"
|
|
initial={{ opacity: 0, y: -10 }}
|
|
animate={{ opacity: 1, y: 0 }}
|
|
transition={{ delay: 2, duration: 1 }}
|
|
>
|
|
<motion.div
|
|
className="flex flex-col items-center gap-2"
|
|
animate={{ y: [0, 8, 0] }}
|
|
transition={{
|
|
duration: 2,
|
|
repeat: Number.POSITIVE_INFINITY,
|
|
ease: "easeInOut",
|
|
}}
|
|
>
|
|
<span className="font-mono text-[8px] uppercase tracking-[0.2em] text-[rgba(244,242,237,.4)]">
|
|
Scroll
|
|
</span>
|
|
<div className="h-8 w-px bg-gradient-to-b from-[var(--slash)] to-transparent opacity-50" />
|
|
</motion.div>
|
|
</motion.div>
|
|
</section>
|
|
);
|
|
}
|