Skip to content

Commit

Permalink
feat: 注册页面
Browse files Browse the repository at this point in the history
  • Loading branch information
422066139 committed Nov 10, 2020
1 parent 756fa6e commit d5e2474
Showing 1 changed file with 65 additions and 3 deletions.
68 changes: 65 additions & 3 deletions src/pages/Register.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<template>
<div class="register">
123
</div>
<div class="box">
<h1 id="header">纯享博客注册页面</h1>
<div class="user_name">
<input type="text" required />
<label>
<span>Username</span>
</label>
</div>
</div>
</div>

</template>

Expand All @@ -12,8 +20,62 @@ export default {};
<style scoped>
.register{
height:100%;
background-color: #1D8ce0;
width: 100%;
background-color: #9966FF;
float:left;
}
.box{
background-color: azure;
width: 30%;
height: 40%;
top: 25%;
margin: auto;
position: relative;
border: 1px solid;
border-radius: 10px;
}
#header{
text-align: center;
margin-top: 10px ;
}
.user_name{
   width: 50%;
height: 50vh;
margin: auto;
position: relative;
font-family: Sans-serif;
}
.user_name input{
height: 2rem;
width: 10rem;
border: none;
border-bottom: 0.1rem solid black;
padding-top:1rem ;
outline: none;
}
.user_name label{
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
.user_name label span{
position: absolute;
bottom: -3rem;
left: 0;
transition: all 0.3s ease;
}
.user_name ::after{
content:"";
height: 3rem;
width: 10rem;
top: 0;
left: 0;
border-bottom: 0.2rem solid #1cb9b6;
transform: translateX(-100%);
transition:all 0.3s ease;
}
</style>

0 comments on commit d5e2474

Please sign in to comment.