当前位置:首页 > 技术博客 > HTML > 拟态登录html模板

拟态登录html模板

2年前 (2023-08-10)HTML868

一款极简登录页面源码,拟态登录界面模板,该模板灰色立体界面,100%响应,适用于任意网站

<!DOCTYPE html>    
<html>    
<head>    
<meta charset="UTF-8">    
<title>LzxBlog!</title>    
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" />    
<style>
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  background: linear-gradient(to bottom, #f4f4f4, #f1f1f1);
  height: 100vh;
  display: grid;
  font-family: "poppins", Arial, Helvetica, sans-serif;
  place-items: center;
}

a {
  text-decoration: none;
  color: #000;
}


.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f4f4f4;
  width: 100%;
  max-width: 400px;
  padding: 2em;
  border-radius: 20px;
  box-shadow: -40px -40px 80px rgb(255, 255, 255),
    40px 40px 80px rgba(0, 0, 0, 0.25);
}

.card-title {
  font-size: 40px;
  color: #565656;
  align-items: center;
}

.card-subtitle {
  color: #565656;
}

.card-form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  margin: 1.5rem 0 1rem 0;
}

.card-input-container {
  position: relative;
  margin: 0.5rem 0 2rem;
  width: 100%;
}

.card-form label {
  color: #b6b6b6;
}

.card-input-container input::placeholder {
  color: #b6b6b6;
}

.card-input-container input,
.card-button {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 10px;
  font-family: "poppins", Arial, Helvetica, sans-serif;
}

.card-input-container input {
  padding: 1em 2em 1em 4em;
  font-size: 14px;
  color: #b6b6b6;
  background: #f4f4f4;
  box-shadow: -10px -10px 20px rgb(255, 255, 255),
    10px 10px 20px rgba(0, 0, 0, 0.1);
}

.card-input-container input:focus {
  box-shadow: inset -5px -5px 10px rgb(255, 255, 255),
    inset 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.card-button {
  background: #565656;
  padding: 1em;
  color: #f4f4f4;
  cursor: pointer;
  box-shadow: -10px -10px 20px rgb(255, 255, 255),
    10px 10px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}

.card-button:focus,
.card-button:hover {
  box-shadow: inset -5px -5px 10px rgba(255, 255, 255, 0.4),
    inset 5px 5px 10px rgba(0, 0, 0, 0.4);
}

.card-forgot-password {
  text-align: center;
  font-size: 12px;
  color: #b6b6b6;
}

.card-forgot-password a {
  color: #565656;
}
.card-forgot-password a:hover {
  text-decoration: underline;
  cursor: pointer;
}

.card-input-container::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  position: absolute;
  left: 1.3rem;
  top: 0.8rem;
  font-size: 20px;
  color: #b6b6b6;
}

.card-input-container.username::after {
  content: "\f007";
}

.card-input-container.password::after {
  content: "\f023"
}
</style>
</head>    
<body>
<div class="container">    
<div class="card">    
<h1 class="card-title">LzxBlog!</h1>    
<small class="card-subtitle">https://www.liuzhixi.cn</small>    
<form class="card-form">    
<label for="username">用户名</label>    
<div class="card-input-container username">    
<input type="text" placeholder="填写您的用户名" id="username">    
</div>    
<label for="password">密码</label>    
<div class="card-input-container password">    
<input type="password" placeholder="填写您的密码" id="password">    
</div>    
<button class="card-button">登陆</button>    
<small class="card-forgot-password">密码记不起来了 ?  <a href="#">点击这里找回密码</a></small>    
</form>    
</div>    
</div>    
<!-- partial -->    
</body>    
</html>


版权声明:本文由 LzxBlog 发布,如需转载请注明出处。

本文链接:https://www.liuzhixi.cn/html/294.html

相关文章

html通过javascript页面调起APP

html通过javascript页面调起APP

前几天瞎折腾搞了一个影视APP,用网站封装打包的。弄完之后在我网站里加一个打开APP的按钮,但是并没有实现。后来百度了一下,答案真的是花里胡哨啊,作为一个前端开...

产品分类图片列表tab切换特效

产品分类图片列表tab切换特效

jQuery制作简洁的产品分类图片列表tab布局,带标题和分类菜单的图文列表选项卡切换特效。...

卡片式的登录注册表单ui布局

卡片式的登录注册表单ui布局

js css3制作登录/注册框表单动画切换,卡片式的登录和注册表单上下滑动切换布局特效。 下载...

品牌运动鞋服商城HTML5模板

品牌运动鞋服商城HTML5模板

一款多用途的运动鞋,运动服装,体育用品电子商务HTML5模板。可用于时尚、服装、太阳镜、配饰、大型商店、手表、化妆品、衣服、包、包商店、化妆品、手表...

3D炫酷元素周期表源码

3D炫酷元素周期表源码

3D 超炫 化学周期表 可改作信息栏 导航图 以及图片墙! 左键旋转 滚轮缩放 右键移动下载链接: https://pan.baidu.com/s/1aHJI-...

庆祝建党100周年给网站加个喜庆的横幅

庆祝建党100周年给网站加个喜庆的横幅

<style> /*当屏幕分辨率小于1063是就隐藏*/     @media only&nb...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。