feat:新增字体

This commit is contained in:
李想 2025-04-16 16:56:29 +08:00
parent 7c2330039f
commit 46a255476d
6 changed files with 25 additions and 5 deletions

View File

@ -20,3 +20,6 @@ export default {
}, },
}; };
</script> </script>
<style>
@import url('./fonts/font.css');
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

BIN
src/fonts/DingTalk Sans.ttf Normal file

Binary file not shown.

15
src/fonts/font.css Normal file
View 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;
}

View File

@ -2,7 +2,7 @@
<div class="login"> <div class="login">
<section class="system_name">数字农业平台</section> <section class="system_name">数字农业平台</section>
<div class="login_content"> <div class="login_content">
<section class="login_text"></section> <section class="login_text">登录</section>
<div> <div>
<el-form label-position="top"> <el-form label-position="top">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules"> <el-form ref="loginForm" :model="loginForm" :rules="loginRules">
@ -265,15 +265,17 @@ export default {
font-size: 100px; font-size: 100px;
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
font-family: '黑体'; font-family: 'JinBuTi', sans-serif;
transform: skew(-16deg); transform: skew(-12deg);
} }
.login_content { .login_content {
.login_text { .login_text {
margin: 0 auto 60px; margin: 0 auto 60px;
width: 128px; width: 128px;
height: 78px; height: 78px;
background: url('../assets/login/loginText.png') no-repeat; font-family: 'JinBuTi', sans-serif;
font-size: 64px;
color: #fff;
background-size: 100% 100%; background-size: 100% 100%;
} }
padding: 60px 40px; padding: 60px 40px;
@ -302,7 +304,7 @@ export default {
.login_btn { .login_btn {
margin-top: 40px; margin-top: 40px;
span { span {
font-family: '黑体'; font-family: 'Sans';
font-weight: bold; font-weight: bold;
} }
} }