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/components/Scotsoun.astro | 65 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/components/Scotsoun.astro (limited to 'src/components/Scotsoun.astro') diff --git a/src/components/Scotsoun.astro b/src/components/Scotsoun.astro new file mode 100644 index 0000000..13c6fa9 --- /dev/null +++ b/src/components/Scotsoun.astro @@ -0,0 +1,65 @@ +--- +import translate from '$i18n/translate'; +import tSite from '$i18n/translations/site'; +import tComponent from '$i18n/translations/components/scotsoun'; +import type Locale from '$types/Locale'; +import type Scotsoun from '$types/Scotsoun'; +import PayPalButtons from './PayPalButtons.astro'; + +interface Props { + locale: Locale; + scotsoun: Scotsoun; +} + +const { locale, scotsoun } = Astro.props; +const t = translate(locale); +--- + +
+
+
+

{scotsoun.title}

+ {scotsoun?.subtitle &&

{scotsoun.subtitle}

} + { + scotsoun?.author && ( +

+ {t(tSite, { key: 'by' })} {scotsoun.author} +

+ ) + } +
+
+ + +
+
+ +
+ {scotsoun?.description &&

{scotsoun.description[locale]}

} + + { + scotsoun?.coverArtist && ( +

{t(tComponent, { key: 'cover-artist', coverArtist: scotsoun.coverArtist })}

+ ) + } + + { + scotsoun?.releaseDate && ( +

{t(tComponent, { key: 'release-date', releaseDate: scotsoun.releaseDate })}

+ ) + } + + { + scotsoun?.trackList && scotsoun.trackList.length > 1 && ( + <> +

Track list

+
    + {scotsoun.trackList.map((track) => ( +
  1. {track}
  2. + ))} +
+ + ) + } +
+
-- cgit v1.2.3