summaryrefslogtreecommitdiff
path: root/frontend/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/pages')
-rw-r--r--frontend/src/pages/[locale]/index.astro60
-rw-r--r--frontend/src/pages/[locale]/staticPaths.ts10
-rw-r--r--frontend/src/pages/index.astro3
3 files changed, 0 insertions, 73 deletions
diff --git a/frontend/src/pages/[locale]/index.astro b/frontend/src/pages/[locale]/index.astro
deleted file mode 100644
index 23a270d..0000000
--- a/frontend/src/pages/[locale]/index.astro
+++ /dev/null
@@ -1,60 +0,0 @@
----
-import Layout from '../../layouts/Layout.astro';
-import staticPaths from './staticPaths';
-import translate from '../../i18n/translate';
-import site from '../../i18n/translations/site';
-import home from '../../i18n/translations/pages/home';
-import type Locale from '../../types/Locale';
-
-export async function getStaticPaths() { return staticPaths; }
-
-const locale = Astro.params.locale as Locale;
-const t = translate(locale);
----
-
-<Layout locale={locale} title={ t(home, 'title') }>
- <main id="main">
- <section>
- <h1 class="title">{ t(site, 'title') }</h1>
- <h1>Tap-level heidin</h1>
- <h2>Seicont-level heidin</h2>
- <h3>Third-level heidin</h3>
- <h4>Fowert-level heidin</h4>
- <p>
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
- labore et dolore magna aliqua.
- </p>
- <a class="link" href="#">Lairn mair!</a>
- <p>
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
- commodo consequat.
- </p>
- <button class="btn">Dae somethin excitin...</button>
- <p>
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
- pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
- mollit anim id est laborum.
- </p>
- </section>
- <section>
- <h2>Seicont-level heidin</h2>
- <h3>Third-level heidin</h3>
- <h4>Fowert-level heidin</h4>
- <p>
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
- labore et dolore magna aliqua.
- </p>
- <a class="link" href="#">Lairn mair!</a>
- <p>
- Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
- commodo consequat.
- </p>
- <button class="btn">Dae somethin excitin...</button>
- <p>
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
- pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
- mollit anim id est laborum.
- </p>
- </section>
- </main>
-</Layout>
diff --git a/frontend/src/pages/[locale]/staticPaths.ts b/frontend/src/pages/[locale]/staticPaths.ts
deleted file mode 100644
index 266ad2c..0000000
--- a/frontend/src/pages/[locale]/staticPaths.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import type Locale from '../../types/Locale';
-
-// Defines what values to insert into the [locale] URL path parameter
-// when generating a static site
-const staticPaths: { params: { locale: Locale} }[] = [
- { params: { locale: 'sco' } },
- { params: { locale: 'en-GB' } },
-]
-
-export default staticPaths; \ No newline at end of file
diff --git a/frontend/src/pages/index.astro b/frontend/src/pages/index.astro
deleted file mode 100644
index 4a02fcc..0000000
--- a/frontend/src/pages/index.astro
+++ /dev/null
@@ -1,3 +0,0 @@
----
----
-<meta http-equiv="refresh" content="0;url=/sco/" /> \ No newline at end of file