From ec59b216df4aefada7502872dad9fbd8efe165e5 Mon Sep 17 00:00:00 2001
From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com>
Date: Fri, 13 Oct 2023 20:34:50 +0100
Subject: Optimises furthsettins images
---
src/pages/[locale]/furthsettins/index.astro | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
(limited to 'src/pages')
diff --git a/src/pages/[locale]/furthsettins/index.astro b/src/pages/[locale]/furthsettins/index.astro
index e1f4928..80698bd 100644
--- a/src/pages/[locale]/furthsettins/index.astro
+++ b/src/pages/[locale]/furthsettins/index.astro
@@ -1,4 +1,5 @@
---
+import { Image } from 'astro:assets';
import Page from '$layouts/Page.astro';
import localeStaticPaths from '$lib/localeStaticPaths';
import translate from '$i18n/translate';
@@ -6,8 +7,8 @@ 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.jpg';
-import scotsounImg from '$images/furthsettins/scotsoun.jpg';
+import lallansImg from '$images/furthsettins/lallans-192w.jpg';
+import scotsounImg from '$images/furthsettins/scotsoun-192w.jpg';
export async function getStaticPaths() {
return localeStaticPaths;
@@ -24,13 +25,13 @@ const t = translate(locale);
-
-
+
{t(tSite, { key: 'lallans' })}
-
-
+
{t(tSite, { key: 'scotsoun' })}
--
cgit v1.2.3
From 796fdeed465f8a4f9d4aaaaf9ddf448f91e901e6 Mon Sep 17 00:00:00 2001
From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com>
Date: Fri, 13 Oct 2023 21:26:13 +0100
Subject: Pulls out CommitteeList component
---
src/pages/[locale]/index.astro | 26 ++------------------------
1 file changed, 2 insertions(+), 24 deletions(-)
(limited to 'src/pages')
diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro
index 653c637..c67ded0 100644
--- a/src/pages/[locale]/index.astro
+++ b/src/pages/[locale]/index.astro
@@ -3,14 +3,12 @@ import Page from '$layouts/Page.astro';
import localeStaticPaths from '$lib/localeStaticPaths';
import translate from '$i18n/translate';
import tPage from '$i18n/translations/pages/home';
-import tRole from '$i18n/translations/enums/committeeRole';
import type Locale from '$types/Locale';
import { getMostRecentNewsItem } from '$lib/newsUtils';
import contactDetails from '$data/contactDetails';
import NewsIndex from '$components/NewsIndex/NewsIndex.astro';
-import committee from '$data/committee';
import Button from '$components/Button.astro';
-import CommitteeRole from '$enums/CommitteeRole';
+import CommitteeList from '$components/CommitteeList/CommitteeList.astro';
export async function getStaticPaths() {
return localeStaticPaths;
@@ -46,27 +44,7 @@ const mostRecentNewsItem = await getMostRecentNewsItem(locale);
{t(tPage, { key: 'mair-commattee-details-soon' })}
-
- {
- committee.map((member) => (
- -
- {member.img &&
}
-
-
- {member.name}
- {member.roles.length > 0 && (
-
- |{' '}
- {member.roles.map((role) => t(tRole, { key: CommitteeRole[role] })).join(', ')}
-
- )}
-
- {member.bio &&
}
-
-
- ))
- }
-
+