tml:
<!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>登录效果</title>
<link href="../css/20240317.css" rel="stylesheet">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<div class="wrapper">
<form action="#" method="post">
<h1>Login</h1>
<div class="input-box">
<input type="text" placeholder="Username" required>
<i class="bx bxs-user"></i>
</div>
<div class="input-box">
<input type="password" placeholder="Password" required>
<i class="bx bxs-lock-alt"></i>
</div>
<div class="remeber-forgot">
<label >
<input type="checkbox"> Remeber me
</label>
<a href="#">Forgot Password?</a>
</div>
<button type="submit" class="btn">Login</button>
<div class="register-link">
<p>Dot't have an account? <a href="#">Register</a></p>
</div>
</form>
</div>
</body>
</html>
Css:
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap");
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: url(../html/image/20240317/login_bg1.jpg);
background-size: cover;
background-position: center;
}
.wrapper{
width: 420px;
background: transparent;
border: 2px solid rgba(255, 255, 255, .2);
color: #fff;
border-radius: 10px;
padding: 30px 40px;
backdrop-filter: blur(20px);
box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}
.wrapper h1{
font-size: 36px;
text-align: center;
}
.wrapper .input-box{
position: relative;
width: 100%;
height: 50px;
margin: 30px 0;
}
.input-box input{
width: 100%;
height: 100%;
background: transparent;
border: none;
outline: none;
border: 2px solid rgba(255, 255, 255, .2);
border-radius: 40px;
font-size: 16px;
color: #fff;
padding: 20px 45px 20px 20px;
}
.input-box input::placeholder{
color: #fff;
}
.input-box i {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
font-size: 20px;
}
.wrapper .remeber-forgot{
display: flex;
justify-content: space-between;
font-size: 15px;
margin: -15px 0 15px;
}
.remeber-forgot label input{
accent-color: #fff;
margin-right: 3px;
}
.remeber-forgot a{
color: #fff;
text-decoration: none;
}
.remeber-forgot a:hover{
text-decoration: underline;
}
.wrapper .btn{
width: 100%;
height: 45px;
background: #fff;
border: none;
outline: none;
border-radius: 40px;
font-size: 16px;
box-shadow: 0 0 10px rgba(0, 0, 0, .1);
cursor: pointer;
color: #333;
font-weight: 600;
}
.wrapper .register-link{
font-size: 15px;
text-align: center;
margin-top: 20px;
color: #a66ca9;
}
.register-link p a{
color: #a66ca9;
text-decoration: none;
font-weight: 600;
}
.register-link p a:hover{
text-decoration: underline;
}
效果:
登录界面
端实际工作不是做炫酷的特效,炫酷的特效只是锻炼开发者的,而工作实际其实往往用不到多少,比如公司的网站页面、登陆界面,网站界面如何设计,还有前后端交互等!
下面我截了几个我这几天写的前端界面图,看看自己有需要的没,这几个版本文件和上面的球体旋转特效源码已经上传群文件了250777811,有需要的可以申请下载。
1、公司网站的首页模板文件,首页网页文件,包括了CSS和images资源文件,Div+CSS布局,美工不好的可拿去应急。
2、HTML格式用户登录界面,一看就是很个性的风格,像是用绳子吊了一个手机的样子,这个模板是早几年设计的,若对HTML5比较熟悉,可轻松修改成HTML5的登录模板使用在手机上,界面效果如截图所示
四个模板项目源码已经上传HTML5进阶群250777811,有需要的可以直接下载!只要想学习前端的都可以进来,不过你是大佬还是刚开始学习的。
3、一套国内流行的网站后台模板+登录窗口,网站风格漂亮,HTML格式的模板,是从国内一款CMS系统中整现出来的,包括左侧菜单、管理员登录表单、文章列表、图像资源等,还有完整的JS文件、images和Css文件,用时候下载看示例就可。
4、163邮箱风格的后台管理界面模板下载,当然作邮箱系统的用户操作界面最合适了,不过做邮箱的站长很少吧,所以本界面模板经过简单修改就可用于各种网站的用户中心、网站控制台等处了,是一个清新的网站后台管理界面模板
如果帮助了你,可以关注【悟空前端】头条号,每天提供前端干货!
*请认真填写需求信息,我们会在24小时内与您取得联系。