From 202cf77758602a708c696b354a6113222000faae Mon Sep 17 00:00:00 2001 From: philipcheung Date: Sun, 16 Mar 2025 18:25:38 +0800 Subject: [PATCH] update fonts path --- {assets => public}/fonts/MElleHK-Light.OTF | Bin {assets => public}/fonts/MElleHK-Medium.OTF | Bin {assets => public}/fonts/MElleHK-Xbold.otf | Bin .../fonts/NotoSansCJKtc-Black.otf | Bin .../fonts/NotoSansCJKtc-Bold.otf | Bin .../fonts/NotoSansCJKtc-DemiLight.otf | Bin .../fonts/NotoSansCJKtc-Light.otf | Bin .../fonts/NotoSansCJKtc-Medium.otf | Bin .../fonts/NotoSansCJKtc-Regular.otf | Bin .../fonts/NotoSansCJKtc-Thin.otf | Bin .../fonts/NotoSansMonoCJKtc-Bold.otf | Bin .../fonts/NotoSansMonoCJKtc-Regular.otf | Bin .../fonts/NotoSerifCJKjp-Black.otf | Bin src/index.css | 26 +++++++++--------- 14 files changed, 13 insertions(+), 13 deletions(-) rename {assets => public}/fonts/MElleHK-Light.OTF (100%) rename {assets => public}/fonts/MElleHK-Medium.OTF (100%) rename {assets => public}/fonts/MElleHK-Xbold.otf (100%) rename {assets => public}/fonts/NotoSansCJKtc-Black.otf (100%) rename {assets => public}/fonts/NotoSansCJKtc-Bold.otf (100%) rename {assets => public}/fonts/NotoSansCJKtc-DemiLight.otf (100%) rename {assets => public}/fonts/NotoSansCJKtc-Light.otf (100%) rename {assets => public}/fonts/NotoSansCJKtc-Medium.otf (100%) rename {assets => public}/fonts/NotoSansCJKtc-Regular.otf (100%) rename {assets => public}/fonts/NotoSansCJKtc-Thin.otf (100%) rename {assets => public}/fonts/NotoSansMonoCJKtc-Bold.otf (100%) rename {assets => public}/fonts/NotoSansMonoCJKtc-Regular.otf (100%) rename {assets => public}/fonts/NotoSerifCJKjp-Black.otf (100%) diff --git a/assets/fonts/MElleHK-Light.OTF b/public/fonts/MElleHK-Light.OTF similarity index 100% rename from assets/fonts/MElleHK-Light.OTF rename to public/fonts/MElleHK-Light.OTF diff --git a/assets/fonts/MElleHK-Medium.OTF b/public/fonts/MElleHK-Medium.OTF similarity index 100% rename from assets/fonts/MElleHK-Medium.OTF rename to public/fonts/MElleHK-Medium.OTF diff --git a/assets/fonts/MElleHK-Xbold.otf b/public/fonts/MElleHK-Xbold.otf similarity index 100% rename from assets/fonts/MElleHK-Xbold.otf rename to public/fonts/MElleHK-Xbold.otf diff --git a/assets/fonts/NotoSansCJKtc-Black.otf b/public/fonts/NotoSansCJKtc-Black.otf similarity index 100% rename from assets/fonts/NotoSansCJKtc-Black.otf rename to public/fonts/NotoSansCJKtc-Black.otf diff --git a/assets/fonts/NotoSansCJKtc-Bold.otf b/public/fonts/NotoSansCJKtc-Bold.otf similarity index 100% rename from assets/fonts/NotoSansCJKtc-Bold.otf rename to public/fonts/NotoSansCJKtc-Bold.otf diff --git a/assets/fonts/NotoSansCJKtc-DemiLight.otf b/public/fonts/NotoSansCJKtc-DemiLight.otf similarity index 100% rename from assets/fonts/NotoSansCJKtc-DemiLight.otf rename to public/fonts/NotoSansCJKtc-DemiLight.otf diff --git a/assets/fonts/NotoSansCJKtc-Light.otf b/public/fonts/NotoSansCJKtc-Light.otf similarity index 100% rename from assets/fonts/NotoSansCJKtc-Light.otf rename to public/fonts/NotoSansCJKtc-Light.otf diff --git a/assets/fonts/NotoSansCJKtc-Medium.otf b/public/fonts/NotoSansCJKtc-Medium.otf similarity index 100% rename from assets/fonts/NotoSansCJKtc-Medium.otf rename to public/fonts/NotoSansCJKtc-Medium.otf diff --git a/assets/fonts/NotoSansCJKtc-Regular.otf b/public/fonts/NotoSansCJKtc-Regular.otf similarity index 100% rename from assets/fonts/NotoSansCJKtc-Regular.otf rename to public/fonts/NotoSansCJKtc-Regular.otf diff --git a/assets/fonts/NotoSansCJKtc-Thin.otf b/public/fonts/NotoSansCJKtc-Thin.otf similarity index 100% rename from assets/fonts/NotoSansCJKtc-Thin.otf rename to public/fonts/NotoSansCJKtc-Thin.otf diff --git a/assets/fonts/NotoSansMonoCJKtc-Bold.otf b/public/fonts/NotoSansMonoCJKtc-Bold.otf similarity index 100% rename from assets/fonts/NotoSansMonoCJKtc-Bold.otf rename to public/fonts/NotoSansMonoCJKtc-Bold.otf diff --git a/assets/fonts/NotoSansMonoCJKtc-Regular.otf b/public/fonts/NotoSansMonoCJKtc-Regular.otf similarity index 100% rename from assets/fonts/NotoSansMonoCJKtc-Regular.otf rename to public/fonts/NotoSansMonoCJKtc-Regular.otf diff --git a/assets/fonts/NotoSerifCJKjp-Black.otf b/public/fonts/NotoSerifCJKjp-Black.otf similarity index 100% rename from assets/fonts/NotoSerifCJKjp-Black.otf rename to public/fonts/NotoSerifCJKjp-Black.otf diff --git a/src/index.css b/src/index.css index 47d343e..51b895c 100644 --- a/src/index.css +++ b/src/index.css @@ -1,7 +1,7 @@ /* MElleHK Font Family */ @font-face { font-family: 'MElleHK'; - src: url('../assets/fonts/MElleHK-Light.OTF') format('opentype'); + src: url('/fonts/MElleHK-Light.OTF') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; @@ -9,7 +9,7 @@ @font-face { font-family: 'MElleHK'; - src: url('../assets/fonts/MElleHK-Medium.OTF') format('opentype'); + src: url('/fonts/MElleHK-Medium.OTF') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; @@ -17,7 +17,7 @@ @font-face { font-family: 'MElleHK'; - src: url('../assets/fonts/MElleHK-Xbold.otf') format('opentype'); + src: url('/fonts/MElleHK-Xbold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; @@ -26,7 +26,7 @@ /* NotoSansCJKtc Font Family */ @font-face { font-family: 'NotoSansCJKtc'; - src: url('../assets/fonts/NotoSansCJKtc-Thin.otf') format('opentype'); + src: url('/fonts/NotoSansCJKtc-Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; @@ -34,7 +34,7 @@ @font-face { font-family: 'NotoSansCJKtc'; - src: url('../assets/fonts/NotoSansCJKtc-Light.otf') format('opentype'); + src: url('/fonts/NotoSansCJKtc-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; @@ -42,7 +42,7 @@ @font-face { font-family: 'NotoSansCJKtc'; - src: url('../assets/fonts/NotoSansCJKtc-DemiLight.otf') format('opentype'); + src: url('/fonts/NotoSansCJKtc-DemiLight.otf') format('opentype'); font-weight: 350; font-style: normal; font-display: swap; @@ -50,7 +50,7 @@ @font-face { font-family: 'NotoSansCJKtc'; - src: url('../assets/fonts/NotoSansCJKtc-Regular.otf') format('opentype'); + src: url('/fonts/NotoSansCJKtc-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; @@ -58,7 +58,7 @@ @font-face { font-family: 'NotoSansCJKtc'; - src: url('../assets/fonts/NotoSansCJKtc-Medium.otf') format('opentype'); + src: url('/fonts/NotoSansCJKtc-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; @@ -66,7 +66,7 @@ @font-face { font-family: 'NotoSansCJKtc'; - src: url('../assets/fonts/NotoSansCJKtc-Bold.otf') format('opentype'); + src: url('/fonts/NotoSansCJKtc-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; @@ -74,7 +74,7 @@ @font-face { font-family: 'NotoSansCJKtc'; - src: url('../assets/fonts/NotoSansCJKtc-Black.otf') format('opentype'); + src: url('/fonts/NotoSansCJKtc-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; @@ -83,7 +83,7 @@ /* NotoSansMonoCJKtc Font Family */ @font-face { font-family: 'NotoSansMonoCJKtc'; - src: url('../assets/fonts/NotoSansMonoCJKtc-Regular.otf') format('opentype'); + src: url('/fonts/NotoSansMonoCJKtc-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; @@ -91,7 +91,7 @@ @font-face { font-family: 'NotoSansMonoCJKtc'; - src: url('../assets/fonts/NotoSansMonoCJKtc-Bold.otf') format('opentype'); + src: url('/fonts/NotoSansMonoCJKtc-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; @@ -100,7 +100,7 @@ /* NotoSerifCJKjp Font Family */ @font-face { font-family: 'NotoSerifCJKjp'; - src: url('../assets/fonts/NotoSerifCJKjp-Black.otf') format('opentype'); + src: url('/fonts/NotoSerifCJKjp-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap;