Add IBM Plex Sans font
This commit is contained in:
parent
ac86b7fa7a
commit
05ae0f0218
|
@ -1,10 +1,17 @@
|
|||
import type { Metadata } from 'next';
|
||||
import localFont from 'next/font/local';
|
||||
|
||||
import Header from '@/components/header/header';
|
||||
import Footer from '@/components/footer/footer';
|
||||
import Banner from '@/components/banner/banner';
|
||||
import './globals.css';
|
||||
|
||||
const font = localFont({
|
||||
src: '../public/fonts/IBMPlexSans.ttf',
|
||||
weight: '500',
|
||||
variable: '--font-ibm-plex'
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Hello, I'm Rory",
|
||||
description: 'The personal website of Rory Healy.',
|
||||
|
@ -17,7 +24,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|||
return (
|
||||
<html lang='en'>
|
||||
<body>
|
||||
<main className='flex flex-col h-screen w-screen bg-custom-grey-1'>
|
||||
<main className={`flex flex-col h-screen w-screen bg-custom-grey-1 ${font.className}`}>
|
||||
<Banner />
|
||||
<Header />
|
||||
<div className='flex flex-1 h-full w-full items-center justify-center'>{children}</div>
|
||||
|
|
Binary file not shown.
|
@ -18,7 +18,7 @@ module.exports = {
|
|||
'custom-white-2': '#c2d2d6',
|
||||
},
|
||||
fontFamily: {
|
||||
sans: ['IBM Plex Sans', 'sans']
|
||||
sans: ['var(--font-ibm-plex)']
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue