chore(ui): removes all static font assets (#5821)
This commit is contained in:
@@ -22,6 +22,16 @@ export const metadata = {
|
||||
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 ({
|
||||
children,
|
||||
config: configPromise,
|
||||
@@ -82,7 +92,7 @@ export const RootLayout = async ({
|
||||
})
|
||||
|
||||
return (
|
||||
<html dir={dir} lang={languageCode}>
|
||||
<html className={merriweather.variable} dir={dir} lang={languageCode}>
|
||||
<body>
|
||||
<RootProvider
|
||||
componentMap={componentMap}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
@import './fonts.scss';
|
||||
@import './styles.scss';
|
||||
@import './toastify.scss';
|
||||
@import './colors.scss';
|
||||
@@ -20,9 +19,9 @@
|
||||
--theme-overlay: rgba(5, 5, 5, 0.5);
|
||||
--theme-baseline: #{$baseline-px};
|
||||
--theme-baseline-body-size: #{$baseline-body-size};
|
||||
--font-body: 'Suisse Intl', system-ui;
|
||||
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||||
sans-serif;
|
||||
--font-mono: monospace;
|
||||
--font-serif: 'Merriweather', serif;
|
||||
|
||||
--style-radius-s: #{$style-radius-s};
|
||||
--style-radius-m: #{$style-radius-m};
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-Medium.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-Medium.woff') format('woff');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-SemiBold.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-SemiBold.woff') format('woff');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-Bold.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-Bold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
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');
|
||||
}
|
||||
@@ -21,13 +21,6 @@ $baseline: math.div($baseline-px, $baseline-body-size) + rem;
|
||||
@return (math.div($baseline-px, $baseline-body-size) * $multiplier) + rem;
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// FONTS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
||||
//////////////////////////////
|
||||
|
||||
$font-body: 'Suisse Intl' !default;
|
||||
$font-mono: monospace !default;
|
||||
|
||||
//////////////////////////////
|
||||
// COLORS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
||||
//////////////////////////////
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
@import 'fonts';
|
||||
@import 'styles';
|
||||
@import './toastify.scss';
|
||||
@import './colors.scss';
|
||||
@@ -20,9 +19,9 @@
|
||||
--theme-overlay: rgba(5, 5, 5, 0.5);
|
||||
--theme-baseline: #{$baseline-px};
|
||||
--theme-baseline-body-size: #{$baseline-body-size};
|
||||
--font-body: 'Suisse Intl', system-ui;
|
||||
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||||
sans-serif;
|
||||
--font-mono: monospace;
|
||||
--font-serif: 'Merriweather', serif;
|
||||
|
||||
--style-radius-s: #{$style-radius-s};
|
||||
--style-radius-m: #{$style-radius-m};
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-Medium.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-Medium.woff') format('woff');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-SemiBold.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-SemiBold.woff') format('woff');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-Bold.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-Bold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
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');
|
||||
}
|
||||
@@ -21,13 +21,6 @@ $baseline: math.div($baseline-px, $baseline-body-size) + rem;
|
||||
@return (math.div($baseline-px, $baseline-body-size) * $multiplier) + rem;
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// FONTS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
||||
//////////////////////////////
|
||||
|
||||
$font-body: 'Suisse Intl' !default;
|
||||
$font-mono: monospace !default;
|
||||
|
||||
//////////////////////////////
|
||||
// COLORS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
||||
//////////////////////////////
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
@import 'fonts';
|
||||
@import 'styles';
|
||||
@import './toastify.scss';
|
||||
@import './colors.scss';
|
||||
@@ -20,9 +19,9 @@
|
||||
--theme-overlay: rgba(5, 5, 5, 0.5);
|
||||
--theme-baseline: #{$baseline-px};
|
||||
--theme-baseline-body-size: #{$baseline-body-size};
|
||||
--font-body: 'Suisse Intl', system-ui;
|
||||
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||||
sans-serif;
|
||||
--font-mono: monospace;
|
||||
--font-serif: 'Merriweather', serif;
|
||||
|
||||
--style-radius-s: #{$style-radius-s};
|
||||
--style-radius-m: #{$style-radius-m};
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-Medium.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-Medium.woff') format('woff');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-SemiBold.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-SemiBold.woff') format('woff');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-Bold.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-Bold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
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');
|
||||
}
|
||||
@@ -21,13 +21,6 @@ $baseline: math.div($baseline-px, $baseline-body-size) + rem;
|
||||
@return (math.div($baseline-px, $baseline-body-size) * $multiplier) + rem;
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// FONTS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
||||
//////////////////////////////
|
||||
|
||||
$font-body: 'Suisse Intl' !default;
|
||||
$font-mono: monospace !default;
|
||||
|
||||
//////////////////////////////
|
||||
// COLORS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
||||
//////////////////////////////
|
||||
|
||||
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.
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 './toastify.scss';
|
||||
@import './colors.scss';
|
||||
@@ -20,9 +19,9 @@
|
||||
--theme-overlay: rgba(5, 5, 5, 0.5);
|
||||
--theme-baseline: #{$baseline-px};
|
||||
--theme-baseline-body-size: #{$baseline-body-size};
|
||||
--font-body: 'Suisse Intl', system-ui;
|
||||
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||||
sans-serif;
|
||||
--font-mono: monospace;
|
||||
--font-serif: 'Merriweather', serif;
|
||||
|
||||
--style-radius-s: #{$style-radius-s};
|
||||
--style-radius-m: #{$style-radius-m};
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-Medium.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-Medium.woff') format('woff');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-SemiBold.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-SemiBold.woff') format('woff');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Suisse Intl';
|
||||
src:
|
||||
url('../assets/fonts/SuisseIntl-Bold.woff2') format('woff2'),
|
||||
url('../assets/fonts/SuisseIntl-Bold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
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');
|
||||
}
|
||||
@@ -21,13 +21,6 @@ $baseline: math.div($baseline-px, $baseline-body-size) + rem;
|
||||
@return (math.div($baseline-px, $baseline-body-size) * $multiplier) + rem;
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// FONTS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
||||
//////////////////////////////
|
||||
|
||||
$font-body: 'Suisse Intl' !default;
|
||||
$font-mono: monospace !default;
|
||||
|
||||
//////////////////////////////
|
||||
// COLORS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
||||
//////////////////////////////
|
||||
|
||||
@@ -14,6 +14,10 @@ export const PostsCollection: CollectionConfig = {
|
||||
name: 'text',
|
||||
type: 'text',
|
||||
},
|
||||
{
|
||||
name: 'richText',
|
||||
type: 'richText',
|
||||
},
|
||||
// {
|
||||
// type: 'row',
|
||||
// fields: [],
|
||||
|
||||
Reference in New Issue
Block a user