Browse Source

font

release_0.0.1
巴林闲侠 2 years ago
parent
commit
bfba015319
  1. 0
      web/client/assets/fonts/YouSheBiaoTiHei-2.ttf
  2. 3
      web/client/src/index.less
  3. 6
      web/client/src/layout/components/header/index.jsx

0
web/client/fonts/YouSheBiaoTiHei-2.ttf → web/client/assets/fonts/YouSheBiaoTiHei-2.ttf

3
web/client/src/index.less

@ -67,7 +67,8 @@ body {
.semi-portal-inner { .semi-portal-inner {
position: fixed; position: fixed;
} }
@font-face { @font-face {
font-family: 'icomoon'; //这个可以任意取,但是应与后面相对应eg:yxingguang font-family: 'icomoon'; //这个可以任意取,但是应与后面相对应eg:yxingguang
src: url('../fonts/YouSheBiaoTiHei-2.ttf'); src: url('/assets/fonts/YouSheBiaoTiHei-2.ttf');
} }

6
web/client/src/layout/components/header/index.jsx

@ -35,9 +35,9 @@ const Header = (props) => {
style={{ display: "inline-block", width: 280, height: 40 }} style={{ display: "inline-block", width: 280, height: 40 }}
/> />
), ),
// text: ( text: (
// <div style={{fontFamily: "icomoon",color:'#FFFFFF'}}></div> <div style={{ fontFamily: "icomoon", color: '#FFFFFF' }}>运维管理系统</div>
// ), ),
}} }}
footer={ footer={
<> <>

Loading…
Cancel
Save