CMS fetching, Main page & members page (#12)

* CMS fetching on main page
* Getting council members
* Image loading for council member
* Placeholder avatar
This commit is contained in:
Antoine Phan
2025-06-05 16:45:18 +01:00
committed by GitHub
parent f1a9800501
commit dec7e70c43
10 changed files with 150 additions and 19 deletions

View File

@@ -0,0 +1,10 @@
import { getFromCMS } from 'utils/utils.js';
// needs to concat and format this text
const query = `*[_type == "homepage"].description[].children[].text`;
export const load = async () => {
return {
description: await getFromCMS(query)
};
};