Update schemas

This commit is contained in:
Antoine Phan
2025-07-19 18:40:49 -04:00
parent 9f1b893a96
commit 3366cebc99
3 changed files with 11 additions and 6 deletions

View File

@@ -16,12 +16,17 @@
font-family: "Saira", sans-serif;
font-optical-sizing: auto;
font-weight: 500;
scroll-behavior: smooth;
}
h1 {
@apply text-3xl font-bold py-4;
@apply text-2xl md:text-3xl font-bold py-4;
}
h2 {
@apply text-xl md:text-2xl font-bold py-3;
}
.page-title {
@apply text-4xl md:text-6xl font-bold py-4;
@apply text-3xl md:text-4xl lg:text-6xl font-bold py-4;
}

View File

@@ -27,7 +27,7 @@ export type HomepageCMSResponse = {
}[];
};
export type OhCMSResponse = {
export type OfficeHour = {
day: string;
startTime: string;
endTime: string;
@@ -35,7 +35,7 @@ export type OhCMSResponse = {
name: string;
position: string;
};
}[];
};
export type CouncilMember = {
name: string;

View File

@@ -1,5 +1,5 @@
import { getFromCMS } from '$lib/utils.js';
import type { HomepageCMSResponse, OhCMSResponse } from '$lib/schemas';
import type { HomepageCMSResponse, OfficeHour } from '$lib/schemas';
const homepageQuery = `*[_type == "homepage"]{
"description": description[],
@@ -23,7 +23,7 @@ export const load = async () => {
* Note that `description` is a rich/portable text type
*/
let homepageResp: HomepageCMSResponse = await getFromCMS(homepageQuery);
let officeHourResp: OhCMSResponse = await getFromCMS(ohQuery);
let officeHourResp: OfficeHour[] = await getFromCMS(ohQuery);
return {
description: homepageResp.description,