mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-04-25 15:36:31 -05:00
Update fonts for new languages
This commit is contained in:
parent
73d8d43d49
commit
0e1ca103c5
|
|
@ -1,3 +1,5 @@
|
|||
@import url('./fonts.css');
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
|
@ -13,23 +15,3 @@ body {
|
|||
.text-shadow {
|
||||
text-shadow: 1px 1px 0 #000;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Splatoon1;
|
||||
src: url("@/assets/fonts/5476b40d543260503fbccbbab305b1f9.woff2") format("woff2"),url("@/assets/fonts/f85b6b75e658c1758ee0b3f2262c9522.woff") format("woff")
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Splatoon1;
|
||||
src: url("@/assets/fonts/0e12b13c359d4803021dc4e17cecc311.woff2") format("woff2"),url("@/assets/fonts/f25982b8ab52a929938cd63f15656ecf.woff") format("woff")
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Splatoon2;
|
||||
src: url("@/assets/fonts/61f6c62eb1065d00c9a2bcf85e090fe4.woff2") format("woff2"),url("@/assets/fonts/b426a8e06ebdfcb82b481ab57922d6b4.woff") format("woff")
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Splatoon2;
|
||||
src: url("@/assets/fonts/eb82d017016045bf998cade4dac1ec22.woff2") format("woff2"),url("@/assets/fonts/b4fab2f6ac35a758f6aeb5b7054ab121.woff") format("woff")
|
||||
}
|
||||
|
|
|
|||
102
src/assets/css/fonts.css
Normal file
102
src/assets/css/fonts.css
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/assets/fonts/Splatoon1-cjk-common.woff
Normal file
BIN
src/assets/fonts/Splatoon1-cjk-common.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1-cjk-common.woff2
Normal file
BIN
src/assets/fonts/Splatoon1-cjk-common.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1-common.woff
Normal file
BIN
src/assets/fonts/Splatoon1-common.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1-common.woff2
Normal file
BIN
src/assets/fonts/Splatoon1-common.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1-symbol-common.woff
Normal file
BIN
src/assets/fonts/Splatoon1-symbol-common.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1-symbol-common.woff2
Normal file
BIN
src/assets/fonts/Splatoon1-symbol-common.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1CHzh-level1.woff
Normal file
BIN
src/assets/fonts/Splatoon1CHzh-level1.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1CHzh-level1.woff2
Normal file
BIN
src/assets/fonts/Splatoon1CHzh-level1.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1CHzh-level2.woff
Normal file
BIN
src/assets/fonts/Splatoon1CHzh-level2.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1CHzh-level2.woff2
Normal file
BIN
src/assets/fonts/Splatoon1CHzh-level2.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1JP-hiragana-katakana.woff
Normal file
BIN
src/assets/fonts/Splatoon1JP-hiragana-katakana.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1JP-hiragana-katakana.woff2
Normal file
BIN
src/assets/fonts/Splatoon1JP-hiragana-katakana.woff2
Normal file
Binary file not shown.
Binary file not shown.
BIN
src/assets/fonts/Splatoon1JP-level1.woff2
Normal file
BIN
src/assets/fonts/Splatoon1JP-level1.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1JP-level2.woff
Normal file
BIN
src/assets/fonts/Splatoon1JP-level2.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1JP-level2.woff2
Normal file
BIN
src/assets/fonts/Splatoon1JP-level2.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1KRko-level1.woff
Normal file
BIN
src/assets/fonts/Splatoon1KRko-level1.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1KRko-level1.woff2
Normal file
BIN
src/assets/fonts/Splatoon1KRko-level1.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1KRko-level2.woff
Normal file
BIN
src/assets/fonts/Splatoon1KRko-level2.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1KRko-level2.woff2
Normal file
BIN
src/assets/fonts/Splatoon1KRko-level2.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1TWzh-level1.woff
Normal file
BIN
src/assets/fonts/Splatoon1TWzh-level1.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1TWzh-level1.woff2
Normal file
BIN
src/assets/fonts/Splatoon1TWzh-level1.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1TWzh-level2.woff
Normal file
BIN
src/assets/fonts/Splatoon1TWzh-level2.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon1TWzh-level2.woff2
Normal file
BIN
src/assets/fonts/Splatoon1TWzh-level2.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2-cjk-common.woff
Normal file
BIN
src/assets/fonts/Splatoon2-cjk-common.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2-cjk-common.woff2
Normal file
BIN
src/assets/fonts/Splatoon2-cjk-common.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2-common.woff
Normal file
BIN
src/assets/fonts/Splatoon2-common.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2-common.woff2
Normal file
BIN
src/assets/fonts/Splatoon2-common.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2-symbol-common.woff
Normal file
BIN
src/assets/fonts/Splatoon2-symbol-common.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2-symbol-common.woff2
Normal file
BIN
src/assets/fonts/Splatoon2-symbol-common.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2CHzh-level1.woff
Normal file
BIN
src/assets/fonts/Splatoon2CHzh-level1.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2CHzh-level1.woff2
Normal file
BIN
src/assets/fonts/Splatoon2CHzh-level1.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2CHzh-level2.woff
Normal file
BIN
src/assets/fonts/Splatoon2CHzh-level2.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2CHzh-level2.woff2
Normal file
BIN
src/assets/fonts/Splatoon2CHzh-level2.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2JP-hiragana-katakana.woff
Normal file
BIN
src/assets/fonts/Splatoon2JP-hiragana-katakana.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2JP-hiragana-katakana.woff2
Normal file
BIN
src/assets/fonts/Splatoon2JP-hiragana-katakana.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2JP-level1.woff
Normal file
BIN
src/assets/fonts/Splatoon2JP-level1.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2JP-level1.woff2
Normal file
BIN
src/assets/fonts/Splatoon2JP-level1.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2JP-level2.woff
Normal file
BIN
src/assets/fonts/Splatoon2JP-level2.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2JP-level2.woff2
Normal file
BIN
src/assets/fonts/Splatoon2JP-level2.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2KRko-level1.woff
Normal file
BIN
src/assets/fonts/Splatoon2KRko-level1.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2KRko-level1.woff2
Normal file
BIN
src/assets/fonts/Splatoon2KRko-level1.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2KRko-level2.woff
Normal file
BIN
src/assets/fonts/Splatoon2KRko-level2.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2KRko-level2.woff2
Normal file
BIN
src/assets/fonts/Splatoon2KRko-level2.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2TWzh-level1.woff
Normal file
BIN
src/assets/fonts/Splatoon2TWzh-level1.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2TWzh-level1.woff2
Normal file
BIN
src/assets/fonts/Splatoon2TWzh-level1.woff2
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2TWzh-level2.woff
Normal file
BIN
src/assets/fonts/Splatoon2TWzh-level2.woff
Normal file
Binary file not shown.
BIN
src/assets/fonts/Splatoon2TWzh-level2.woff2
Normal file
BIN
src/assets/fonts/Splatoon2TWzh-level2.woff2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -32,10 +32,9 @@ export function initializeI18n() {
|
|||
messages: { ...languages },
|
||||
});
|
||||
|
||||
loadLocale();
|
||||
|
||||
// Listen for local storage changes
|
||||
window.addEventListener('storage', reload);
|
||||
reload();
|
||||
}
|
||||
|
||||
return i18n;
|
||||
|
|
@ -44,6 +43,23 @@ export function initializeI18n() {
|
|||
function reload() {
|
||||
i18n.global.locale.value = currentLocale().code;
|
||||
loadLocale();
|
||||
|
||||
switch (currentLocale().code) {
|
||||
case 'zh-CN':
|
||||
document.documentElement.style.setProperty("--font-family-s1", "splatoon1, splatoon1chzh, sans-serif");
|
||||
document.documentElement.style.setProperty("--font-family-s2", "splatoon2, splatoon2chzh, sans-serif");
|
||||
break;
|
||||
|
||||
case 'zh-TW':
|
||||
document.documentElement.style.setProperty("--font-family-s1", "splatoon1, splatoon1twzh, sans-serif");
|
||||
document.documentElement.style.setProperty("--font-family-s2", "splatoon2, splatoon2twzh, sans-serif");
|
||||
break;
|
||||
|
||||
default:
|
||||
document.documentElement.style.setProperty("--font-family-s1", "splatoon1, splatoon1jpja, sans-serif");
|
||||
document.documentElement.style.setProperty("--font-family-s2", "splatoon2, splatoon2jpja, sans-serif");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
async function loadLocale() {
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
fontFamily: {
|
||||
splatoon1: ['Splatoon1', 'sans-serif'],
|
||||
splatoon2: ['Splatoon2', 'sans-serif'],
|
||||
splatoon1: 'var(--font-family-s1)',
|
||||
splatoon2: 'var(--font-family-s2)',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user