counterstrike-cn

Card

VGUI panel container with header, content, and footer sections.

Card

A compound component recreating CS 1.6's VGUI window/panel style. Used as the base container for dialogs, menus, and information panels throughout the game.

Interactive Preview

Server Info

de_dust2 — Competitive

Players: 8/10 — Round 12 of 30

Usage

import {
  Card,
  CardHeader,
  CardTitle,
  CardDescription,
  CardContent,
  CardFooter,
} from "@/components/ui/cscn/card";

<Card className="w-80">
  <CardHeader>
    <CardTitle>Server Info</CardTitle>
  </CardHeader>
  <CardContent>
    <p className="cs-font-ui text-xs text-[var(--cs-text)]">
      Map: de_dust2
    </p>
    <p className="cs-font-ui text-xs text-[var(--cs-text-secondary)]">
      Players: 16/32
    </p>
  </CardContent>
  <CardFooter>
    <CardDescription>Ping: 42ms</CardDescription>
  </CardFooter>
</Card>

Sub-components

ComponentDescription
CardOuter container with olive background and raised bevel
CardHeaderDark header bar with bottom border
CardTitleYellow title text with text shadow
CardDescriptionSecondary gray text
CardContentPadded content area
CardFooterDark footer bar with top border