summaryrefslogtreecommitdiff
path: root/frontend/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/pages')
-rw-r--r--frontend/src/pages/[locale]/furthsettins/index.astro28
-rw-r--r--frontend/src/pages/[locale]/furthsettins/lallans/[issueNumber].astro32
-rw-r--r--frontend/src/pages/[locale]/furthsettins/lallans/index.astro22
-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
6 files changed, 0 insertions, 155 deletions
diff --git a/frontend/src/pages/[locale]/furthsettins/index.astro b/frontend/src/pages/[locale]/furthsettins/index.astro
deleted file mode 100644
index 44fa92c..0000000
--- a/frontend/src/pages/[locale]/furthsettins/index.astro
+++ /dev/null
@@ -1,28 +0,0 @@
----
-import Layout from '../../../layouts/Layout.astro';
-import staticPaths from '../staticPaths';
-import translate from '../../../i18n/translate';
-import tFurthsettins from '../../../i18n/translations/pages/furthsettins';
-import tSite from '../../../i18n/translations/site';
-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(tFurthsettins, 'title') }>
- <main id="main">
- <h1>Furthsettins</h1>
-
- <ul class="publications-gallery">
- <li>
- <a href="furthsettins/lallans" class="link">
- <img src="/public/images/furthsettins/lallans.png" class="publications-gallery__image" />
- <p class="publications-gallery__title">{ t(tSite, 'lallans') }</p>
- </a>
- </li>
- </ul>
- </main>
-</Layout> \ No newline at end of file
diff --git a/frontend/src/pages/[locale]/furthsettins/lallans/[issueNumber].astro b/frontend/src/pages/[locale]/furthsettins/lallans/[issueNumber].astro
deleted file mode 100644
index baed564..0000000
--- a/frontend/src/pages/[locale]/furthsettins/lallans/[issueNumber].astro
+++ /dev/null
@@ -1,32 +0,0 @@
----
-import Layout from '../../../../layouts/Layout.astro';
-import localeStaticPaths from '../../staticPaths';
-import translate from '../../../../i18n/translate';
-import tFurthsettins from '../../../../i18n/translations/pages/furthsettins';
-import tSite from '../../../../i18n/translations/site';
-import type Locale from '../../../../types/Locale';
-import LallansIssuesGallery from '../../../../components/LallansIssuesGallery.astro';
-import { getLallansIssue } from '../../../../data/lallans';
-import type LallansIssueNumber from '../../../../types/LallansIssueNumber';
-
-export async function getStaticPaths() {
- const lallansIssueNumbers = Object.keys(getLallansIssue) as `${LallansIssueNumber}`[];
- return lallansIssueNumbers.flatMap(n => (
- localeStaticPaths.map(p => (
- { ...p, params: { ...p.params, issueNumber: n } }
- ))
- ));
-}
-
-const locale = Astro.params.locale as Locale;
-const t = translate(locale);
-const issueNumber = new Number(Astro.params.issueNumber).valueOf() as LallansIssueNumber;
-const issue = await getLallansIssue[issueNumber]();
----
-
-<Layout locale={locale} title={ t(tFurthsettins, 'title') }>
- <main id="main">
- <h1>{ t(tSite, 'lallans') } { issueNumber }</h1>
- <p>{ issue.description[locale] }</p>
- </main>
-</Layout> \ No newline at end of file
diff --git a/frontend/src/pages/[locale]/furthsettins/lallans/index.astro b/frontend/src/pages/[locale]/furthsettins/lallans/index.astro
deleted file mode 100644
index dd5b50c..0000000
--- a/frontend/src/pages/[locale]/furthsettins/lallans/index.astro
+++ /dev/null
@@ -1,22 +0,0 @@
----
-import Layout from '../../../../layouts/Layout.astro';
-import staticPaths from '../../staticPaths';
-import translate from '../../../../i18n/translate';
-import tFurthsettins from '../../../../i18n/translations/pages/furthsettins';
-import tSite from '../../../../i18n/translations/site';
-import type Locale from '../../../../types/Locale';
-import LallansIssuesGallery from '../../../../components/LallansIssuesGallery.astro';
-
-export async function getStaticPaths() { return staticPaths; }
-
-const locale = Astro.params.locale as Locale;
-const t = translate(locale);
----
-
-<Layout locale={locale} title={ t(tFurthsettins, 'title') }>
- <main id="main">
- <h1>Lallans</h1>
-
- <LallansIssuesGallery />
- </main>
-</Layout> \ No newline at end of file
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 8423851..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