Move font export from layout to seperated comp

This commit is contained in:
2025-04-30 21:46:06 +03:00
parent 60cd97d68b
commit e20d3230af
9 changed files with 36 additions and 36 deletions

View File

@@ -0,0 +1,28 @@
import localFont from 'next/font/local';
// Style 'only' has normal and italic for some reason.
// It uses the weight to determine the style used.
export const vipnagorgialla = localFont({
src: [
{
path: '../app/fonts/vipnagorgialla/Vipnagorgialla-Rg.otf',
weight: '400',
style: 'normal',
},
{
path: '../app/fonts/vipnagorgialla/Vipnagorgialla-Rg-It.otf',
weight: '400',
style: 'italic',
},
{
path: '../app/fonts/vipnagorgialla/Vipnagorgialla-Bd.otf',
weight: '700',
style: 'normal',
},
{
path: '../app/fonts/vipnagorgialla/Vipnagorgialla-Bd-It.otf',
weight: '700',
style: 'italic',
},
],
});