aboutsummaryrefslogtreecommitdiff
path: root/web/src/pages/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/pages/index.astro')
-rw-r--r--web/src/pages/index.astro29
1 files changed, 29 insertions, 0 deletions
diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro
new file mode 100644
index 0000000..b5c607d
--- /dev/null
+++ b/web/src/pages/index.astro
@@ -0,0 +1,29 @@
+---
+import Layout from '../layouts/Layout.astro';
+import { PendingQuotes } from '../components/Quotes';
+
+const version = await fetch('http://localhost:3000/api/version').then(res => res.json());
+---
+
+<Layout>
+ <div class="container">
+ <h1>AleeBot {version}</h1>
+ <PendingQuotes client:load />
+ </div>
+</Layout>
+
+<style>
+ @import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');
+ html,
+ body {
+ margin: 0;
+ width: 100%;
+ height: 100%;
+ font-family: "Exo 2", sans-serif;
+ }
+
+ .container {
+ margin: 2em;
+ }
+
+</style>