-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathProjects.astro
More file actions
30 lines (29 loc) · 820 Bytes
/
Projects.astro
File metadata and controls
30 lines (29 loc) · 820 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
---
import { render } from "astro:content";
import { getCollection } from "astro:content";
const projects = await getCollection("projects");
---
<section
id="projects"
class="bg-sky-500/50 bg-[url(../assets/backgrounds/wavy.png)] bg-cover bg-blend-multiply"
>
<div class="max-w-[130ch] mx-auto py-12 px-3">
<h2 class="font-bold font-serif text-2xl text-center mb-9">
BDT's Projects
</h2>
<ul class="flex flex-col sm:flex-row gap-6 justify-center">
{
projects.map(async (project) => {
const { Content } = await render(project);
return (
<li class="bg-white/50 p-6 rounded-2xl md:w-1/2">
<div class="prose">
<Content />
</div>
</li>
);
})
}
</ul>
</div>
</section>