diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-13 19:03:03 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-13 19:10:06 +0100 |
| commit | 8c1fff45fb5340a338416586162ac247b2b190c0 (patch) | |
| tree | 849ae072e8efc8652d3045ae4ab3db30798f1a9b /src/components | |
| parent | 1118c377e32940ada179bfcde1549b73d8948626 (diff) | |
Uses TSConfig paths
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Breadcrumbs.astro | 10 | ||||
| -rw-r--r-- | src/components/LallansIssue.astro | 14 | ||||
| -rw-r--r-- | src/components/LallansIssueContributions.astro | 8 | ||||
| -rw-r--r-- | src/components/LallansIssueContributors.astro | 8 | ||||
| -rw-r--r-- | src/components/LallansIssuesGallery.astro | 2 | ||||
| -rw-r--r-- | src/components/Navbar.astro | 6 | ||||
| -rw-r--r-- | src/components/PayPalButtons.astro | 2 | ||||
| -rw-r--r-- | src/components/SwitchLanguageLink.astro | 8 |
8 files changed, 29 insertions, 29 deletions
diff --git a/src/components/Breadcrumbs.astro b/src/components/Breadcrumbs.astro index 5ebe759..66f2a66 100644 --- a/src/components/Breadcrumbs.astro +++ b/src/components/Breadcrumbs.astro @@ -1,9 +1,9 @@ --- -import findAllIndicesOf from '../lib/findAllIndicesOf'; -import translate from '../i18n/translate'; -import tBreadcrumbs from '../i18n/translations/components/breadcrumbs'; -import type Locale from '../types/Locale'; -import locales from '../i18n/locales'; +import findAllIndicesOf from '$lib/findAllIndicesOf'; +import translate from '$i18n/translate'; +import tBreadcrumbs from '$i18n/translations/components/breadcrumbs'; +import type Locale from '$types/Locale'; +import locales from '$i18n/locales'; const path = Astro.url.pathname.replace(/(?<!\/)$/, '/'); const localeInPath = new RegExp(`/(?<=^/)(${locales.join('|')})`); diff --git a/src/components/LallansIssue.astro b/src/components/LallansIssue.astro index f45dc0a..c71755b 100644 --- a/src/components/LallansIssue.astro +++ b/src/components/LallansIssue.astro @@ -1,8 +1,8 @@ --- -import translate from '../i18n/translate'; -import tSite from '../i18n/translations/site'; -import type LallansIssue from '../types/LallansIssue'; -import type Locale from '../types/Locale'; +import translate from '$i18n/translate'; +import tSite from '$i18n/translations/site'; +import type LallansIssue from '$types/LallansIssue'; +import type Locale from '$types/Locale'; import LallansIssueContributions from './LallansIssueContributions.astro'; import LallansIssueContributors from './LallansIssueContributors.astro'; import PayPalButtons from './PayPalButtons.astro'; @@ -17,18 +17,20 @@ const t = translate(locale); --- <section class="section--full-width"> - <div class="lallans-issue__header-block"> + <div class="product__header-block"> <header> <h1>{t(tSite, { key: 'lallans' })} {issue.issueNumber}</h1> <p class="italic">{issue.description[locale]}</p> </header> - <div class="lallans-issue__header-block-end"> + <div class="product__action-block"> <img alt="" src={`/images/lallans/issue${issue.issueNumber}.jpg`} /> <PayPalButtons successPageUrl={`./${issue.issueNumber}/payment-success-confirmation`} /> </div> </div> +</section> +<section> { 'contributions' in issue ? ( <LallansIssueContributions contributions={issue.contributions} locale={locale} /> diff --git a/src/components/LallansIssueContributions.astro b/src/components/LallansIssueContributions.astro index cfd3392..425f66a 100644 --- a/src/components/LallansIssueContributions.astro +++ b/src/components/LallansIssueContributions.astro @@ -1,8 +1,8 @@ --- -import translate from '../i18n/translate'; -import tSite from '../i18n/translations/site'; -import type { Contribution } from '../types/LallansIssue'; -import type Locale from '../types/Locale'; +import translate from '$i18n/translate'; +import tSite from '$i18n/translations/site'; +import type { Contribution } from '$types/LallansIssue'; +import type Locale from '$types/Locale'; interface Props { contributions: Contribution[]; diff --git a/src/components/LallansIssueContributors.astro b/src/components/LallansIssueContributors.astro index 4149e11..5ac5d42 100644 --- a/src/components/LallansIssueContributors.astro +++ b/src/components/LallansIssueContributors.astro @@ -1,5 +1,5 @@ --- -import type { Contributor } from '../types/LallansIssue'; +import type { Contributor } from '$types/LallansIssue'; interface Props { contributors: Contributor[]; @@ -11,8 +11,6 @@ const { contributors } = Astro.props; <section class="lallans-contributors"> <h2>Contributors</h2> <ul> - { contributors.map(contributor => ( - <li>{ contributor }</li> - ))} + {contributors.map((contributor) => <li>{contributor}</li>)} </ul> -</section>
\ No newline at end of file +</section> diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro index 420d83f..5e45a9e 100644 --- a/src/components/LallansIssuesGallery.astro +++ b/src/components/LallansIssuesGallery.astro @@ -1,5 +1,5 @@ --- -import { getAllLallansIssues } from '../data/lallans'; +import { getAllLallansIssues } from '$data/lallans'; const issues = await getAllLallansIssues(); --- diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index d34bfc2..45cf96b 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -1,9 +1,9 @@ --- -import type Locale from '../types/Locale'; +import type Locale from '$types/Locale'; import Breadcrumbs from './Breadcrumbs.astro'; import SwitchLanguageLink from './SwitchLanguageLink.astro'; -import tSite from '../i18n/translations/site'; -import translate from '../i18n/translate'; +import tSite from '$i18n/translations/site'; +import translate from '$i18n/translate'; interface Props { locale: Locale; diff --git a/src/components/PayPalButtons.astro b/src/components/PayPalButtons.astro index 91050dc..80d52ff 100644 --- a/src/components/PayPalButtons.astro +++ b/src/components/PayPalButtons.astro @@ -1,5 +1,5 @@ --- -import env from '../lib/env'; +import env from '$lib/env'; interface Props { successPageUrl: string; diff --git a/src/components/SwitchLanguageLink.astro b/src/components/SwitchLanguageLink.astro index e8dace3..96dd538 100644 --- a/src/components/SwitchLanguageLink.astro +++ b/src/components/SwitchLanguageLink.astro @@ -1,8 +1,8 @@ --- -import tPage from '../i18n/translations/components/languageLinks'; -import tSite from '../i18n/translations/site'; -import translate from '../i18n/translate'; -import type Locale from '../types/Locale'; +import tPage from '$i18n/translations/components/languageLinks'; +import tSite from '$i18n/translations/site'; +import translate from '$i18n/translate'; +import type Locale from '$types/Locale'; interface Props { currentLocale: Locale; |
