# All files / src/components/demo DemoFeatureCards.tsx

0% Statements 0/41
0% Branches 0/1
0% Functions 0/1
0% Lines 0/41

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42

     'use client'

    import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'

    export const DemoFeatureCards = () => {
      return (
        <div
          className="grid grid-cols-1 md:grid-cols-3 gap-6"
          data-testid="demo-feature-cards"
          role="region"
          aria-label="Feature cards"
        >
          <Card className="border-primary/20" data-testid="feature-card-realtime">
            <CardHeader>
              <CardTitle className="text-lg">Real-Time Updates</CardTitle>
            </CardHeader>
            <CardContent className="text-sm text-muted-foreground">
              Watch your React components render instantly as you type. No refresh needed.
            </CardContent>
          </Card>

          <Card className="border-accent/20" data-testid="feature-card-resizable">
            <CardHeader>
              <CardTitle className="text-lg">Resizable Panels</CardTitle>
            </CardHeader>
            <CardContent className="text-sm text-muted-foreground">
              Drag the center divider to adjust the editor and preview panel sizes to your preference.
            </CardContent>
          </Card>

          <Card className="border-primary/20" data-testid="feature-card-viewmodes">
            <CardHeader>
              <CardTitle className="text-lg">Multiple View Modes</CardTitle>
            </CardHeader>
            <CardContent className="text-sm text-muted-foreground">
              Switch between code-only, split-screen, or preview-only modes with the toggle buttons.
            </CardContent>
          </Card>
        </div>
      )
    }