feat: add opposans fonts through cdn.

This commit is contained in:
Yufan Sheng 2024-06-25 20:45:14 +08:00
parent 244e54c594
commit 2414040c4c
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,27 @@
/**
* OPPO Sans Fonts
*/
@font-face {
font-family: 'OPPOSans';
src:
url(https://cdn.yufan.me/opposans/OPPOSans-Regular.woff2) format('woff2'),
url(https://cdn.yufan.me/opposans/OPPOSans-Regular.ttf) format('truetype');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'OPPOSans';
src:
url(https://cdn.yufan.me/opposans/OPPOSans-Medium.woff2) format('woff2'),
url(https://cdn.yufan.me/opposans/OPPOSans-Medium.ttf) format('truetype');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: 'OPPOSans';
src:
url(https://cdn.yufan.me/opposans/OPPOSans-Bold.woff2) format('woff2'),
url(https://cdn.yufan.me/opposans/OPPOSans-Bold.ttf) format('truetype');
font-weight: 800;
font-style: normal;
}

View File

@ -5,6 +5,7 @@ import '@/assets/styles/iconfont/iconfont.css';
import 'aplayer/dist/APlayer.min.css';
import '@/assets/styles/reset.css';
import '@/assets/styles/globals.css';
import '@/assets/styles/opposans.css';
import Footer from '@/components/footer/Footer.astro';
import Header from '@/components/header/Header.astro';