mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-18 14:13:06 +00:00
- player mobile 226px (CTA do detalhe acima da dobra), 330px a partir de lg - painel de downloads no mobile: CTA primário primeiro, 'Outros arquivos' depois - cards mobile só com título/funcionalidade; data e 'Abrir reel' a partir de lg - despublicado: aviso + publicação antes da mídia bloqueada; 'Sobre o reel' depois - feature sem '(#cards)' na UI e data de publicação só com o dia - 'Abrir reel' aria-hidden (o card inteiro é o link) Design tier: openai/gpt-5.6-sol — crítica final certificada (v3, 10 capturas).
48 lines
2 KiB
TypeScript
48 lines
2 KiB
TypeScript
import Link from 'next/link'
|
|
|
|
import type { ReelLibraryItemViewModel } from '@/lib/reel'
|
|
|
|
/**
|
|
* C194 — one card of the reel library: the 9:16 cover leads, the title and the
|
|
* feature follow, and the whole card is the link to the detail (there is no
|
|
* second action on the card, so the "Abrir reel" affordance is visual).
|
|
*/
|
|
export const ReelLibraryCard = ({ reel }: { reel: ReelLibraryItemViewModel }) => (
|
|
<article className="group overflow-hidden rounded-xl border border-border bg-card">
|
|
<Link href={reel.detailHref} className="block focus-visible:outline-none">
|
|
<div className="relative aspect-[9/16] overflow-hidden bg-muted">
|
|
{/* eslint-disable-next-line @next/next/no-img-element -- the cover is served by the authenticated campaign route; the Next optimizer has no session cookie. */}
|
|
<img
|
|
src={reel.coverUrl}
|
|
alt={reel.coverAlt}
|
|
loading="lazy"
|
|
className="absolute inset-0 size-full object-cover"
|
|
/>
|
|
<span className="absolute left-3 top-3 rounded-full bg-white/95 px-2 py-1 text-[11px] font-medium text-foreground">
|
|
{reel.statusLabel}
|
|
</span>
|
|
<div
|
|
aria-hidden="true"
|
|
className="absolute inset-x-3 bottom-3 rounded-lg bg-black/65 p-3 text-white"
|
|
>
|
|
<p className="text-sm leading-4 font-semibold">{reel.title}</p>
|
|
</div>
|
|
</div>
|
|
<div className="p-3">
|
|
<h3 className="text-sm leading-5 font-medium">{reel.title}</h3>
|
|
<p className="mt-1.5 text-xs text-muted-foreground">{reel.featureLabel}</p>
|
|
{reel.publishedAtLabel ? (
|
|
<p className="mt-1 text-xs text-muted-foreground max-lg:hidden">
|
|
Publicado em {reel.publishedAtLabel}
|
|
</p>
|
|
) : null}
|
|
<span
|
|
aria-hidden="true"
|
|
className="mt-3 hidden h-8 items-center text-xs font-medium underline underline-offset-4 group-hover:text-primary lg:inline-flex"
|
|
>
|
|
Abrir reel
|
|
</span>
|
|
</div>
|
|
</Link>
|
|
</article>
|
|
)
|