I've redesigned the admissions page to strictly follow your "Coffee, Navy, and Gold" design system with a minimal, high-end academic aesthetic. The hero section now features a striking layout using the Instrument Serif font with italic accents and bold tracking, while the content is organized into sophisticated, clean cards with subtle hover interactions and refined typography. This approach eliminates visual clutter and uses generous white space and professional iconography to create a more prestigious user experience.
I've fixed the runtime error in the Sanity data mapping logic by adding a null check when processing the authors array. This prevents the "a is null" error that occurred when a post had a broken or empty author reference. The fix ensures the landing page can load correctly even if some CMS data is incomplete.
The debug logs show a generic "Script error" with no details. Let me check what's causing this by examining the imports and components used on the about page.
I found the issue. The buildImageUrl function is being called with settings?.defaultSeo?.shareImage but the function doesn't properly handle Sanity image objects. The issue is that the about page calls buildImageUrl() which expects the image to have either externalUrl, an asset property with a url, or be a string. Let me fix this by ensuring proper fallback handling.
I've fixed the script error by improving null-safety in the buildImageUrl function to properly check if the asset property exists and is an object before accessing its url property. Additionally, I updated the about page to use getImageUrl instead of buildImageUrl for proper fallback handling. These changes prevent runtime errors when Sanity image data is incomplete or missing.