Components
Loading preview...
// demo.tsx
import { BellRing } from 'lucide-react';
import Card, {
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from '@/components/ui/indevui-card';
function CardDemo() {
return (
<div className="flex flex-col items-center justify-center gap-8 md:flex-row">
<Card className="w-full max-w-sm">
<CardHeader>
<CardTitle>Team Project</CardTitle>
<CardDescription>Deploy your new project in one-click.</CardDescription>
</CardHeader>
<CardContent>
<p>
This card demonstrates the standard layout and usage of the Card component and its
sub-components.
</p>
</CardContent>
<CardFooter className="flex justify-between">
<span className="cursor-pointer text-sm text-muted-foreground hover:text-foreground">
Cancel
</span>
<span className="cursor-pointer rounded-md bg-primary px-4 py-2 text-sm text-primary-foreground hover:bg-primary/90">
Deploy
</span>
</CardFooter>
</Card>
<Card className="w-full max-w-sm">
<CardHeader>
<div className="flex items-center gap-4">
<div className="grid h-10 w-10 place-items-center rounded-full bg-primary/10 text-primary">
<BellRing className="h-5 w-5" />
</div>
<CardTitle>Notifications</CardTitle>
</div>
</CardHeader>
<CardContent className="flex flex-col gap-3">
<div className="rounded-md border p-3 text-sm">New comment on your post</div>
<div className="rounded-md border p-3 text-sm">
Your subscription was successfully updated
</div>
</CardContent>
<CardFooter>
<p className="w-full text-center text-sm text-muted-foreground">
View all notifications
</p>
</CardFooter>
</Card>
</div>
);
}
export { CardDemo as DemoOne };