chore(next): installs merriweather as google font and removes static assets
This commit is contained in:
@@ -22,6 +22,16 @@ export const metadata = {
|
|||||||
title: 'Next.js',
|
title: 'Next.js',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import { Merriweather } from 'next/font/google'
|
||||||
|
|
||||||
|
const merriweather = Merriweather({
|
||||||
|
display: 'swap',
|
||||||
|
style: ['normal', 'italic'],
|
||||||
|
subsets: ['latin'],
|
||||||
|
variable: '--font-serif',
|
||||||
|
weight: ['400', '900'],
|
||||||
|
})
|
||||||
|
|
||||||
export const RootLayout = async ({
|
export const RootLayout = async ({
|
||||||
children,
|
children,
|
||||||
config: configPromise,
|
config: configPromise,
|
||||||
@@ -82,7 +92,7 @@ export const RootLayout = async ({
|
|||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html dir={dir} lang={languageCode}>
|
<html className={merriweather.variable} dir={dir} lang={languageCode}>
|
||||||
<body>
|
<body>
|
||||||
<RootProvider
|
<RootProvider
|
||||||
componentMap={componentMap}
|
componentMap={componentMap}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
--theme-baseline-body-size: #{$baseline-body-size};
|
--theme-baseline-body-size: #{$baseline-body-size};
|
||||||
--font-body: 'Suisse Intl', system-ui;
|
--font-body: 'Suisse Intl', system-ui;
|
||||||
--font-mono: monospace;
|
--font-mono: monospace;
|
||||||
--font-serif: 'Merriweather', serif;
|
|
||||||
|
|
||||||
--style-radius-s: #{$style-radius-s};
|
--style-radius-s: #{$style-radius-s};
|
||||||
--style-radius-m: #{$style-radius-m};
|
--style-radius-m: #{$style-radius-m};
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
--theme-baseline-body-size: #{$baseline-body-size};
|
--theme-baseline-body-size: #{$baseline-body-size};
|
||||||
--font-body: 'Suisse Intl', system-ui;
|
--font-body: 'Suisse Intl', system-ui;
|
||||||
--font-mono: monospace;
|
--font-mono: monospace;
|
||||||
--font-serif: 'Merriweather', serif;
|
|
||||||
|
|
||||||
--style-radius-s: #{$style-radius-s};
|
--style-radius-s: #{$style-radius-s};
|
||||||
--style-radius-m: #{$style-radius-m};
|
--style-radius-m: #{$style-radius-m};
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
--theme-baseline-body-size: #{$baseline-body-size};
|
--theme-baseline-body-size: #{$baseline-body-size};
|
||||||
--font-body: 'Suisse Intl', system-ui;
|
--font-body: 'Suisse Intl', system-ui;
|
||||||
--font-mono: monospace;
|
--font-mono: monospace;
|
||||||
--font-serif: 'Merriweather', serif;
|
|
||||||
|
|
||||||
--style-radius-s: #{$style-radius-s};
|
--style-radius-s: #{$style-radius-s};
|
||||||
--style-radius-m: #{$style-radius-m};
|
--style-radius-m: #{$style-radius-m};
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,3 @@
|
|||||||
@import 'fonts';
|
|
||||||
@import 'styles';
|
@import 'styles';
|
||||||
@import './toastify.scss';
|
@import './toastify.scss';
|
||||||
@import './colors.scss';
|
@import './colors.scss';
|
||||||
@@ -22,7 +21,6 @@
|
|||||||
--theme-baseline-body-size: #{$baseline-body-size};
|
--theme-baseline-body-size: #{$baseline-body-size};
|
||||||
--font-body: 'Suisse Intl', system-ui;
|
--font-body: 'Suisse Intl', system-ui;
|
||||||
--font-mono: monospace;
|
--font-mono: monospace;
|
||||||
--font-serif: 'Merriweather', serif;
|
|
||||||
|
|
||||||
--style-radius-s: #{$style-radius-s};
|
--style-radius-s: #{$style-radius-s};
|
||||||
--style-radius-m: #{$style-radius-m};
|
--style-radius-m: #{$style-radius-m};
|
||||||
|
|||||||
@@ -33,43 +33,3 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Merriweather';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src:
|
|
||||||
local(''),
|
|
||||||
url('../assets/fonts/merriweather-v30-latin-regular.woff2') format('woff2'),
|
|
||||||
url('../assets/fonts/merriweather-v30-latin-regular.woff') format('woff');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Merriweather';
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 400;
|
|
||||||
src:
|
|
||||||
local(''),
|
|
||||||
url('../assets/fonts/merriweather-v30-latin-italic.woff2') format('woff2'),
|
|
||||||
url('../assets/fonts/merriweather-v30-latin-italic.woff') format('woff');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Merriweather';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 900;
|
|
||||||
src:
|
|
||||||
local(''),
|
|
||||||
url('../assets/fonts/merriweather-v30-latin-900.woff2') format('woff2'),
|
|
||||||
url('../assets/fonts/merriweather-v30-latin-900.woff') format('woff');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Merriweather';
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 900;
|
|
||||||
src:
|
|
||||||
local(''),
|
|
||||||
url('../assets/fonts/merriweather-v30-latin-900italic.woff2') format('woff2'),
|
|
||||||
url('../assets/fonts/merriweather-v30-latin-900italic.woff') format('woff');
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -161,4 +161,4 @@
|
|||||||
".next/types/**/*.ts",
|
".next/types/**/*.ts",
|
||||||
"scripts/**/*.ts"
|
"scripts/**/*.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user