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

拟态登录html模板

3年前 (2023-08-10)HTML937

一款极简登录页面源码,拟态登录界面模板,该模板灰色立体界面,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

相关文章

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

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

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

拟物风图标悬停动画特效

拟物风图标悬停动画特效

新拟态风格的--简洁的快捷图标导航ui布局,鼠标悬停图标按钮动画特效。下载链接: https://pan.baidu.com/s/1GfmxV1kSCRmeNk...

web设计互联网公司网站模板

web设计互联网公司网站模板

一款现代化创意的多用途网页设计公司网站HTML模板。使用bootstrap构建,响应式布局。它适用于所有网络代理机构,网页设计公司,网页设计师,数字营销或任何类...

动态罗盘时钟

动态罗盘时钟

原生抖音罗盘时钟代码分享 罗盘文字时钟软件非常火 文字时钟本站给大家分享这款就是通过原生j来s实现的文字时钟源码,有喜欢的朋友可以下载哦下载链接: https:...

蓝色系的个人简历HTML5模板

蓝色系的个人简历HTML5模板

一个简单、现代、富有创意和响应式的个人简历介绍HTML5单页模板。这个模板可用于创意设计师,摄影师,开发人员,或任何职业。它是完全定制的,你可以很容易地改变背景...

bootstraps响应式多用途商业机构类网站模板

bootstraps响应式多用途商业机构类网站模板

简洁大气的jQuery bootstraps响应式多用途商业机构类网站模板,提供4种首页风格下载链接: https://pan.baidu.com/s/15Nv...

发表评论

访客

看不清,换一张

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