mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(web): Inter font (#1133)
This commit is contained in:
parent
664e5413b6
commit
779383e2a4
4 changed files with 5 additions and 4 deletions
|
@ -11,7 +11,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#141415" />
|
<meta name="theme-color" content="#141415" />
|
||||||
<meta name="description" content="autobrr" />
|
<meta name="description" content="autobrr" />
|
||||||
<link rel="preload" href="/Inter.var.woff2" as="font" type="font/woff2" crossorigin="use-credentials">
|
<link rel="preload" href="/Inter-Variable.woff2" as="font" type="font/woff2" crossorigin="use-credentials">
|
||||||
<link rel="apple-touch-icon" href="/logo192.png" />
|
<link rel="apple-touch-icon" href="/logo192.png" />
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon-iphone-60x60.png" />
|
<link rel="apple-touch-icon" href="/apple-touch-icon-iphone-60x60.png" />
|
||||||
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-ipad-76x76.png" />
|
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-ipad-76x76.png" />
|
||||||
|
@ -25,12 +25,13 @@
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 100 900;
|
font-weight: 100 900;
|
||||||
font-display: block;
|
font-display: block;
|
||||||
|
font-feature-settings: "calt" 0;
|
||||||
src:
|
src:
|
||||||
local("Inter Var"), local("Inter Variable"),
|
local("Inter Var"), local("Inter Variable"),
|
||||||
local("Inter var"), local("Inter variable"),
|
local("Inter var"), local("Inter variable"),
|
||||||
local("InterVar"), local("InterVariable"),
|
local("InterVar"), local("InterVariable"),
|
||||||
local("Inter"),
|
local("Inter"),
|
||||||
url("/Inter.var.woff2") format("woff2");
|
url("/Inter-Variable.woff2") format("woff2");
|
||||||
}
|
}
|
||||||
:root {
|
:root {
|
||||||
font-family: "Inter Var", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
font-family: "Inter Var", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
||||||
|
@ -54,4 +55,4 @@
|
||||||
<div id="root" class="pattern"></div>
|
<div id="root" class="pattern"></div>
|
||||||
<script type="module" src="./src/index.tsx"></script>
|
<script type="module" src="./src/index.tsx"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
BIN
web/public/Inter-Variable.woff2
Normal file
BIN
web/public/Inter-Variable.woff2
Normal file
Binary file not shown.
Binary file not shown.
|
@ -106,7 +106,7 @@ export default ({ mode }: ConfigEnv) => {
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
assetFileNames: (chunkInfo: PreRenderedAsset) => {
|
assetFileNames: (chunkInfo: PreRenderedAsset) => {
|
||||||
if (chunkInfo.name === "Inter.var.woff2") {
|
if (chunkInfo.name === "Inter-Variable.woff2") {
|
||||||
return "assets/[name][extname]";
|
return "assets/[name][extname]";
|
||||||
}
|
}
|
||||||
return "assets/[name]-[hash][extname]";
|
return "assets/[name]-[hash][extname]";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue