1
0
mirror of https://github.com/vercel/commerce.git synced 2025-08-16 05:41:24 +00:00
Files
.github
.vscode
app
(home)
(page)
favicon.ico
layout.js
styles.module.scss
components
e2e
fonts
lib
styles
.env.example
.eslintrc.js
.gitignore
.nvmrc
.prettierignore
.prettierrc.json
README.md
license.md
next.config.js
package.json
playwright.config.ts
pnpm-lock.yaml
postcss.config.js
prettier.config.js
tailwind.config.js
tsconfig.json
commerce/app/layout.js
2023-07-12 22:28:07 -05:00

44 lines
1.0 KiB
JavaScript

import localFont from 'next/font/local';
import '/styles/global.scss';
import styles from './styles.module.scss';
const CenturyNovaSB = localFont({
src: [
{
path: '../fonts/CenturyNovaSBRoman/font.woff',
weight: '300',
style: 'normal',
},
{
path: '../fonts/CenturyNovaSBItalic/font.woff',
weight: '300',
style: 'italic',
},
],
variable: '--font-century-nova',
});
const Dia = localFont({
src: [
{
path: '../fonts/DiaRegular/Dia Regular.woff',
weight: '400',
style: 'normal',
},
{
path: '../fonts/DiaLight/Dia Light.woff',
weight: '100',
style: 'normal',
},
],
variable: '--font-dia',
});
export default function RootLayout({ children }) {
return (
<html lang='en' className={`${CenturyNovaSB.variable} ${Dia.variable}`}>
<body className={styles.body}>{children}</body>
</html>
);
}