add web front

This commit is contained in:
DylanWu 2022-05-02 21:59:57 +08:00
parent 28b2114ad5
commit ad4ba4361a
6 changed files with 254 additions and 0 deletions

200
client/css/style.css Normal file
View File

@ -0,0 +1,200 @@
*{
font-family: 'Inter',Arial, Helvetica, sans-serif;
box-sizing: border-box;
margin: 0px;
padding: 0px;
}
*::selection{
background-color: #c7c9ca;
}
body{
background-color: #ecf0f3;
margin: 0px;
padding: 0px;
}
.lead { font-size: 1.5rem; font-weight: 300; }
.container { margin: 150px auto; max-width: 960px; }
.box{
margin: auto;
box-sizing: border-box;
margin-top: 30px;
height:500px;
padding: 80px 40px;
width:340px;
border-radius: 35px;
background-color: #ecf0f3;
box-shadow: -8px -8px 8px #feffff, 8px 8px 8px #161b1d2f;
/* box-shadow: -5px -5px 5px #feffff, 5px 5px 5px #161b1d2f; */
/* box-shadow: inset 5px 5px 5px #cbced1,
inset -5px -5px 5px #ffffff; */
}
/* .box:hover{
box-shadow: inset 5px 5px 5px #cbced1,
inset -5px -5px 5px #ffffff;
} */
.box label{
font-size: 16px;
font-weight: 500;
color:#858686;
/* margin-bottom: 10px; */
}
.box .input-box{
width:100%;
height: 35px;
padding-left: 20px;
border: none;
color:#858686;
margin-top: 10px;
background-color: #ecf0f3;
outline: none;
border-radius: 20px;
box-shadow: inset 5px 5px 5px #cbced1,
inset -5px -5px 5px #ffffff;
}
.box .input-box::placeholder{
color:#9ea0a0;
}
.forget{
margin-top:15px;
}
.forget .fg a{
text-decoration: none;
font-size: 13px;
color:#8f8c8c;
line-height: 24px;
}
.forget .fg{
display: inline-block;
margin-left: 58%;
font-size: 12px;
}
.forget .fg:hover{
text-decoration: underline;
text-decoration-color: #b4b8b8;
}
.forget .checkbox-label{
display:block;
position: relative;
cursor: pointer;
font-size:22px;
line-height: 22px;
}
.label-text{
color:#8f8c8c;
display: inline-block;
/* width: 100%; */
position: absolute;
font-weight: 500;
left:12%;
font-size: 13px;
}
.forget .checkbox-label input{
position: absolute;
opacity: 0;
cursor: pointer;
}
.checkbox-label .checkbox-custom{
position: absolute;
top:0;
left:0px;
height:20px;
width:20px;
background-color: #ecf0f3;
border-radius: 5px;
border: none;
box-shadow:inset 3px 3px 3px #cbced1, inset -3px -3px 3px #ffff;
}
.checkbox-label input:checked ~ .checkbox-custom{
background-color: #ecf0f3;
border-radius: 5px;
-webkit-transform: rotate(0deg) scale(1);
-ms-transform: rotate(0deg) scale(1);
transform:rotate(0deg) scale(1);
opacity: 1;
border:none;
box-shadow: -4px -4px 4px #feffff, 4px 4px 4px #161b1d2f;
}
.checkbox-label .checkbox-custom::after{
position: absolute;
content:"";
left:10px;
top:10px;
height:0px;
width:0px;
border-radius:5px;
border:solid #635f5f;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(0deg) scale(0);
-ms-transform: rotate(0deg) scale(0);
transform: rotate(0deg) scale(0);
opacity:1;
transition: all 0.3s ease-out;
}
.checkbox-label input:checked ~ .checkbox-custom::after {
-webkit-transform: rotate(45deg) scale(1);
-ms-transform: rotate(45deg) scale(1);
transform: rotate(45deg) scale(1);
opacity:1;
left: 7px;
top: 3px;
width: 4px;
height: 8px;
border: solid #635f5f;
border-width: 0 2px 2px 0;
background-color: transparent;
border-radius: 0;
}
.btn{
width:100%;
margin-top: 20px;
height: 38px;
border: none;
outline: none;
border-radius: 20px;
background-color: #727171;
font-size: 16px;
font-weight: 500;
color: #ffffff;
cursor: pointer;
box-shadow: -5px -5px 8px #d8e2e6, 5px 5px 10px #2c313378;
transition: 0.8s;
}
.btn:hover{
background-color: #535658;
box-shadow: inset 5px 5px 10px #05050578,
inset -5px -5px 10px #9e9c9c;
}
.social{
display: flex;
justify-content: center;
margin-top: 14px;
}
.box-radius{
border-radius:50%;
width:40px;
display: block;
height:40px;
margin: 6px;
/* margin-top: 50px; */
background-color: #ecf0f3;
box-shadow: 5px 5px 6px #0d275023,-5px -5px 6px #ffffff;
padding: 11px;
cursor: pointer;
}
.box-radius:hover{
box-shadow: inset 5px 5px 5px #cbced1,
inset -5px -5px 5px #ffffff;
}
.box-radius img{
width: 18px;
margin: auto;
height: 18px;
}
.option{
display: block;
margin-top: 35px;
color: #6c6d6d;
text-align: center;
}

BIN
client/images/fb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
client/images/google.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
client/images/linkedin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
client/images/twitter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

54
client/index.html Normal file
View File

@ -0,0 +1,54 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3d浮雕样式登录页面</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<div class="box">
<form action="#" method="post">
<label for="username">用户名</label></br>
<input type="text" name="uname" id="uname" placeholder="用户名" class="input-box">
</br></br>
<label for="username">密码</label></br>
<input type="password" name="uname" id="uname" placeholder="密码" class="input-box"></br>
<div class="forget">
<label class="checkbox-label">
<input type="checkbox">
<span class="checkbox-custom "></span>
<span class="label-text">记住我</span>
</label>
<span class="fg">
<a href="#"> 忘记密码?</a>
</span>
</div>
<button type="submit" class="btn">登 录</button>
</form>
<span class="option">第三方登录</span>
<div class="social">
<div class="box-radius">
<img src="images/fb.png" alt="">
</div>
<div class="box-radius">
<img src="images/google.png" alt="">
</div>
<div class="box-radius">
<img src="images/linkedin.png" alt="">
</div>
<div class="box-radius">
<img src="images/twitter.png" alt="">
</div>
</div>
</div>
</div>
</body>
</html>