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小時內與您取得聯系。