summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2025-04-13 08:32:50 +0100
committerJoe Carstairs <me@joeac.net>2025-04-13 08:32:50 +0100
commit3d5bdc40809c5290342d7f269cfe845a6f2b3b4b (patch)
tree00dd82d1ae955d8a3ee90707681aafe48607e85a /src/pages
parentc7a5732347f83bc28ef7594898160ca2a29400cd (diff)
discontinue furthsettins
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/[locale]/furthsettins.astro (renamed from src/pages/[locale]/furthsettins/lallans/index.astro)8
-rw-r--r--src/pages/[locale]/furthsettins/index.astro40
-rw-r--r--src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro27
-rw-r--r--src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro30
-rw-r--r--src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro28
-rw-r--r--src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro30
-rw-r--r--src/pages/[locale]/furthsettins/scotsoun/index.astro23
-rw-r--r--src/pages/[locale]/index.astro4
8 files changed, 3 insertions, 187 deletions
diff --git a/src/pages/[locale]/furthsettins/lallans/index.astro b/src/pages/[locale]/furthsettins.astro
index a4b6d70..7d31430 100644
--- a/src/pages/[locale]/furthsettins/lallans/index.astro
+++ b/src/pages/[locale]/furthsettins.astro
@@ -1,10 +1,9 @@
---
+import translate from '$i18n/translate';
+import tPage from '$i18n/translations/pages/furthsettins';
import Page from '$layouts/Page.astro';
import localeStaticPaths from '$lib/localeStaticPaths';
-import translate from '$i18n/translate';
-import tPage from '$i18n/translations/pages/lallansGallery';
import type Locale from '$types/Locale';
-import LallansIssuesGallery from '$components/LallansIssuesGallery.astro';
export async function getStaticPaths() {
return localeStaticPaths;
@@ -17,7 +16,6 @@ const t = translate(locale);
<Page title={t(tPage, { key: 'title' })}>
<section>
<h1>{t(tPage, { key: 'title' })}</h1>
- <p set:html={t(tPage, { key: 'about-lallans' })} />
- <LallansIssuesGallery />
+ <p set:html={t(tPage, { key: 'para' })} />
</section>
</Page>
diff --git a/src/pages/[locale]/furthsettins/index.astro b/src/pages/[locale]/furthsettins/index.astro
deleted file mode 100644
index a053621..0000000
--- a/src/pages/[locale]/furthsettins/index.astro
+++ /dev/null
@@ -1,40 +0,0 @@
----
-import { Image } from 'astro:assets';
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-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 relativePath from '$lib/relativePath';
-import lallansImg from '$images/furthsettins/lallans-192w.jpg';
-import scotsounImg from '$images/furthsettins/scotsoun-192w.jpg';
-
-export async function getStaticPaths() {
- return localeStaticPaths;
-}
-
-const locale = Astro.params.locale as Locale;
-const t = translate(locale);
----
-
-<Page title={t(tFurthsettins, { key: 'title' })}>
- <section>
- <h1>{t(tFurthsettins, { key: 'title' })}</h1>
-
- <ul class="link-gallery link-gallery--furthsettins">
- <li>
- <a href={relativePath(Astro.url.pathname, 'lallans')} class="link-gallery__container">
- <Image src={lallansImg} alt="" />
- <p class="link-gallery__title">{t(tSite, { key: 'lallans' })}</p>
- </a>
- </li>
- <li>
- <a href={relativePath(Astro.url.pathname, 'scotsoun')} class="link-gallery__container">
- <Image src={scotsounImg} alt="" />
- <p class="link-gallery__title">{t(tSite, { key: 'scotsoun' })}</p>
- </a>
- </li>
- </ul>
- </section>
-</Page>
diff --git a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro b/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro
deleted file mode 100644
index 82fabf0..0000000
--- a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/index.astro
+++ /dev/null
@@ -1,27 +0,0 @@
----
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-import translate from '$i18n/translate';
-import tFurthsettins from '$i18n/translations/pages/furthsettins';
-import type Locale from '$types/Locale';
-import { getLallansIssue } from '$data/lallans';
-import type LallansIssueNumber from '$types/LallansIssueNumber';
-import LallansIssue from '$components/LallansIssue.astro';
-
-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]();
----
-
-<Page title={t(tFurthsettins, { key: 'title' })}>
- <LallansIssue issue={issue} />
- <script src="$scripts/wc/paypal-product-buttons.ts"></script>
-</Page>
diff --git a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro
deleted file mode 100644
index f0b9512..0000000
--- a/src/pages/[locale]/furthsettins/lallans/[issueNumber]/payment-success-confirmation.astro
+++ /dev/null
@@ -1,30 +0,0 @@
----
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-import translate from '$i18n/translate';
-import tPage from '$i18n/translations/pages/lallansIssuePaymentSuccessConfirmation';
-import type Locale from '$types/Locale';
-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;
----
-
-<Page title={t(tPage, { key: 'title' })}>
- <section>
- <h1>{t(tPage, { key: 'title' })}</h1>
- <p>{t(tPage, { key: 'payment-confirmation-message', issueNumber: `${issueNumber}` })}</p>
- <a href={`/${locale}/furthsettins/lallans/${issueNumber}`}>
- {t(tPage, { key: 'back-button-text', issueNumber: `${issueNumber}` })}
- </a>
- </section>
-</Page>
diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro
deleted file mode 100644
index 4244f70..0000000
--- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro
+++ /dev/null
@@ -1,28 +0,0 @@
----
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-import tPage from '$i18n/translations/pages/scotsounRelease';
-import translate from '$i18n/translate';
-import type Locale from '$types/Locale';
-import { getScotsoun } from '$data/scotsoun';
-import type ScotsounId from '$types/ScotsounId';
-import Scotsoun from '$components/Scotsoun.astro';
-
-export async function getStaticPaths() {
- const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[];
- return scotsounIds.flatMap((n) =>
- localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, scotsounId: n } }))
- );
-}
-
-const locale = Astro.params.locale as Locale;
-const scotsounId = Astro.params.scotsounId as ScotsounId;
-const t = translate(locale);
-
-const scotsoun = await getScotsoun[scotsounId]();
----
-
-<Page title={t(tPage, { key: 'title', scotsounId, name: scotsoun.title })}>
- <Scotsoun scotsoun={scotsoun} />
- <script src="$scripts/wc/paypal-product-buttons.ts"></script>
-</Page>
diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro
deleted file mode 100644
index 9e152ee..0000000
--- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro
+++ /dev/null
@@ -1,30 +0,0 @@
----
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-import translate from '$i18n/translate';
-import tPage from '$i18n/translations/pages/scotsounPaymentSuccessConfirmation';
-import type Locale from '$types/Locale';
-import { getScotsoun } from '$data/scotsoun';
-import type ScotsounId from '$types/ScotsounId';
-
-export async function getStaticPaths() {
- const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[];
- return scotsounIds.flatMap((n) =>
- localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, scotsounId: n } }))
- );
-}
-
-const locale = Astro.params.locale as Locale;
-const scotsounId = Astro.params.scotsounId as ScotsounId;
-const t = translate(locale);
----
-
-<Page title={t(tPage, { key: 'title' })}>
- <section>
- <h1>{t(tPage, { key: 'title' })}</h1>
- <p>{t(tPage, { key: 'payment-confirmation-message', scotsounId })}</p>
- <a href={`/${locale}/furthsettins/scotsoun/${scotsounId}`}>
- {t(tPage, { key: 'back-button-text', scotsounId })}
- </a>
- </section>
-</Page>
diff --git a/src/pages/[locale]/furthsettins/scotsoun/index.astro b/src/pages/[locale]/furthsettins/scotsoun/index.astro
deleted file mode 100644
index 26f1f13..0000000
--- a/src/pages/[locale]/furthsettins/scotsoun/index.astro
+++ /dev/null
@@ -1,23 +0,0 @@
----
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-import translate from '$i18n/translate';
-import tPage from '$i18n/translations/pages/scotsounGallery';
-import type Locale from '$types/Locale';
-import ScotsounCdGallery from '$components/ScotsounCdGallery.astro';
-
-export async function getStaticPaths() {
- return localeStaticPaths;
-}
-
-const locale = Astro.params.locale as Locale;
-const t = translate(locale);
----
-
-<Page title={t(tPage, { key: 'title' })}>
- <section>
- <h1>Scotsoun</h1>
- <p>{t(tPage, { key: 'about-scotsoun' })}</p>
- <ScotsounCdGallery />
- </section>
-</Page>
diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro
index 796bf59..7846fd8 100644
--- a/src/pages/[locale]/index.astro
+++ b/src/pages/[locale]/index.astro
@@ -4,7 +4,6 @@ import localeStaticPaths from '$lib/localeStaticPaths';
import translate from '$i18n/translate';
import tPage from '$i18n/translations/pages/home';
import type Locale from '$types/Locale';
-import Button from '$components/Button.astro';
import CommitteeList from '$components/CommitteeList/CommitteeList.astro';
export async function getStaticPaths() {
@@ -28,8 +27,5 @@ const t = translate(locale);
<section>
<h2 set:html={t(tPage, { key: 'furthsettins' })} />
<p set:html={t(tPage, { key: 'furthsettins-para' })} />
- <Button classNames="grid-span-3 grid-prose-end" href={`/${locale}/furthsettins`}>
- {t(tPage, { key: 'aw-furthsettins' })} ▶
- </Button>
</section>
</Page>