diff --git a/site/theme/static/common.less b/site/theme/static/common.less index fc4ed53ad1..306ec690c1 100644 --- a/site/theme/static/common.less +++ b/site/theme/static/common.less @@ -1,3 +1,21 @@ +@font-face { + font-weight: normal; + font-family: PuHuiTi; + src: url('//at.alicdn.com/t/webfont_6e11e43nfj.woff2') format('woff2'), + url('//at.alicdn.com/t/webfont_6e11e43nfj.woff') format('woff'), + /* chrome、firefox */ url('//at.alicdn.com/t/webfont_6e11e43nfj.ttf') format('truetype'); /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */ + font-display: swap; +} + +@font-face { + font-weight: bold; + font-family: PuHuiTi; + src: url('//at.alicdn.com/t/webfont_exesdog9toj.woff2') format('woff2'), + url('//at.alicdn.com/t/webfont_exesdog9toj.woff') format('woff'), + /* chrome、firefox */ url('//at.alicdn.com/t/webfont_exesdog9toj.ttf') format('truetype'); /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */ + font-display: swap; +} + html { &.rtl { direction: rtl; diff --git a/site/theme/template/Home/Banner/Logo.less b/site/theme/template/Home/Banner/Logo.less index 227c55158e..74cd1d4d78 100644 --- a/site/theme/template/Home/Banner/Logo.less +++ b/site/theme/template/Home/Banner/Logo.less @@ -3,14 +3,14 @@ .home-card-logo { position: relative; display: inline-block; - max-width: 490px; + max-width: 500px; margin: 0 32px; cursor: pointer; .home-card-logo-icon { position: absolute; - top: -35px; - left: 334px; + top: -38px; + left: 339px; display: none; width: 64px; height: 64px; diff --git a/site/theme/template/Home/Banner/Logo.tsx b/site/theme/template/Home/Banner/Logo.tsx index e26bb65f46..a34b9b7fd8 100644 --- a/site/theme/template/Home/Banner/Logo.tsx +++ b/site/theme/template/Home/Banner/Logo.tsx @@ -71,10 +71,10 @@ export default function Logo() { className="home-banner-mini" /> Ant Design