Skip to content

Commit

Permalink
perf: compress local fonts, swap some to google fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 committed Nov 19, 2024
1 parent f0e5c54 commit 123658c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/>
<meta property="twitter:image" content="/pacstall.svg" />
<meta name="apple-mobile-web-app-title" content="Pacstall" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="darkreader-lock" />
<link rel="shortcut icon" type="image/jpg" href="/favicon.ico" />
Expand Down
2 changes: 1 addition & 1 deletion client/index.production.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta property="twitter:description" content="{{.Description}}" />
<meta property="twitter:image" content="/pacstall.svg" />
<meta name="apple-mobile-web-app-title" content="Pacstall" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" type="image/jpg" href="/favicon.ico" />
<link rel="image_src" href="/pacstall.svg" />
Expand Down
Binary file removed client/public/fonts/FiraCodeNF-Bold.ttf
Binary file not shown.
Binary file added client/public/fonts/FiraCodeNF-Bold.woff2
Binary file not shown.
Binary file removed client/public/fonts/FiraCodeNF-Regular.ttf
Binary file not shown.
Binary file added client/public/fonts/FiraCodeNF-Regular.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions client/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sitemap: https://pacstall.dev/sitemap.xml
25 changes: 13 additions & 12 deletions client/public/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
@import url("https://fonts.cdnfonts.com/css/open-sans");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:[email protected]&display=swap");
@import url("https://fonts.cdnfonts.com/css/titillium-web");
@import url("https://fonts.cdnfonts.com/css/jetbrains-mono");
@import url("https://fonts.cdnfonts.com/css/noto-sans-bengali");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&subset=latin&display=swap");
/* Runes */
@import url('https://fonts.cdnfonts.com/css/catrinity');
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@100;200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:[email protected]&family=Noto+Sans+Bengali:[email protected]&display=swap");

@font-face {
font-family: 'FiraCodeNF';
src: url('../fonts/FiraCodeNF-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-family: 'FiraCodeNF';
src: url('../fonts/FiraCodeNF-Regular.woff2') format('truetype');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'FiraCodeNF';
src: url('../fonts/FiraCodeNF-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
font-family: 'FiraCodeNF';
src: url('../fonts/FiraCodeNF-Bold.woff2') format('woff2');
font-weight: bold;
font-style: normal;
}

button:focus,
Expand Down

0 comments on commit 123658c

Please sign in to comment.