teqo-backup/src/app/(frontend)/(home)/CampaignCardsSection.tsx
Francisco Solla 8e0366d3ba feat(S14): cards personalizados — ajustes de fidelidade e experiência
A home abre o mesmo compositor do /cards ali mesmo (dialog no desktop,
drawer no mobile) e perde o CTA: os três modelos viram botões e nada
navega. A seção sobe para imediatamente antes da captura de novidades.
O nome no card e no tile alinha à esquerda com o SOU (x=213) via leftX
+ drawCardName extraído; o tile passa a desenhar SEU NOME com o próprio
pipeline real (canvas transparente sobre a base). Modal sem o vão
interno (p-0 sm:p-0) e ajuda legível no tema campaign-site
(--muted-foreground). Remove a variante link e o cardModelHref sem call
site. Unit atualizado (+ drawCardName) e e2e com alinhamento por pixel;
sem migration, sem PII em rede.
2026-09-12 21:01:15 -03:00

39 lines
1.6 KiB
TypeScript

import { brexterBold } from '@/app/(frontend)/fonts'
import { CardsStudio } from '@/components/cards/CardsStudio'
/**
* S14 — the home invitation to the card funnel: short copy + the three model
* tiles, positioned right before the newsletter capture (which stays the last
* conversion block). Tapping a tile opens the SAME composer island used by
* `/cards` right here (dialog on desktop, drawer on mobile) — no navigation and
* no separate CTA. `brexterBold.variable` includes the display face in the page
* so the name-tile canvas (family passed as a prop) can load it.
*/
export const CampaignCardsSection = () => (
<section
id="cards"
aria-labelledby="cards-title"
data-home-section="cards"
className={`border-b border-(--campaign-line) bg-(--campaign-cream) ${brexterBold.variable}`}
>
<div className="mx-auto w-full max-w-[1160px] px-5 py-12 sm:px-8 lg:px-10 lg:py-16">
<div className="mx-auto max-w-2xl text-center">
<p className="campaign-section-eyebrow m-0 font-black tracking-[0.1em] text-(--pt-red) uppercase">
Faça parte
</p>
<h2
id="cards-title"
className="campaign-section-title m-0 mt-1 border-0 p-0 font-black tracking-[-0.02em] text-balance"
>
Mostre que você está com Solla
</h2>
<p className="campaign-section-copy m-0 mt-1 text-(--campaign-muted)">
Escolha um modelo, coloque seu nome ou sua foto e baixe seu card. Compartilhe com sua
gente e fortaleça nossa caminhada.
</p>
</div>
<CardsStudio fontFamily={brexterBold.style.fontFamily} />
</div>
</section>
)