CI / verify (push) Failing after 5m43s
- Biome: formatacao, ordem de imports, max-width duplicado no cabecalho de secao, supressao justificada para nomes de view-transition, ajustes nos scripts de auditoria de SEO - next 16.3.3 -> 16.3.8: GHSA-vcvr-r3jv-pc5j (execucao remota de codigo em next/og ImageResponse, usado nas imagens de compartilhamento) - overrides de brace-expansion (GHSA-qhr7-859c-m2p7, GHSA-6j4f-fj2g-mc7p, GHSA-q2hr-2g5m-vwhr), dependencia de desenvolvimento via jest - visibilidade das cenas le as posicoes a cada quadro e o GSAP remede as passagens quando a pagina muda de altura (fontes, imagens, Experiencia) Co-Authored-By: Claude Opus 5.5 <[email protected]>
189 lines
8.2 KiB
TypeScript
189 lines
8.2 KiB
TypeScript
import Link from "next/link";
|
|
import { type CSSProperties, Fragment } from "react";
|
|
import HeroField from "./cinematic/HeroField";
|
|
|
|
const SOCIAL_LINKS = [
|
|
{
|
|
href: "https://github.com/evandrodevbr",
|
|
label: "GitHub",
|
|
},
|
|
{
|
|
href: "https://www.linkedin.com/in/evandro-fonseca-junior-0969aa1b0/",
|
|
label: "LinkedIn",
|
|
},
|
|
{
|
|
href: "mailto:[email protected]",
|
|
label: "Email",
|
|
},
|
|
];
|
|
|
|
/** Números reais, calculados em app/page.tsx a partir de public/portfolio-data.json (nada digitado à mão). */
|
|
export type HeroStats = {
|
|
years?: number;
|
|
projects?: number;
|
|
demos?: number;
|
|
};
|
|
|
|
function statItems(stats?: HeroStats) {
|
|
if (!stats) return [];
|
|
return [
|
|
stats.years ? [String(stats.years), "anos de experiência"] : null,
|
|
stats.projects ? [String(stats.projects), "projetos publicados"] : null,
|
|
stats.demos ? [String(stats.demos), "com demonstração online"] : null,
|
|
].filter((item): item is [string, string] => item !== null);
|
|
}
|
|
|
|
/** Título em palavras para a entrada em cascata; o texto segue inteiro para leitores de tela e buscadores. */
|
|
const TITLE =
|
|
"Sistemas sob medida para operações que não cabem em soluções prontas.".split(
|
|
" ",
|
|
);
|
|
const ACCENT = new Set([1, 2]);
|
|
|
|
/** O que cada camada da cena significa, em linguagem simples. */
|
|
const CAPTIONS = [
|
|
["A tela", "O que sua equipe e seus clientes usam no dia a dia."],
|
|
[
|
|
"As integrações",
|
|
"Os programas que você já usa conversando entre si, sem retrabalho.",
|
|
],
|
|
["Os dados", "Suas informações guardadas, organizadas e seguras."],
|
|
] as const;
|
|
|
|
export default function Hero({ stats }: { stats?: HeroStats }) {
|
|
const items = statItems(stats);
|
|
|
|
return (
|
|
<section
|
|
id="home"
|
|
className="hero relative w-full bg-[var(--ink)] font-display text-[#f4f2ed]"
|
|
>
|
|
<div className="hero-stage">
|
|
<div className="hero-glow" aria-hidden="true" />
|
|
<HeroField />
|
|
<div className="hero-scrim" aria-hidden="true" />
|
|
{/* Legendas do mergulho: aparecem enquanto a câmera atravessa cada camada (só no hero fixo, telas grandes). */}
|
|
<ol className="hero-captions">
|
|
{CAPTIONS.map(([title, text], index) => (
|
|
<li key={title} style={{ "--i": index } as CSSProperties}>
|
|
<span className="hero-caption-title">{title}</span>
|
|
{text}
|
|
</li>
|
|
))}
|
|
</ol>
|
|
|
|
<div className="hero-content relative mx-auto flex w-full max-w-[max(1400px,var(--shell))] flex-1 flex-col justify-center px-sp-6 pt-[calc(var(--site-header-height)+32px)] pb-sp-8 lg:px-sp-12">
|
|
<p className="hero-in mb-sp-5 flex items-center gap-sp-3 font-mono text-[11px] uppercase leading-[1.5] tracking-[0.14em] text-[rgba(244,242,237,.72)] sm:text-[12px]">
|
|
<span aria-hidden="true" className="h-2 w-2 bg-[var(--slash)]" />
|
|
Evandro Fonseca Junior · Engenharia de software
|
|
</p>
|
|
{/* Sem opacity:0: as palavras pintam no primeiro quadro (LCP); a entrada anima só posição e foco. */}
|
|
<h1 className="hero-title max-w-[12.5em] lg:max-w-[min(11em,54vw)] text-[clamp(38px,min(6vw,10.5svh),124px)] font-semibold leading-[0.98] tracking-[-0.05em]">
|
|
{TITLE.map((word, index) => (
|
|
<Fragment key={word}>
|
|
<span
|
|
className={`hero-word${ACCENT.has(index) ? " text-[var(--slash)]" : ""}`}
|
|
style={{ "--i": index } as CSSProperties}
|
|
>
|
|
{word}
|
|
</span>{" "}
|
|
</Fragment>
|
|
))}
|
|
</h1>
|
|
<p className="hero-in mt-sp-5 max-w-[34em] text-[clamp(16px,0.95rem+0.4vw,22px)] leading-[1.55] text-[rgba(244,242,237,.8)] [--d:.55s]">
|
|
Projeto e desenvolvo sistemas web, aplicativos e integrações, do
|
|
entendimento do negócio à arquitetura e à entrega em produção.
|
|
</p>
|
|
|
|
<div className="hero-in mt-sp-6 flex flex-col gap-sp-3 [--d:.65s] sm:flex-row sm:flex-wrap sm:items-center">
|
|
<Link
|
|
href="/#contact"
|
|
className="group inline-flex min-h-12 items-center justify-center gap-sp-3 bg-[var(--slash)] px-sp-4 py-sp-3 text-center text-[15px] font-semibold leading-6 text-[var(--ink)] no-underline transition-colors hover:bg-[#d9ff40] motion-reduce:transition-none sm:px-sp-6 sm:text-[16px]"
|
|
>
|
|
Conversar sobre meu projeto
|
|
<svg
|
|
aria-hidden="true"
|
|
viewBox="0 0 16 16"
|
|
className="h-4 w-4 transition-transform group-hover:translate-x-1 motion-reduce:transition-none"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
strokeWidth="2"
|
|
>
|
|
<path d="M2 8h11M9 3.5 13.5 8 9 12.5" />
|
|
</svg>
|
|
</Link>
|
|
<Link
|
|
href="/cases"
|
|
className="inline-flex min-h-12 items-center justify-center border border-white/15 bg-[rgba(10,10,10,.35)] px-sp-5 py-sp-3 text-center text-[15px] font-medium leading-6 text-[#f4f2ed] no-underline backdrop-blur-sm transition-colors hover:border-white/40 motion-reduce:transition-none sm:text-[16px]"
|
|
>
|
|
Ver projetos entregues
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="hero-foot relative mx-auto flex w-full max-w-[max(1400px,var(--shell))] flex-wrap items-end justify-between gap-sp-5 px-sp-6 pb-sp-5 lg:px-sp-12">
|
|
<div className="flex flex-wrap items-end gap-x-sp-8 gap-y-sp-4 border-t border-white/10 pt-sp-4">
|
|
{items.length > 0 && (
|
|
<dl className="flex gap-x-sp-5 gap-y-sp-4 sm:flex-wrap sm:gap-x-sp-8">
|
|
{items.map(([value, label]) => (
|
|
<div key={label} className="flex flex-col-reverse">
|
|
<dt className="text-[13px] leading-[1.4] text-[rgba(244,242,237,.64)]">
|
|
{label}
|
|
</dt>
|
|
<dd className="font-mono text-[clamp(22px,1.1rem+0.8vw,36px)] font-semibold leading-none tracking-[-0.03em] text-[var(--slash)]">
|
|
{value}
|
|
</dd>
|
|
</div>
|
|
))}
|
|
</dl>
|
|
)}
|
|
{/* no celular, serviços e redes ficam no menu e no rodapé: assim o hero cabe numa tela e pode ficar fixo */}
|
|
<div className="max-lg:hidden">
|
|
<ul className="flex flex-wrap gap-x-sp-5 gap-y-sp-2 text-[14px] leading-[1.5] text-[rgba(244,242,237,.8)]">
|
|
{["Sistemas web", "Aplicativos", "Integrações"].map(
|
|
(service) => (
|
|
<li key={service} className="flex items-center gap-sp-2">
|
|
<span
|
|
aria-hidden="true"
|
|
className="h-1 w-1 bg-[var(--slash)]"
|
|
/>
|
|
{service}
|
|
</li>
|
|
),
|
|
)}
|
|
</ul>
|
|
<div className="flex flex-wrap items-center gap-x-sp-5">
|
|
{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 min-h-11 items-center text-[13px] text-[rgba(244,242,237,.64)] no-underline underline-offset-4 hover:text-[#f4f2ed] hover:underline"
|
|
>
|
|
{link.label}
|
|
</a>
|
|
))}
|
|
<span className="text-[13px] text-[rgba(244,242,237,.55)]">
|
|
Santa Catarina · Atendimento remoto
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<p
|
|
aria-hidden="true"
|
|
className="hero-cue hidden items-center gap-sp-3 font-mono text-[11px] uppercase tracking-[0.14em] text-[rgba(244,242,237,.55)] lg:flex"
|
|
>
|
|
Role para mergulhar
|
|
<span className="hero-cue-line" />
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|