Skip to content

Commit

Permalink
style: compressed fonts to save 40kb per page (#1506)
Browse files Browse the repository at this point in the history
* style: compressed fonts to save 40kb per page

* fix: remove next-env.d.ts change

---------

Co-authored-by: Robin Monnier <[email protected]>
  • Loading branch information
XavierJp and rmonnier9 authored Jan 7, 2025
1 parent 0f60dbc commit d6b3e26
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import localFont from 'next/font/local';
export const marianne = localFont({
src: [
{
path: '../style/fonts/Marianne-Regular.woff2',
path: '../style/fonts/compressed/Marianne-Regular.woff2',
weight: '400',
style: 'normal',
},
Expand All @@ -13,7 +13,7 @@ export const marianne = localFont({
style: 'italic',
},
{
path: '../style/fonts/Marianne-Bold.woff2',
path: '../style/fonts/compressed/Marianne-Bold.woff2',
weight: '900',
style: 'normal',
},
Expand Down
Binary file added style/fonts/compressed/Marianne-Bold.woff
Binary file not shown.
Binary file added style/fonts/compressed/Marianne-Bold.woff2
Binary file not shown.
Binary file added style/fonts/compressed/Marianne-Regular.woff
Binary file not shown.
Binary file added style/fonts/compressed/Marianne-Regular.woff2
Binary file not shown.

0 comments on commit d6b3e26

Please sign in to comment.