diff --git a/src/assets/fonts.css b/src/assets/fonts.css new file mode 100644 index 0000000..e026613 --- /dev/null +++ b/src/assets/fonts.css @@ -0,0 +1,138 @@ +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-Bold.woff2') format('woff2'); + font-weight: 700; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-BoldItalic.woff2') format('woff2'); + font-weight: 700; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-ExtraBold.woff2') format('woff2'); + font-weight: 800; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-ExtraBoldItalic.woff2') format('woff2'); + font-weight: 800; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-ExtraLight.woff2') format('woff2'); + font-weight: 200; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-ExtraLightItalic.woff2') format('woff2'); + font-weight: 200; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-Italic.woff2') format('woff2'); + font-weight: 400; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-Light.woff2') format('woff2'); + font-weight: 300; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-LightItalic.woff2') format('woff2'); + font-weight: 300; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-Medium.woff2') format('woff2'); + font-weight: 500; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-MediumItalic.woff2') format('woff2'); + font-weight: 500; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-Regular.woff2') format('woff2'); + font-weight: 400; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-SemiBold.woff2') format('woff2'); + font-weight: 600; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-SemiBoldItalic.woff2') format('woff2'); + font-weight: 600; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-Thin.woff2') format('woff2'); + font-weight: 100; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Maple Mono'; + src: url('https://cdn.passthem.top/fonts/MapleMonoNormal-NF-CN-ThinItalic.woff2') format('woff2'); + font-weight: 100; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: "ZLabsRoundPix 16px M CN"; + src: url('https://cdn.passthem.top/fonts/ZLabsRoundPix_16px_M_CN.ttf.woff2') format('woff2'); + font-display: swap; +} + +:root { + --font-mono: 'Maple Mono NF CN', 'Maple Mono', monospace, var(--font-sans); + --font-sans: 'HarmonyOS Sans SC', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif; +} diff --git a/src/layout/BaseLayout.astro b/src/layout/BaseLayout.astro index ac9b426..61aeb92 100644 --- a/src/layout/BaseLayout.astro +++ b/src/layout/BaseLayout.astro @@ -1,5 +1,6 @@ --- import '../assets/style.css' +import '../assets/fonts.css' interface Props { title?: string diff --git a/src/layout/BoringLayout.astro b/src/layout/BoringLayout.astro index 9f2193e..24ae57b 100644 --- a/src/layout/BoringLayout.astro +++ b/src/layout/BoringLayout.astro @@ -18,20 +18,7 @@ const { title = '小帕的小窝' } = Astro.props