ham7a311

Card Catalogue FAQ

Component

About

An FAQ list styled as a library card catalogue, where topics open as drawers and each question lifts like an index card to reveal its answer on a ruled face.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Card Catalogue FAQ to your project and fits it to your theme.

Code

How Card Catalogue FAQ is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import {
  CardCatalogueFaq,
  type Drawer,
} from "@/components/ui/card-catalogue-faq";

const DRAWERS: Drawer[] = [
  {
    id: "billing",
    label: "Billing",
    cards: [
      {
        q: "Can I pay in Omani rials?",
        a: "Yes. Choose OMR at checkout and we invoice in rials with VAT shown separately; card and bank transfer both work.",
      },
      {
        q: "What happens if I go over my build minutes?",
        a: "Builds keep running. Extra minutes are billed at $1 per 100 at the end of the month, and we email you at 80% so it's never a surprise.",
      },
      {
        q: "Do you refund unused months on a yearly plan?",
        a: "Within the first 30 days, in full. After that we refund the remaining whole months if you're leaving because something didn't work.",
      },
      {
        q: "Can I get one invoice for several teams?",
        a: "On Business, yes: add the teams to one organisation and they share a single monthly invoice with a line per team.",
      },
    ],
  },
  {
    id: "security",
    label: "Security",
    cards: [
      {
        q: "Where is my code built?",
        a: "In isolated containers in Frankfurt or Bahrain, your choice per project. Containers are destroyed after each build.",
      },
      {
        q: "Do you support single sign-on?",
        a: "On Business: SAML with Okta, Azure AD and Google Workspace, plus SCIM so leavers lose access the day they leave.",
      },
      {
        q: "How do I report a vulnerability?",
        a: "Email security@example.com. We reply within one working day and don't take legal action against good-faith research.",
      },
    ],
  },
  {
    id: "deploys",
    label: "Deploys",
    cards: [
      {
        q: "How long does a deploy take?",
        a: "A typical Next.js site builds in 40 to 90 seconds. Cached dependencies make the second deploy of a branch noticeably faster.",
      },
      {
        q: "Can I freeze deploys over a holiday?",
        a: "Yes. Set a deploy window per project; outside it, deploys wait for an approver instead of going out.",
      },
      {
        q: "Can I roll back from my phone?",
        a: "Yes, from the app or by replying ROLLBACK to the deploy notification email.",
      },
      {
        q: "Do previews get their own database?",
        a: "Only if you ask: connect a Postgres branch and each preview gets a copy of staging data, deleted with the preview.",
      },
    ],
  },
  {
    id: "account",
    label: "Account",
    cards: [
      {
        q: "Can I move a project to another team?",
        a: "Yes, from the project settings. Its domains, history and environment variables move with it.",
      },
      {
        q: "How do I delete my account?",
        a: "Settings → Account → Delete. We keep nothing after 30 days, and we email you when it's done.",
      },
      {
        q: "Do students get anything free?",
        a: "Team is free while you study. Sign up with your university email; it renews each September.",
      },
    ],
  },
];

export default function CardCatalogueFaqDemo() {
  return (
    <div className="flex min-h-full w-full justify-center bg-[#f3efe7] px-4 py-10 sm:px-10">
      <div className="w-full max-w-[44rem]">
        <p className="mb-4 font-mono text-[0.6875rem] uppercase tracking-[0.14em] text-[#7a6f62]">
          Help · Filed by topic
        </p>
        <CardCatalogueFaq drawers={DRAWERS} theme="paper" />
      </div>
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    12
  • Wave Mesh

    Wave Mesh

    7
  • Uptime Ribbon

    Uptime Ribbon

    6
  • Glass Carousel

    Glass Carousel

    6
  • Glass Tiles

    Glass Tiles

    6
  • Streak Field Stats

    Streak Field Stats

    5
  • Wind Map

    Wind Map

    4
  • Time Window

    Time Window

    4