blob: b6da87a404467aa7e2b46ed276bfd6358725b72d (
plain) (
blame)
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
40
41
42
43
44
45
46
47
48
49
|
---
import Page from "../layouts/Page.astro";
import projects from "../components/projects.json";
---
<Page title="Projects" description="Things that I have been working on in the past, and present">
{
projects.map((project) => {
return (
<div class="cards">
<h1>{project.name}</h1>
<p>{project.description}</p>
{project.links.map((link) => {
return (
<a href={link.url}>{link.name}</a>
)
})}
</div>
)
})
}
</Page>
<style>
.cards {
display: flex;
flex-direction: column;
gap: 1em;
background-color: #3B513B;
padding: 1.2em;
border-radius: 20px;
margin: 1em;
}
.cards h1 {
padding: 0;
margin: 0;
}
.cards p {
padding: 0;
margin: 0;
}
.cards a {
text-align: right;
display: inline-block;
}
</style>
|