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';
|
||||
|
||||
/* Inter Variable Fonts */
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('/public/fonts/inter-regular.ttf') format('ttf');
|
||||
/* font-weight: 400;
|
||||
src: url('/fonts/inter-variablefont_opsz,wght.ttf') format('truetype-variations');
|
||||
font-weight: 100 900;
|
||||
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-family: 'Caveat';
|
||||
src: url('/public/fonts/caveat.ttf') format('ttf');
|
||||
/* font-weight: 400;
|
||||
src: url('/fonts/caveat-variablefont_wght.ttf') format('truetype-variations');
|
||||
font-weight: 400 600;
|
||||
font-style: normal;
|
||||
font-display: swap; */
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
|
||||
@ -36,23 +36,7 @@ const { trackPageview } = Plausible({
|
||||
trackLocalhost: false,
|
||||
});
|
||||
|
||||
export const links: Route.LinksFunction = () => [
|
||||
{ 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 const links: Route.LinksFunction = () => [{ rel: 'stylesheet', href: stylesheet }];
|
||||
|
||||
export function meta() {
|
||||
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