Office Hour block, codebase clean up for schemas and utils

This commit is contained in:
Antoine Phan
2025-07-19 12:32:47 -04:00
parent fe3495227d
commit e0a4aa1fa8
11 changed files with 57 additions and 67 deletions

View File

@@ -0,0 +1,21 @@
import { getFromCMS } from '$lib/utils.js';
const query = `*[_type == "members"]{
name,
email,
position,
positionDescription,
"image": image.asset->url,
yearProgram
}`;
const councilGoofyPicQuery = `*[_type == "homepage"]{
"url": councilGoofyPic.asset->url+"?h=1000&fm=webp"
}[0]`;
export const load = async () => {
return {
members: await getFromCMS(query),
councilGoofyPic: await getFromCMS(councilGoofyPicQuery),
};
};