Free
π¬ Landing Page
FAQ Accordion Pro
Two-column FAQ section with buttery height animation, deep-link anchors and a 'still stuck' contact card.
4.4k views 54 copies 258 words
The Prompt
# FAQ Accordion Pro β Landing Page Section
## Goal
Build an FAQ section: sticky intro column left (title, sub, contact card), accordion list right β the layout serious products use. It must drop cleanly into an existing Next.js + Tailwind project as a self-contained component.
## Design Spec
- Left (sticky, top-24): 'Questions? Answers.' headline, muted sub, then a contact card: small avatar trio, 'Still stuck? We reply in ~2h', 'Chat with us' button.
- Right: 6-8 items; each row: question 16px medium, plus-icon right that rotates to Γ; answer 15px muted, max-w-prose, may contain links and a code-styled span.
- Dividers: border-b hairlines between items; no card boxes β typographic, clean.
- Open item: question color shifts to accent, background tints 2% β subtle current-state.
- Mobile: intro column stacks above, sticky disabled.
## Motion Spec
- Height animation must be measured (auto-height via layout animation or measured max-height) β zero jump, 300ms ease-[cubic-bezier(0.4,0,0.2,1)].
- PlusβΓ rotation 45Β° synced exactly to open state.
- Deep-link: on mount, if URL hash matches an item id, open it and smooth-scroll with a brief highlight flash.
- Respect `prefers-reduced-motion` β provide a static fallback that still looks intentional.
## Component API
- `<FaqSection items={{q,a,id}[]} single?: boolean />` β `single` collapses others on open (default true).
## Quality Bar
- TypeScript strict, zero `any`. Tailwind only β no external CSS files.
- Works on mobile: touch targets β₯ 44px, no hover-only affordances.
- 60fps: animate only `transform` and `opacity`; use `will-change` sparingly.
- Accessible: correct roles/aria, keyboard operable, focus-visible styles.
You may also like
Free
Featured
Aurora Hero Section
π¬ Landing Page
Full-viewport hero with aurora gradient backdrop and split-text headline reveal.
5.1k 441Cursorv0Lovable
Free
Conversion CTA Banner
π¬ Landing Page
Pre-footer CTA banner with animated gradient border, urgency-free copy structure and dual action hierarchy.
4.3k 827CursorClaude CodeLovable
Free
Button Motion Set
π¬ Landing Page
A cohesive set of 6 animated buttons: magnetic, shine-sweep, morph-to-loader, icon-nudge, gradient-ring, ghost-fill.
3.5k 371CursorClaude CodeLovable
Free
Bento Feature Grid
βοΈ SaaS
Six-cell bento features section with one hero cell, live UI fragments inside cells and hover choreography.
3.5k 501CursorClaude CodeLovable