Skip to content
Snippets Groups Projects
Commit 61e25320 authored by Yibo Zhu's avatar Yibo Zhu
Browse files

edit

parent 761a4455
No related branches found
No related tags found
3 merge requests!20Five pages index controller,!19Five pages index controller,!1Dev
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #1f1f47;
overflow: hidden;
}
.wrapper{
position: relative;
width: 400px;
height: 450px;
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 20px;
display: flex;
justify-content: center;
align-items: center;
}
h2{
color: #666;
text-align: center;
font-size: 2em;
}
.input-box{
position: relative;
width: 220px;
margin: 30px 0;
border-bottom: 2px solid #fff;
}
.input-box label{
position: absolute;
top: -100%;
left: 5px;
transform: translateY();
font-size: 1em;
pointer-events: none;
color: #fff;
}
button{
width: 100%;
height: 45px;
background: #fa709a;
border: none;
outline: none;
border-radius: 40px;
cursor: pointer;
font-size: 1em;
color: #fff;
font-weight: 400;
}
.register-link{
text-align: center;
color: #fff;
}
.register-link a{
color: #fff;
}
\ No newline at end of file
......@@ -3,8 +3,27 @@
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="../static/css/style.css">
</head>
<body>
<div class="blob"></div>
<div class="wrapper">
<form action="">
<h2>Homepage</h2>
<div class="input-box">
<input type="email" required>
<label for="">登录邮箱</label>
</div>
<div class="input-box">
<input type="password" required>
<label for="">输入密码</label>
</div>
<button type="submit">log in</button>
<div class="register-link">
<p>还没有账号?<a href="register.html">点击注册</a></p>
</div>
</form>
</div>
</body>
</html>
\ No newline at end of file
......@@ -3,8 +3,26 @@
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="../static/css/style.css">
</head>
<body>
<div class="blob"></div>
<div class="wrapper">
<form action="">
<h2>Register</h2>
<div class="input-box">
<input type="email" required>
<label for="">登录邮箱</label>
</div>
<div class="input-box">
<input type="password" required>
<label for="">输入密码</label>
</div>
<div class="input-box">
<input type="password" required>
<label for="">确认密码</label>
</div>
</form>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment