diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 59aaec56..7fff3211 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -4,6 +4,7 @@ import { clsx } from 'clsx/lite'; import { IBM_Plex_Mono } from 'next/font/google'; import { BASE_URL, + CENTERED_LARGE_SCREENS, DEFAULT_THEME, SITE_DESCRIPTION, SITE_DOMAIN_OR_TITLE, @@ -27,6 +28,8 @@ const ibmPlexMono = IBM_Plex_Mono({ subsets: ['latin'], weight: ['400', '500', '700'], variable: '--font-ibm-plex-mono', + display: 'swap', // font wouldn't load in vercel dev environment, solution from link below + // https://stackoverflow.com/a/76484168 }); export const metadata: Metadata = { diff --git a/src/components/SiteGrid.tsx b/src/components/SiteGrid.tsx index 931fec17..6d04648a 100644 --- a/src/components/SiteGrid.tsx +++ b/src/components/SiteGrid.tsx @@ -1,5 +1,6 @@ import { clsx } from 'clsx/lite'; import { RefObject } from 'react'; +import { CENTERED_LARGE_SCREENS } from '@/site/config'; export default function SiteGrid({ containerRef, @@ -25,18 +26,29 @@ export default function SiteGrid({ 'gap-x-4 lg:gap-x-6', 'gap-y-4', 'max-w-7xl', + CENTERED_LARGE_SCREENS && 'mx-auto', className, )} >