Update schemas
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user