feat:新增字体
This commit is contained in:
parent
7c2330039f
commit
46a255476d
@ -20,3 +20,6 @@ export default {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
@import url('./fonts/font.css');
|
||||
</style>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.4 KiB |
BIN
src/fonts/DingTalk JinBuTi.ttf
Normal file
BIN
src/fonts/DingTalk JinBuTi.ttf
Normal file
Binary file not shown.
BIN
src/fonts/DingTalk Sans.ttf
Normal file
BIN
src/fonts/DingTalk Sans.ttf
Normal file
Binary file not shown.
15
src/fonts/font.css
Normal file
15
src/fonts/font.css
Normal file
@ -0,0 +1,15 @@
|
||||
@font-face {
|
||||
font-family: 'JinBuTi';
|
||||
/* 自定义字体名称 */
|
||||
src: url('./DingTalk JinBuTi.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Sans';
|
||||
/* 自定义字体名称 */
|
||||
src: url('./DingTalk Sans.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
<div class="login">
|
||||
<section class="system_name">数字农业平台</section>
|
||||
<div class="login_content">
|
||||
<section class="login_text"></section>
|
||||
<section class="login_text">登录</section>
|
||||
<div>
|
||||
<el-form label-position="top">
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules">
|
||||
@ -265,15 +265,17 @@ export default {
|
||||
font-size: 100px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
font-family: '黑体';
|
||||
transform: skew(-16deg);
|
||||
font-family: 'JinBuTi', sans-serif;
|
||||
transform: skew(-12deg);
|
||||
}
|
||||
.login_content {
|
||||
.login_text {
|
||||
margin: 0 auto 60px;
|
||||
width: 128px;
|
||||
height: 78px;
|
||||
background: url('../assets/login/loginText.png') no-repeat;
|
||||
font-family: 'JinBuTi', sans-serif;
|
||||
font-size: 64px;
|
||||
color: #fff;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
padding: 60px 40px;
|
||||
@ -302,7 +304,7 @@ export default {
|
||||
.login_btn {
|
||||
margin-top: 40px;
|
||||
span {
|
||||
font-family: '黑体';
|
||||
font-family: 'Sans';
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user