summaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-10-23 23:54:14 +0300
committereug-vs <eugene@eug-vs.xyz>2022-10-23 23:54:14 +0300
commit159150afc918cf13f353ffbcc5abd3ab1b62432c (patch)
tree82ae3d6eda53f74e57f38c115e71f85e150d70d7 /src/layouts
parent0945a5bad65a00d0aa837528a9e0575e9905ccea (diff)
downloadeug-vs-xyz-159150afc918cf13f353ffbcc5abd3ab1b62432c.tar.gz
feat: add layouts
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/BaseLayout.astro19
-rw-r--r--src/layouts/BlogLayout.astro7
2 files changed, 26 insertions, 0 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
new file mode 100644
index 0000000..a9f68c3
--- /dev/null
+++ b/src/layouts/BaseLayout.astro
@@ -0,0 +1,19 @@
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
+ <link rel="shortcut icon" type="image/jpg" href="/public/icon-64.png"/>
+ <link rel="stylesheet" href="/style.css" />
+ </head>
+ <body>
+ <header class="display: inline">
+ <a href="/" style="text-decoration: none;">
+ <img src="/eug-vs.png" alt="eug-vs" width="128px">
+ <h1 style="margin-top: 12px;">Eugene's Space</h1>
+ </a>
+ </header>
+ <main>
+ <slot />
+ </main>
+ </body>
+</html>
diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro
new file mode 100644
index 0000000..86c7010
--- /dev/null
+++ b/src/layouts/BlogLayout.astro
@@ -0,0 +1,7 @@
+---
+import BaseLayout from './BaseLayout.astro';
+---
+<BaseLayout>
+ <slot />
+ <footer>Openring footer here</footer>
+</BaseLayout>