8-bit game-faq1
8bitcn/game-faq1FreeBlock
Checkpoint FAQ with progression states.
Install it
npx shadcn@latest add https://www.8bitcn.com/r/game-faq1.jsonSource
1import { cn } from "@/lib/utils";23import { Badge } from "@/components/ui/8bit/badge";4import {5 Accordion,6 AccordionContent,7 AccordionItem,8 AccordionTrigger,9} from "@/components/ui/8bit/accordion";1011import "@/components/ui/8bit/styles/retro.css";1213export interface Checkpoint {14 answer: string;15 question: string;16 status: "cleared" | "current" | "locked";17}1819interface GameFAQ1Props {20 className?: string;21 description?: string;22 items?: Checkpoint[];23 title?: string;24}2526const statusConfig = {27 cleared: { icon: "+", badge: "CLEARED", variant: "default" as const },28 current: { icon: ">>", badge: "ACTIVE", variant: "secondary" as const },29 locked: { icon: "--", badge: "LOCKED", variant: "secondary" as const },30};3132const defaultItems: Checkpoint[] = [33 {34 question: "What is 8bitcn?",35 answer: "A retro-styled component library for React. Think shadcn/ui but everything looks like it came from a 1985 arcade cabinet.",36 status: "cleared",37 },38 {39 question: "How do I install components?",40 answer: "Use the shadcn CLI: pnpm dlx shadcn@latest add @8bitcn/button. Components are copied into your project — no runtime dependency.",41 status: "cleared",42 },43 {44 question: "Does it work with existing shadcn?",45 answer: "Yes. 8bitcn wraps shadcn components. Your existing setup stays intact. Just add the retro layer on top.",46 status: "current",47 },48 {49 question: "Is it production ready?",50 answer: "Every component is accessible, responsive, and tested. The pixel borders are decorative — the engineering is serious.",51 status: "current",52 },53 {54 question: "What about templates?",55 answer: "Full landing page templates are on the roadmap. For now, combine blocks to build pages in minutes.",56 status: "locked",57 },58 {59 question: "When is the icon pack coming?",60 answer: "The native 8-bit pixel icon library is planned. Follow the roadmap for updates.",61 status: "locked",62 },63];6465export default function GameFAQ1({66 title = "Checkpoints",67 description = "Clear each checkpoint to proceed",68 items = defaultItems,69 className,70}: GameFAQ1Props) {71 return (72 <section className={cn("w-full px-4 py-16", className)}>73 <div className="mx-auto max-w-2xl">74 {(title || description) && (75 <div className="mb-10 text-center">76 {title && (77 <h2 className="retro mb-3 font-bold text-2xl tracking-tight md:text-3xl">78 {title}79 </h2>80// … truncated
What it pulls in
Other registry items
Files it writes
More from 8bitcn
All 121 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| 8-bit Advanced 1advanced1 | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Advanced 2advanced2 | 8bitcn | Blocks | Free | no deps · 5 files | |
| 8-bit Advanced 3advanced3 | 8bitcn | Blocks | Free | no deps · 6 files | |
| 8-bit Audio Settingsaudio-settings | 8bitcn | Blocks | Free | 2 deps · 7 files | |
| 8-bit Chapter Introchapter-intro | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Character Sheetcharacter-sheet | 8bitcn | Blocks | Free | no deps · 9 files | |
| 8-bit Chartchart | 8bitcn | Blocks | Free | no deps · 3 files | |
| 8-bit Chart Area Stepchart-area-step | 8bitcn | Blocks | Free | no deps · 3 files |
