From f6d45f7b9374444ae1ab751a213d86827b64eb8f Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:12:53 +0100 Subject: Adds Scotsoun --- src/pages/[locale]/furthsettins/index.astro | 8 ++++++ .../furthsettins/scotsoun/[scotsounId]/index.astro | 27 +++++++++++++++++++ .../payment-success-confirmation.astro | 30 ++++++++++++++++++++++ .../[locale]/furthsettins/scotsoun/index.astro | 22 ++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro create mode 100644 src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro create mode 100644 src/pages/[locale]/furthsettins/scotsoun/index.astro (limited to 'src/pages') diff --git a/src/pages/[locale]/furthsettins/index.astro b/src/pages/[locale]/furthsettins/index.astro index c6a805e..d7a9421 100644 --- a/src/pages/[locale]/furthsettins/index.astro +++ b/src/pages/[locale]/furthsettins/index.astro @@ -27,6 +27,14 @@ const t = translate(locale); +
  • + + + + +
  • diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro new file mode 100644 index 0000000..5b5dc82 --- /dev/null +++ b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro @@ -0,0 +1,27 @@ +--- +import Page from '$layouts/Page.astro'; +import localeStaticPaths from '$lib/localeStaticPaths'; +import tPage from '$i18n/translations/pages/scotsounGallery'; +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](); +--- + + + + diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro new file mode 100644 index 0000000..e4f62cb --- /dev/null +++ b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro @@ -0,0 +1,30 @@ +--- +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, issueNumber: n } })) + ); +} + +const locale = Astro.params.locale as Locale; +const scotsounId = Astro.params.scotsounId as ScotsounId; +const t = translate(locale); +--- + + +
    +

    {t(tPage, { key: 'title' })}

    +

    {t(tPage, { key: 'payment-confirmation-message', scotsounId })}

    + + {t(tPage, { key: 'back-button-text', scotsounId })} + +
    +
    diff --git a/src/pages/[locale]/furthsettins/scotsoun/index.astro b/src/pages/[locale]/furthsettins/scotsoun/index.astro new file mode 100644 index 0000000..cd2e1fe --- /dev/null +++ b/src/pages/[locale]/furthsettins/scotsoun/index.astro @@ -0,0 +1,22 @@ +--- +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); +--- + + +
    +

    Scotsoun

    + +
    +
    -- cgit v1.2.3