Skip to content

Commit

Permalink
feat: no external ressources (#202)
Browse files Browse the repository at this point in the history
* chore: move the fonts locally for no 3rd party integrations

* fix: change the root path
  • Loading branch information
bjarneo authored Aug 23, 2023
1 parent 7d30fa9 commit d9ad6c3
Show file tree
Hide file tree
Showing 41 changed files with 138 additions and 4 deletions.
Binary file added public/fonts/Inter-Black.woff
Binary file not shown.
Binary file added public/fonts/Inter-Black.woff2
Binary file not shown.
Binary file added public/fonts/Inter-BlackItalic.woff
Binary file not shown.
Binary file added public/fonts/Inter-BlackItalic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-Bold.woff
Binary file not shown.
Binary file added public/fonts/Inter-Bold.woff2
Binary file not shown.
Binary file added public/fonts/Inter-BoldItalic.woff
Binary file not shown.
Binary file added public/fonts/Inter-BoldItalic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-ExtraBold.woff
Binary file not shown.
Binary file added public/fonts/Inter-ExtraBold.woff2
Binary file not shown.
Binary file added public/fonts/Inter-ExtraBoldItalic.woff
Binary file not shown.
Binary file added public/fonts/Inter-ExtraBoldItalic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-ExtraLight.woff
Binary file not shown.
Binary file added public/fonts/Inter-ExtraLight.woff2
Binary file not shown.
Binary file added public/fonts/Inter-ExtraLightItalic.woff
Binary file not shown.
Binary file added public/fonts/Inter-ExtraLightItalic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-Italic.woff
Binary file not shown.
Binary file added public/fonts/Inter-Italic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-Light.woff
Binary file not shown.
Binary file added public/fonts/Inter-Light.woff2
Binary file not shown.
Binary file added public/fonts/Inter-LightItalic.woff
Binary file not shown.
Binary file added public/fonts/Inter-LightItalic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-Medium.woff
Binary file not shown.
Binary file added public/fonts/Inter-Medium.woff2
Binary file not shown.
Binary file added public/fonts/Inter-MediumItalic.woff
Binary file not shown.
Binary file added public/fonts/Inter-MediumItalic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-Regular.woff
Binary file not shown.
Binary file added public/fonts/Inter-Regular.woff2
Binary file not shown.
Binary file added public/fonts/Inter-SemiBold.woff
Binary file not shown.
Binary file added public/fonts/Inter-SemiBold.woff2
Binary file not shown.
Binary file added public/fonts/Inter-SemiBoldItalic.woff
Binary file not shown.
Binary file added public/fonts/Inter-SemiBoldItalic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-Thin.woff
Binary file not shown.
Binary file added public/fonts/Inter-Thin.woff2
Binary file not shown.
Binary file added public/fonts/Inter-ThinItalic.woff
Binary file not shown.
Binary file added public/fonts/Inter-ThinItalic.woff2
Binary file not shown.
Binary file added public/fonts/Inter-italic.var.woff2
Binary file not shown.
Binary file added public/fonts/Inter-roman.var.woff2
Binary file not shown.
Binary file added public/fonts/Inter.var.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fastify.register(rateLimit, {
fastify.register(helmet, {
contentSecurityPolicy: {
directives: {
'font-src': ["'self'", 'https://rsms.me/'],
'font-src': ["'self'"],
'script-src': ["'self'", "'unsafe-inline'"],
upgradeInsecureRequests: null,
},
Expand Down
140 changes: 137 additions & 3 deletions src/client/index.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,146 @@
@import url('https://rsms.me/inter/inter.css');
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 100;
font-display: swap;
src: url('/fonts/Inter-Thin.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 100;
font-display: swap;
src: url('/fonts/Inter-ThinItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 200;
font-display: swap;
src: url('/fonts/Inter-ExtraLight.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 200;
font-display: swap;
src: url('/fonts/Inter-ExtraLightItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('/fonts/Inter-Light.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url('/fonts/Inter-LightItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('/fonts/Inter-Italic.woff2') format('woff2');
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('/fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 500;
font-display: swap;
src: url('/fonts/Inter-MediumItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 600;
font-display: swap;
src: url('/fonts/Inter-SemiBoldItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url('/fonts/Inter-BoldItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url('/fonts/Inter-ExtraBold.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 800;
font-display: swap;
src: url('/fonts/Inter-ExtraBoldItalic.woff2') format('woff2');
}

@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 900;
font-display: swap;
src: url('/fonts/Inter-Black.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 900;
font-display: swap;
src: url('/fonts/Inter-BlackItalic.woff2') format('woff2');
}

html {
font-family: 'Inter', sans-serif;
}
@supports (font-variation-settings: normal) {
/* @supports (font-variation-settings: normal) {
html {
font-family: 'Inter var', sans-serif;
}
}
} */

* {
box-sizing: border-box;
Expand Down

0 comments on commit d9ad6c3

Please sign in to comment.