Skip to content

Commit f3719fd

Browse files
committed
Clean up: Cards.
1 parent 97cf58d commit f3719fd

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

src/components/card/card-container.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
---
2-
3-
import { CardContainer } from "@components/card/card-container";
42
import DeadlineCard from "@components/deadline-card.astro";
5-
import Headline from "@ui/Headline.astro"
3+
import Headline from "@ui/Headline.astro";
64
import { getCollection } from "astro:content";
7-
import Section from "@ui/Section.astro"
5+
import Section from "@ui/Section.astro";
86
97
let deadlines = await getCollection("deadlines");
108
deadlines = deadlines
119
.sort((a, b) => a.slug.localeCompare(b.slug))
1210
.reverse()
1311
.slice(0, 6);
14-
1512
---
16-
<Section>
17-
<Headline id="updates" title="Updates" center=true />
18-
<CardContainer>
19-
{deadlines.map((deadline) => <DeadlineCard id={deadline.slug} />)}
20-
</CardContainer>
21-
</Section>
2213

23-
<style>
24-
.s {
25-
@apply prose-xl m-0 my-12 p-0;
26-
}
27-
</style>
14+
<Section>
15+
<Headline id="updates" title="Updates" center="true" />
16+
<section class="justify-center gap-6 flex flex-wrap px-6">
17+
{deadlines.map((deadline) => <DeadlineCard id={deadline.slug} />)}
18+
</section>
19+
</Section>

0 commit comments

Comments
 (0)