diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-02-03 14:08:16 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-02-03 14:08:16 -0500 |
| commit | 0077087a5179c2ffdec07ee38f3ffbbb01853dde (patch) | |
| tree | 8c21d9d6b2194909c90e5080a6fb75a3282f274c /src/pages | |
| parent | c7264e3ace8a6b1e22420702f00296a4bdadb6da (diff) | |
| download | personal-website-0077087a5179c2ffdec07ee38f3ffbbb01853dde.tar.gz personal-website-0077087a5179c2ffdec07ee38f3ffbbb01853dde.tar.bz2 personal-website-0077087a5179c2ffdec07ee38f3ffbbb01853dde.zip | |
Guestbook; No more hardcoded date
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/blog/index.astro | 1 | ||||
| -rw-r--r-- | src/pages/blog/rss.xml.js (renamed from src/pages/rss.xml.js) | 0 | ||||
| -rw-r--r-- | src/pages/contacts.astro | 2 | ||||
| -rw-r--r-- | src/pages/guestbook.astro | 19 | ||||
| -rw-r--r-- | src/pages/projects.astro | 20 |
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 */ |
