From 189ef9ef816d60fab71c0a12cdaaad245c988f37 Mon Sep 17 00:00:00 2001 From: Blaster4385 Date: Wed, 15 May 2024 21:55:42 +0530 Subject: refactor: switched to local fonts --- client/index.html | 10 ---- .../fonts/JetBrainsMono-VariableFont_wght.ttf | Bin 0 -> 187860 bytes .../assets/fonts/JetBrains_Mono_latin-ext.woff2 | Bin 0 -> 14472 bytes .../public/assets/fonts/JetBrains_Mono_latin.woff2 | Bin 0 -> 39912 bytes .../assets/fonts/Poppins_latin-ext_400.woff2 | Bin 0 -> 5552 bytes .../assets/fonts/Poppins_latin-ext_700.woff2 | Bin 0 -> 5400 bytes client/public/assets/fonts/Poppins_latin_400.woff2 | Bin 0 -> 7884 bytes client/public/assets/fonts/Poppins_latin_700.woff2 | Bin 0 -> 7816 bytes client/src/fonts.css | 54 +++++++++++++++++++++ client/src/index.css | 1 + 10 files changed, 55 insertions(+), 10 deletions(-) create mode 100644 client/public/assets/fonts/JetBrainsMono-VariableFont_wght.ttf create mode 100644 client/public/assets/fonts/JetBrains_Mono_latin-ext.woff2 create mode 100644 client/public/assets/fonts/JetBrains_Mono_latin.woff2 create mode 100644 client/public/assets/fonts/Poppins_latin-ext_400.woff2 create mode 100644 client/public/assets/fonts/Poppins_latin-ext_700.woff2 create mode 100644 client/public/assets/fonts/Poppins_latin_400.woff2 create mode 100644 client/public/assets/fonts/Poppins_latin_700.woff2 create mode 100644 client/src/fonts.css diff --git a/client/index.html b/client/index.html index 95f14b3..fcc3be0 100644 --- a/client/index.html +++ b/client/index.html @@ -3,16 +3,6 @@ - - - Minibin diff --git a/client/public/assets/fonts/JetBrainsMono-VariableFont_wght.ttf b/client/public/assets/fonts/JetBrainsMono-VariableFont_wght.ttf new file mode 100644 index 0000000..d73994a Binary files /dev/null and b/client/public/assets/fonts/JetBrainsMono-VariableFont_wght.ttf differ diff --git a/client/public/assets/fonts/JetBrains_Mono_latin-ext.woff2 b/client/public/assets/fonts/JetBrains_Mono_latin-ext.woff2 new file mode 100644 index 0000000..06b0c9e Binary files /dev/null and b/client/public/assets/fonts/JetBrains_Mono_latin-ext.woff2 differ diff --git a/client/public/assets/fonts/JetBrains_Mono_latin.woff2 b/client/public/assets/fonts/JetBrains_Mono_latin.woff2 new file mode 100644 index 0000000..9d41658 Binary files /dev/null and b/client/public/assets/fonts/JetBrains_Mono_latin.woff2 differ diff --git a/client/public/assets/fonts/Poppins_latin-ext_400.woff2 b/client/public/assets/fonts/Poppins_latin-ext_400.woff2 new file mode 100644 index 0000000..8f4fcbf Binary files /dev/null and b/client/public/assets/fonts/Poppins_latin-ext_400.woff2 differ diff --git a/client/public/assets/fonts/Poppins_latin-ext_700.woff2 b/client/public/assets/fonts/Poppins_latin-ext_700.woff2 new file mode 100644 index 0000000..4c0521e Binary files /dev/null and b/client/public/assets/fonts/Poppins_latin-ext_700.woff2 differ diff --git a/client/public/assets/fonts/Poppins_latin_400.woff2 b/client/public/assets/fonts/Poppins_latin_400.woff2 new file mode 100644 index 0000000..b69e009 Binary files /dev/null and b/client/public/assets/fonts/Poppins_latin_400.woff2 differ diff --git a/client/public/assets/fonts/Poppins_latin_700.woff2 b/client/public/assets/fonts/Poppins_latin_700.woff2 new file mode 100644 index 0000000..bf022fc Binary files /dev/null and b/client/public/assets/fonts/Poppins_latin_700.woff2 differ diff --git a/client/src/fonts.css b/client/src/fonts.css new file mode 100644 index 0000000..ee853c6 --- /dev/null +++ b/client/src/fonts.css @@ -0,0 +1,54 @@ + /* latin-ext */ + @font-face { + font-family: 'JetBrains Mono'; + font-style: normal; + font-weight: 100 800; + font-display: swap; + src: url(/assets/fonts/JetBrains_Mono_latin-ext.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; + } + /* latin */ + @font-face { + font-family: 'JetBrains Mono'; + font-style: normal; + font-weight: 100 800; + font-display: swap; + src: url(/assets/fonts/JetBrains_Mono_latin.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + } + /* latin-ext */ + @font-face { + font-family: 'Poppins'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url(/assets/fonts/Poppins_latin-ext_400.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; + } + /* latin */ + @font-face { + font-family: 'Poppins'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url(/assets/fonts/Poppins_latin_400.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + } + /* latin-ext */ + @font-face { + font-family: 'Poppins'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url(/assets/fonts/Poppins_latin-ext_700.woff2) format('woff2'); + unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; + } + /* latin */ + @font-face { + font-family: 'Poppins'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url(/assets/fonts/Poppins_latin_700.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + } \ No newline at end of file diff --git a/client/src/index.css b/client/src/index.css index 2c7597e..7af7de2 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -1,4 +1,5 @@ @import url(variables.css); +@import url(fonts.css); :root { font-family: "Poppins", sans-serif; line-height: 1.5; -- cgit v1.2.3-73-gaa49b