mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-09 11:04:36 +00:00
102 lines
4.0 KiB
TypeScript
102 lines
4.0 KiB
TypeScript
import { TrendingDownIcon, TrendingUpIcon } from 'lucide-react';
|
|
|
|
import { Badge } from '@/components/ui/badge';
|
|
import {
|
|
Card,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from '@/components/ui/card';
|
|
|
|
export function SectionCards() {
|
|
return (
|
|
<div className='*:data-[slot=card]:from-primary/5 *:data-[slot=card]:to-card dark:*:data-[slot=card]:bg-card grid grid-cols-1 gap-4 px-4 *:data-[slot=card]:bg-gradient-to-t *:data-[slot=card]:shadow-xs lg:px-6 @xl/main:grid-cols-2 @5xl/main:grid-cols-4'>
|
|
<Card className='@container/card'>
|
|
<CardHeader className='relative'>
|
|
<CardDescription>Total Revenue</CardDescription>
|
|
<CardTitle className='text-2xl font-semibold tabular-nums @[250px]/card:text-3xl'>
|
|
$1,250.00
|
|
</CardTitle>
|
|
<div className='absolute top-4 right-4'>
|
|
<Badge variant='outline' className='flex gap-1 rounded-lg text-xs'>
|
|
<TrendingUpIcon className='size-3' />
|
|
+12.5%
|
|
</Badge>
|
|
</div>
|
|
</CardHeader>
|
|
<CardFooter className='flex-col items-start gap-1 text-sm'>
|
|
<div className='line-clamp-1 flex gap-2 font-medium'>
|
|
Trending up this month <TrendingUpIcon className='size-4' />
|
|
</div>
|
|
<div className='text-muted-foreground'>
|
|
Visitors for the last 6 months
|
|
</div>
|
|
</CardFooter>
|
|
</Card>
|
|
<Card className='@container/card'>
|
|
<CardHeader className='relative'>
|
|
<CardDescription>New Customers</CardDescription>
|
|
<CardTitle className='text-2xl font-semibold tabular-nums @[250px]/card:text-3xl'>
|
|
1,234
|
|
</CardTitle>
|
|
<div className='absolute top-4 right-4'>
|
|
<Badge variant='outline' className='flex gap-1 rounded-lg text-xs'>
|
|
<TrendingDownIcon className='size-3' />
|
|
-20%
|
|
</Badge>
|
|
</div>
|
|
</CardHeader>
|
|
<CardFooter className='flex-col items-start gap-1 text-sm'>
|
|
<div className='line-clamp-1 flex gap-2 font-medium'>
|
|
Down 20% this period <TrendingDownIcon className='size-4' />
|
|
</div>
|
|
<div className='text-muted-foreground'>
|
|
Acquisition needs attention
|
|
</div>
|
|
</CardFooter>
|
|
</Card>
|
|
<Card className='@container/card'>
|
|
<CardHeader className='relative'>
|
|
<CardDescription>Active Accounts</CardDescription>
|
|
<CardTitle className='text-2xl font-semibold tabular-nums @[250px]/card:text-3xl'>
|
|
45,678
|
|
</CardTitle>
|
|
<div className='absolute top-4 right-4'>
|
|
<Badge variant='outline' className='flex gap-1 rounded-lg text-xs'>
|
|
<TrendingUpIcon className='size-3' />
|
|
+12.5%
|
|
</Badge>
|
|
</div>
|
|
</CardHeader>
|
|
<CardFooter className='flex-col items-start gap-1 text-sm'>
|
|
<div className='line-clamp-1 flex gap-2 font-medium'>
|
|
Strong user retention <TrendingUpIcon className='size-4' />
|
|
</div>
|
|
<div className='text-muted-foreground'>Engagement exceed targets</div>
|
|
</CardFooter>
|
|
</Card>
|
|
<Card className='@container/card'>
|
|
<CardHeader className='relative'>
|
|
<CardDescription>Growth Rate</CardDescription>
|
|
<CardTitle className='text-2xl font-semibold tabular-nums @[250px]/card:text-3xl'>
|
|
4.5%
|
|
</CardTitle>
|
|
<div className='absolute top-4 right-4'>
|
|
<Badge variant='outline' className='flex gap-1 rounded-lg text-xs'>
|
|
<TrendingUpIcon className='size-3' />
|
|
+4.5%
|
|
</Badge>
|
|
</div>
|
|
</CardHeader>
|
|
<CardFooter className='flex-col items-start gap-1 text-sm'>
|
|
<div className='line-clamp-1 flex gap-2 font-medium'>
|
|
Steady performance <TrendingUpIcon className='size-4' />
|
|
</div>
|
|
<div className='text-muted-foreground'>Meets growth projections</div>
|
|
</CardFooter>
|
|
</Card>
|
|
</div>
|
|
);
|
|
}
|