-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
36 lines (33 loc) · 1.17 KB
/
App.tsx
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
import { Card } from "./components/Card"
import Thumb from "./assets/illustration-article.svg"
import { cards } from "./data/cards"
function App() {
return (
<>
<div className="p-4 items-center justify-center gap-4 grid grid-cols-12 max-w-7xl m-auto">
{cards.map((card) => (
<Card.Root key={card.id}>
<Card.Thumb
src={Thumb}
title="img thumb title"
aria-describedby={`img-desc-${card.id}`}
aria-label="img thumb label"
alt="Placeholder Image"
/>
<Card.Content>
<Card.Badge>{card.badge}</Card.Badge>
<Card.PubDate dateTime={card.pubDate}>{card.pubDate}</Card.PubDate>
<Card.Title href="/" title={card.title} aria-label={card.title}>{card.title}</Card.Title>
<Card.Description>{card.description}</Card.Description>
<Card.Footer>
<Card.Avatar src={card.avatar} width={32} height={32} />
<Card.Author>{card.name}</Card.Author>
</Card.Footer>
</Card.Content>
</Card.Root>
))}
</div>
</>
)
}
export default App