aboutsummaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/blog/index.astro1
-rw-r--r--src/pages/blog/rss.xml.js (renamed from src/pages/rss.xml.js)0
-rw-r--r--src/pages/contacts.astro2
-rw-r--r--src/pages/guestbook.astro19
-rw-r--r--src/pages/projects.astro20
5 files changed, 32 insertions, 10 deletions
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro
index 74f543a..a6b6855 100644
--- a/src/pages/blog/index.astro
+++ b/src/pages/blog/index.astro
@@ -8,7 +8,6 @@ const allBlogPosts = (await getCollection('blog')).sort((a, b) => b.data.pubDate
---
<Page title="Blog" description="Where I post can be anything!">
<main>
- <!-- Add tags selection below -->
{allBlogPosts.map((post) => (
<article>
<h1><a href={`/blog/${post.slug}`}>{post.data.title}</a></h1>
diff --git a/src/pages/rss.xml.js b/src/pages/blog/rss.xml.js
index fe17f91..fe17f91 100644
--- a/src/pages/rss.xml.js
+++ b/src/pages/blog/rss.xml.js
diff --git a/src/pages/contacts.astro b/src/pages/contacts.astro
index d483f81..c65c6f9 100644
--- a/src/pages/contacts.astro
+++ b/src/pages/contacts.astro
@@ -28,7 +28,7 @@ import contacts from "../data/contacts.json";
}
.contact-icon {
- margin-right: 0.5em;
+ margin: 0.1em 0.5em 0.1em 0.1em;
font-size: 1.3em;
}
</style>
diff --git a/src/pages/guestbook.astro b/src/pages/guestbook.astro
new file mode 100644
index 0000000..0827802
--- /dev/null
+++ b/src/pages/guestbook.astro
@@ -0,0 +1,19 @@
+---
+import Page from '../layouts/Page.astro'
+import "../styles/cards.css";
+---
+<Page title="Guestbook" description="Use this page to send me a message">
+ <main>
+ <article>
+ <h1>John Doe</h1>
+ <small>January 1, 2024</small>
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Nam id orci non diam bibendum euismod quis sit amet purus.
+ Fusce fermentum facilisis placerat. Mauris varius ante elit, et
+ luctus enim blandit sit amet.
+ Pellentesque ullamcorper dapibus suscipit.
+ </p>
+ <a href="http://google.com">Website</a>
+ </article>
+ </main>
+</Page>
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 */