forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattribute-cards.tsx
More file actions
39 lines (35 loc) · 961 Bytes
/
Copy pathattribute-cards.tsx
File metadata and controls
39 lines (35 loc) · 961 Bytes
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
"use client";
import Image from "next/image";
interface AttributeCard {
title: string;
content: string;
imageSrc: string;
imageAlt: string;
}
interface AttributeCardsProps {
cards: AttributeCard[];
}
export function AttributeCards({ cards }: AttributeCardsProps) {
return (
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 my-8">
{cards.map((card, index) => (
<div
key={index}
className="bg-card border border-border rounded-lg p-6 md:p-8 flex flex-col gap-4"
>
<h3 className="text-2xl font-semibold">{card.title}</h3>
<p className="text-muted-foreground">{card.content}</p>
<div className="mt-4">
<Image
src={card.imageSrc}
alt={card.imageAlt}
width={500}
height={300}
className="rounded-lg w-full h-auto"
/>
</div>
</div>
))}
</div>
);
}