Skip to content

Commit

Permalink
Restore usage of Cera Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
williammck committed Jan 27, 2025
1 parent c6cd2a5 commit d8a5260
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 23 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"lint:fix": "next lint --fix"
},
"dependencies": {
"@fontsource/montserrat": "5.1.1",
"@headlessui/react": "2.2.0",
"@hookform/resolvers": "3.3.4",
"@sentry/nextjs": "^7.107.0",
Expand Down
10 changes: 0 additions & 10 deletions src/app/fonts.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Disclaimer } from '@/components/static/Disclaimer';
import { Footer } from '@/components/static/Footer';
import { Navbar } from '@/components/static/Navbar';
import { Toastify } from '@/components/static/Toastify';
import './fonts';
import { ceraPro } from '@/fonts';
import './globals.css';

export const metadata = {
Expand All @@ -25,7 +25,7 @@ export const viewport = {
};

const Root = ({ children }: PropsWithChildren) => (
<html lang="en" className="h-full scroll-pt-36" suppressHydrationWarning>
<html lang="en" className={`${ceraPro.variable} h-full scroll-pt-36`} suppressHydrationWarning>
<body className="h-full">
<ThemeProvider attribute="class">
<NextAuthProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/components/static/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Brand: React.FC<BrandProps> = ({ light }) => (
/>
<h6
className={classNames(
'mt-1 text-lg font-bold leading-none',
'mt-1 text-xl font-bold leading-none',
{ 'text-gray-900 dark:text-zinc-200': !light, 'text-white': light },
)}
>
Expand Down
Binary file added src/fonts/CeraPro-Bold.woff2
Binary file not shown.
Binary file added src/fonts/CeraPro-BoldItalic.woff2
Binary file not shown.
Binary file added src/fonts/CeraPro-Light.woff2
Binary file not shown.
Binary file added src/fonts/CeraPro-Medium.woff2
Binary file not shown.
Binary file added src/fonts/CeraPro-Regular.woff2
Binary file not shown.
Binary file added src/fonts/CeraPro-RegularItalic.woff2
Binary file not shown.
37 changes: 37 additions & 0 deletions src/fonts/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import localFont from 'next/font/local';

export const ceraPro = localFont({
src: [
{
path: './CeraPro-Light.woff2',
weight: '300',
style: 'normal',
},
{
path: './CeraPro-Regular.woff2',
weight: '400',
style: 'normal',
},
{
path: './CeraPro-RegularItalic.woff2',
weight: '400',
style: 'italic',
},
{
path: './CeraPro-Medium.woff2',
weight: '500',
style: 'normal',
},
{
path: './CeraPro-Bold.woff2',
weight: '700',
style: 'normal',
},
{
path: './CeraPro-BoldItalic.woff2',
weight: '700',
style: 'italic',
},
],
variable: '--font-cera-pro',
});
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
],
theme: {
fontFamily: {
sans: ['"Montserrat"', 'sans-serif'],
sans: ['var(--font-cera-pro)'],
mono: ['monospace'],
},
extend: {
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,6 @@ __metadata:
languageName: node
linkType: hard

"@fontsource/montserrat@npm:5.1.1":
version: 5.1.1
resolution: "@fontsource/montserrat@npm:5.1.1"
checksum: 755d3af7026094cbc1cfffb45cd9f06dbf4ef3d0399aa1e18f2a3055c370cdf80f5c6b6a42a98a492244b9207f45da61364c437dba71423fae2a130ab2a6c37c
languageName: node
linkType: hard

"@headlessui/react@npm:2.2.0":
version: 2.2.0
resolution: "@headlessui/react@npm:2.2.0"
Expand Down Expand Up @@ -8120,7 +8113,6 @@ __metadata:
resolution: "zhu-frontend@workspace:."
dependencies:
"@biomejs/biome": "npm:1.6.1"
"@fontsource/montserrat": "npm:5.1.1"
"@headlessui/react": "npm:2.2.0"
"@hookform/resolvers": "npm:3.3.4"
"@sentry/nextjs": "npm:^7.107.0"
Expand Down

0 comments on commit d8a5260

Please sign in to comment.