blob: d609211dcdd41d127990beb18f4c7e087363582c (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
---
import Page from "../layouts/Page.astro";
import projects from "../data/projects.json";
---
<Page title="Projects" description="Things that I have been working on in the past, and present">
<main>
{
projects.map((project) => {
return (
<div class="cards">
<h1>{project.name}</h1>
<p>{project.description}</p>
<div class="row">
{project.links.map((link) => {
return (
<a href={link.url} target={link.external ? "_blank" : "_self"}>{link.name}</a>
)
})}
</div>
</div>
)
})
}
</main>
</Page>
<style>
main {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.cards {
display: flex;
flex-direction: column;
background-color: #3B513B;
padding: 1.2em;
border-radius: 20px;
gap: 0.5em;
margin: 0.5em;
}
.cards h1 {
padding: 0;
margin: 0;
font-size: 1.8em;
}
.cards p {
padding: 0;
margin: 0;
}
.row {
margin-top: 0.3em;
display: flex;
flex-direction: row;
gap: 1em;
}
/* Mobile view */
@media (max-width: 992px) {
main {
grid-template-columns: 1fr;
}
}
</style>
|