mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
fix: remove preconnect font links (#1798)
This commit is contained in:
@ -1,19 +1,30 @@
|
|||||||
@import '@documenso/ui/styles/theme.css';
|
@import '@documenso/ui/styles/theme.css';
|
||||||
|
|
||||||
|
/* Inter Variable Fonts */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
src: url('/public/fonts/inter-regular.ttf') format('ttf');
|
src: url('/fonts/inter-variablefont_opsz,wght.ttf') format('truetype-variations');
|
||||||
/* font-weight: 400;
|
font-weight: 100 900;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap; */
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Inter Italic Variable Fonts */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter';
|
||||||
|
src: url('/fonts/inter-italic-variablefont_opsz,wght.ttf') format('truetype-variations');
|
||||||
|
font-weight: 100 900;
|
||||||
|
font-style: italic;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Caveat Variable Font */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Caveat';
|
font-family: 'Caveat';
|
||||||
src: url('/public/fonts/caveat.ttf') format('ttf');
|
src: url('/fonts/caveat-variablefont_wght.ttf') format('truetype-variations');
|
||||||
/* font-weight: 400;
|
font-weight: 400 600;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap; */
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
|
|||||||
@ -36,23 +36,7 @@ const { trackPageview } = Plausible({
|
|||||||
trackLocalhost: false,
|
trackLocalhost: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const links: Route.LinksFunction = () => [
|
export const links: Route.LinksFunction = () => [{ rel: 'stylesheet', href: stylesheet }];
|
||||||
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
|
||||||
{
|
|
||||||
rel: 'preconnect',
|
|
||||||
href: 'https://fonts.gstatic.com',
|
|
||||||
crossOrigin: 'anonymous',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rel: 'stylesheet',
|
|
||||||
href: 'https://fonts.googleapis.com/css2?family=Caveat:wght@400..600&display=swap',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
rel: 'stylesheet',
|
|
||||||
href: 'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap',
|
|
||||||
},
|
|
||||||
{ rel: 'stylesheet', href: stylesheet },
|
|
||||||
];
|
|
||||||
|
|
||||||
export function meta() {
|
export function meta() {
|
||||||
return appMetaTags();
|
return appMetaTags();
|
||||||
|
|||||||
BIN
apps/remix/public/fonts/caveat-variablefont_wght.ttf
Normal file
BIN
apps/remix/public/fonts/caveat-variablefont_wght.ttf
Normal file
Binary file not shown.
BIN
apps/remix/public/fonts/inter-italic-variablefont_opsz,wght.ttf
Normal file
BIN
apps/remix/public/fonts/inter-italic-variablefont_opsz,wght.ttf
Normal file
Binary file not shown.
BIN
apps/remix/public/fonts/inter-variablefont_opsz,wght.ttf
Normal file
BIN
apps/remix/public/fonts/inter-variablefont_opsz,wght.ttf
Normal file
Binary file not shown.
BIN
packages/assets/fonts/caveat-variablefont_wght.ttf
Normal file
BIN
packages/assets/fonts/caveat-variablefont_wght.ttf
Normal file
Binary file not shown.
BIN
packages/assets/fonts/inter-italic-variablefont_opsz,wght.ttf
Normal file
BIN
packages/assets/fonts/inter-italic-variablefont_opsz,wght.ttf
Normal file
Binary file not shown.
BIN
packages/assets/fonts/inter-variablefont_opsz,wght.ttf
Normal file
BIN
packages/assets/fonts/inter-variablefont_opsz,wght.ttf
Normal file
Binary file not shown.
Reference in New Issue
Block a user