aboutsummaryrefslogtreecommitdiff
path: root/src/pages/projects.astro
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-03 14:08:16 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-03 14:08:16 -0500
commit0077087a5179c2ffdec07ee38f3ffbbb01853dde (patch)
tree8c21d9d6b2194909c90e5080a6fb75a3282f274c /src/pages/projects.astro
parentc7264e3ace8a6b1e22420702f00296a4bdadb6da (diff)
downloadpersonal-website-0077087a5179c2ffdec07ee38f3ffbbb01853dde.tar.gz
personal-website-0077087a5179c2ffdec07ee38f3ffbbb01853dde.tar.bz2
personal-website-0077087a5179c2ffdec07ee38f3ffbbb01853dde.zip
Guestbook; No more hardcoded date
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 */