Blame view

泰额版/Food Labeling Management Platform泰鄂/src/components/PlaceholderView.tsx 1.09 KB
884054fb   “wangming”   项目初始化
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
  import React from 'react';
  import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './ui/card';
  
  export function PlaceholderView({ title }: { title: string }) {
    return (
      <div className="space-y-6">
        <div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
          {[1, 2, 3, 4].map((i) => (
            <Card key={i}>
              <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
                <CardTitle className="text-sm font-medium">Metric {i}</CardTitle>
              </CardHeader>
              <CardContent>
                <div className="text-2xl font-bold">000</div>
                <p className="text-xs text-muted-foreground">+0.0% from last month</p>
              </CardContent>
            </Card>
          ))}
        </div>
        
        <Card className="min-h-[400px] flex items-center justify-center border-dashed">
          <div className="text-center text-muted-foreground">
            <h3 className="text-lg font-medium">{title} Module</h3>
            <p>This module is currently under development.</p>
          </div>
        </Card>
      </div>
    );
  }