aboutsummaryrefslogtreecommitdiff
path: root/web/src/pages
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-23 01:39:11 -0400
committerAndrew Lee <andrew@alee14.me>2025-03-23 01:39:11 -0400
commitd7c46a9eae28046bb26da182abc298dc18ed5a10 (patch)
treea1f9955a757b150b88ed5398ef851ab2d1d4a46b /web/src/pages
parentb60e681998a456adecb93b5fe04b66ad4ac9abb6 (diff)
downloadAleeBot-d7c46a9eae28046bb26da182abc298dc18ed5a10.tar.gz
AleeBot-d7c46a9eae28046bb26da182abc298dc18ed5a10.tar.bz2
AleeBot-d7c46a9eae28046bb26da182abc298dc18ed5a10.zip
Replacing Astro with Next.JS; Prefix warning; Consistent env vars
Diffstat (limited to 'web/src/pages')
-rw-r--r--web/src/pages/index.astro45
1 files changed, 0 insertions, 45 deletions
diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro
deleted file mode 100644
index f1dc6e7..0000000
--- a/web/src/pages/index.astro
+++ /dev/null
@@ -1,45 +0,0 @@
----
-import Layout from '../layouts/Layout.astro';
-import { PendingQuotes } from '../components/Quotes';
-
----
-
-<Layout>
- <div class="container">
- <h1 id="version">AleeBot</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>
-
-<script>
- import { API_URL } from "astro:env/client"
- document.addEventListener('DOMContentLoaded', async () => {
- try {
- const version = await fetch(`${API_URL}/api/version`).then((res) => res.json());
- const versionElement = document.getElementById('version');
- if (versionElement) {
- versionElement.textContent = `AleeBot ${version}`;
- } else {
- console.error('Element with ID "version" not found.');
- }
- } catch (e) {
- console.error('Failed to fetch version:', e);
- }
- });
-</script>