aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/BlogPost.astro
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-01-24 22:50:02 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-01-24 23:17:14 -0500
commit5fab0381b308eb5a1c837ffdd5e0ddd757e769d3 (patch)
tree2a08add3e122f2d1fc91d30908e37a7df46ceaa8 /src/layouts/BlogPost.astro
parent2c37ad34e91893596547060e0ab6bd320ef31bde (diff)
downloadpersonal-website-5fab0381b308eb5a1c837ffdd5e0ddd757e769d3.tar.gz
personal-website-5fab0381b308eb5a1c837ffdd5e0ddd757e769d3.tar.bz2
personal-website-5fab0381b308eb5a1c837ffdd5e0ddd757e769d3.zip
Starting to work on blog
Diffstat (limited to 'src/layouts/BlogPost.astro')
-rw-r--r--src/layouts/BlogPost.astro50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro
new file mode 100644
index 0000000..60baee6
--- /dev/null
+++ b/src/layouts/BlogPost.astro
@@ -0,0 +1,50 @@
+---
+import Layout from './Default.astro';
+const { title, description } = Astro.props;
+---
+
+<Layout title=`${title} - Andrew Lee` description={description}>
+ <header>
+ <h1 class="header-text">{title}</h1>
+ <h2 class="header-text">{description}</h2>
+ </header>
+ <div class="container">
+ <main>
+ <article>
+ <slot />
+ </article>
+ </main>
+ </div>
+</Layout>
+
+<style>
+ header {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5em;
+ margin: 0;
+ text-align: center;
+ padding: 0 0 1em;
+ }
+
+ .header-text {
+ font-size: 2em;
+ margin: 0;
+ }
+
+ h2.header-text {
+ font-size: 1.5em;
+ font-weight: 300;
+ }
+
+ .container {
+ margin: 1em 10em 1em 10em;
+ }
+
+ @media (max-width: 992px) {
+ .container {
+ margin: 10px 20px 10px 20px;
+ }
+ }
+
+</style>