From 3366cebc997349affe1f6866b7ef00148613efee Mon Sep 17 00:00:00 2001 From: Antoine Phan Date: Sat, 19 Jul 2025 18:40:49 -0400 Subject: [PATCH] Update schemas --- src/app.css | 9 +++++++-- src/lib/schemas.ts | 4 ++-- src/routes/+page.server.ts | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/app.css b/src/app.css index 335871b..d46bfc2 100644 --- a/src/app.css +++ b/src/app.css @@ -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; } diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 3c177c6..15f858c 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -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; diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 1b00b9a..393a1ca 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -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,