Skip to content

Commit

Permalink
style(Login): 修改登录页背景
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Sep 15, 2020
1 parent 5f649ad commit ddd31df
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions src/views/public/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
<el-row>
<el-col :span="12"
class="wallpaper">
<svg-icon icon-class="banner"
@click.native="redirectToGitHub"
class="banner"></svg-icon>
<div @click="redirectToGitHub">
<svg-icon icon-class="banner"
class="banner"></svg-icon>
<p class="author">
© Awesome Crud Framework By BoBo
</p>
</div>
</el-col>
<el-col :span="12">
<el-form ref="loginForm"
Expand All @@ -20,7 +24,7 @@
auto-complete="on"
label-position="left">
<h5 class="title">
Welcome!
Welcome 🎯
</h5>
<el-form-item prop="username">

Expand Down Expand Up @@ -115,7 +119,8 @@ export default class Login {
}
}
</script>

<style scoped>
</style>
<style rel="stylesheet/scss" lang="scss" scoped>
.login-container {
position: fixed;
Expand All @@ -140,9 +145,33 @@ export default class Login {
position: absolute;
transform: translate(-50%, -50%);
left: 50%;
top: 45%;
top: 40%;
z-index: 20;
}
.author {
background: #ffbebe -webkit-linear-gradient(left, #fff8f8, #fff) 0 0 no-repeat;
background-clip: text;
-webkit-text-fill-color: rgba(255, 255, 255, 0.3);
cursor: pointer;
font-size: 1.5em;
position: absolute;
transform: translate(-50%, -50%);
left: 50%;
width: 100%;
text-align: center;
animation: slideShine 3s infinite;
background-size: 80px;
top: 60%;
z-index: 20;
@keyframes slideShine {
0% {
background-position: 0 0;
}
100% {
background-position: 100% 100%;
}
}
}
}
.login-form {
margin: 0 auto;
Expand Down

0 comments on commit ddd31df

Please sign in to comment.