# 8-bit CTA1

> Us vs them comparison table.

A shadcn/ui block from the [@8bitcn](https://www.8bitcn.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/8bitcn/cta1).

- Page, with a live preview: https://shadcn.exchange/r/8bitcn/cta1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/8bitcn/cta1-light-73b2ba3da2b8bdaa.png
- Registry item: https://www.8bitcn.com/r/cta1.json
- Categories: cta
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.8bitcn.com/r/cta1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `card`

## Files

### `components/ui/8bit/blocks/cta1.tsx`

```tsx
import { cn } from "@/lib/utils";

import {
  Card,
  CardContent,
  CardHeader,
  CardTitle,
} from "@/components/ui/8bit/card";

import "@/components/ui/8bit/styles/retro.css";

export interface ComparisonRow {
  feature: string;
  theirs: string;
  yours: string;
}

interface CTA1Props {
  className?: string;
  description?: string;
  rows?: ComparisonRow[];
  theirsLabel?: string;
  title?: string;
  yoursLabel?: string;
}

const defaultRows: ComparisonRow[] = [
  { feature: "Setup Time", yours: "2 minutes", theirs: "2 hours" },
  { feature: "Customizable", yours: "+ Full source", theirs: "- Config only" },
  { feature: "Dependencies", yours: "0 runtime", theirs: "5+ packages" },
  { feature: "Dark Mode", yours: "+ Built-in", theirs: "- Manual" },
  { feature: "Pixel Borders", yours: "+ Obviously", theirs: "- Nope" },
  { feature: "Fun Factor", yours: "MAX", theirs: "Corporate" },
];

export default function CTA1({
  title = "Why Us?",
  description = "Side-by-side. No fluff.",
  yoursLabel = "8bitcn",
  theirsLabel = "Others",
  rows = defaultRows,
  className,
}: CTA1Props) {
  return (
    <section className={cn("w-full px-4 py-16", className)}>
      <div className="mx-auto max-w-3xl">
        {(title || description) && (
          <div className="mb-10 text-center">
            {title && (
              <h2 className="retro mb-3 font-bold text-2xl tracking-tight md:text-3xl">
                {title}
              </h2>
            )}
            {description && (
              <p className="retro text-muted-foreground text-[9px]">{description}</p>
            )}
          </div>
        )}

        <Card>
          <CardHeader>
            <div className="grid md:grid-cols-3 gap-4">
              <CardTitle className="retro text-[10px] text-muted-foreground">
                FEATURE
              </CardTitle>
              <CardTitle className="retro text-center text-xs text-primary">
                {yoursLabel}
              </CardTitle>
              <CardTitle className="retro text-center text-xs text-muted-foreground">
                {theirsLabel}
              </CardTitle>
            </div>
          </CardHeader>
          <CardContent>
            <div className="flex flex-col divide-y">
              {rows.map((row) => (
                <div className="grid md:grid-cols-3 gap-4 py-3" key={row.feature}>
                  <span className="text-xs font-medium">{row.feature}</span>
                  <span className="retro text-center text-[10px]">
                    {row.yours}
                  </span>
                  <span className="retro text-center text-[10px] text-muted-foreground">
                    {row.theirs}
                  </span>
                </div>
              ))}
            </div>
          </CardContent>
        </Card>
      </div>
    </section>
  );
}
```

### `components/ui/8bit/styles/retro.css`

```css
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

.retro {
  font-family:
    "Press Start 2P",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
```

### `components/ui/8bit/card.tsx`

```tsx
import { type VariantProps, cva } from "class-variance-authority";

import { cn } from "@/lib/utils";

import {
  Card as ShadcnCard,
  CardAction as ShadcnCardAction,
  CardContent as ShadcnCardContent,
  CardDescription as ShadcnCardDescription,
  CardFooter as ShadcnCardFooter,
  CardHeader as ShadcnCardHeader,
  CardTitle as ShadcnCardTitle,
} from "@/components/ui/card";

import "@/components/ui/8bit/styles/retro.css";

export const cardVariants = cva("", {
  variants: {
    font: {
      normal: "",
      retro: "retro",
    },
  },
  defaultVariants: {
    font: "retro",
  },
});

export interface BitCardProps
  extends React.ComponentProps<"div">,
    VariantProps<typeof cardVariants> {
  asChild?: boolean;
}

function Card({ className, font, ...props }: BitCardProps) {
  return (
    <div
      className={cn(
        "relative bg-card text-card-foreground border-y-6 border-foreground dark:border-ring p-0!",
        className
      )}
    >
      <ShadcnCard
        {...props}
        className={cn(
          "rounded-none border-0 w-full! h-full flex flex-col bg-card text-card-foreground shadow-none",
          font !== "normal" && "retro",
          className
        )}
      />

      <div
        className={cn("absolute inset-0 border-x-6 -mx-1.5 border-inherit pointer-events-none")}
        aria-hidden="true"
      />
    </div>
  );
}

function CardHeader({ ...props }: BitCardProps) {
  const { className, font } = props;

  return (
    <ShadcnCardHeader
      className={cn(font !== "normal" && "retro", className)}
      {...props}
    />
  );
}

function CardTitle({ ...props }: BitCardProps) {
  const { className, font } = props;

  return (
    <ShadcnCardTitle
      className={cn(font !== "normal" && "retro", className)}
      {...props}
    />
  );
}

function CardDescription({ ...props }: BitCardProps) {
  const { className, font } = props;

  return (
    <ShadcnCardDescription
      className={cn(font !== "normal" && "retro", className)}
      {...props}
    />
  );
}

function CardAction({ ...props }: BitCardProps) {
  const { className, font } = props;

  return (
    <ShadcnCardAction
      className={cn(font !== "normal" && "retro", className)}
      {...props}
    />
  );
}

function CardContent({ ...props }: BitCardProps) {
  const { className, font } = props;

  return (
    <ShadcnCardContent
      className={cn("flex-1", font !== "normal" && "retro", className)}
      {...props}
    />
  );
}

function CardFooter({ ...props }: BitCardProps) {
  const { className, font } = props;

  return (
    <ShadcnCardFooter
      data-slot="card-footer"
      className={cn(font !== "normal" && "retro", className)}
      {...props}
    />
  );
}

export {
  Card,
  CardHeader,
  CardFooter,
  CardTitle,
  CardAction,
  CardDescription,
  CardContent,
};
```
