blob: ddecff35c53619c135e3a12e7d85680b9b4c0f2f (
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
|
---
import Page from "../../layouts/Page.astro";
import "../../styles/cards.css";
import projects from "../../data/projects.json";
const featuredProjects = projects.filter(project => project.featured);
---
<Page title="Projects" description="Things that I have been working on in the past, and present">
<main>
<div class="column">
<div class="card">
<h1><a href="/projects/3d">3D Models</a></h1>
<p>Things I made on Blender</p>
</div>
<div class="card">
<h1><a href="/projects/programming">Programming</a></h1>
<p>Things I programmed</p>
</div>
<div class="card">
<h1><a href="/archive">Website Archive</a></h1>
<p>Websites I created</p>
</div>
</div>
<div class="featured-projects">
<h1>Featured Projects</h1>
<div class="grid">
{
featuredProjects.map((project) => {
return (
<article class="card">
<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>
</article>
)
})
}
</div>
</div>
</main>
</Page>
<style>
.column {
display: flex;
flex-direction: column;
gap: 0.1em;
}
.row {
display: flex;
flex-direction: row;
gap: 1em;
}
</style>
|