aboutsummaryrefslogtreecommitdiff
path: root/src/pages/projects.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/projects.astro')
-rw-r--r--src/pages/projects.astro20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/pages/projects.astro b/src/pages/projects.astro
index a4f121a..d609211 100644
--- a/src/pages/projects.astro
+++ b/src/pages/projects.astro
@@ -10,11 +10,13 @@ import projects from "../data/projects.json";
<div class="cards">
<h1>{project.name}</h1>
<p>{project.description}</p>
- {project.links.map((link) => {
- return (
- <a href={link.url} target={link.external ? "_blank" : ""}>{link.name}</a>
- )
- })}
+ <div class="row">
+ {project.links.map((link) => {
+ return (
+ <a href={link.url} target={link.external ? "_blank" : "_self"}>{link.name}</a>
+ )
+ })}
+ </div>
</div>
)
})
@@ -48,9 +50,11 @@ import projects from "../data/projects.json";
margin: 0;
}
- .cards a {
- text-align: right;
- display: inline-block;
+ .row {
+ margin-top: 0.3em;
+ display: flex;
+ flex-direction: row;
+ gap: 1em;
}
/* Mobile view */