div+css实现大气登录注册表单页面代码

代码语言:html

所属分类:表单美化

代码描述:div+css实现大气登录注册表单页面代码

代码标签: div css 大气 登录 注册 表单

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">

  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
<style>
    * {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: "Roboto", sans-serif;
}

.container {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(45deg, #fff 0%, #fff 50%, #4980f9 50%, #4980f9 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

.signup__main {
  background-image: linear-gradient(to top, rgba(0, 35, 69, 0.5), rgba(172, 191, 210, 0.5)), url("//repo.bfw.wiki/bfwrepo/image/637378acda7ec.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 20px;
  padding: 60px 30px;
  position: absolute;
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 60%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.signup__main--heading {
  font-family: "Roboto", sans-serif;
  letter-spacing: 5px;
  font-size: 100px;
  line-height: 1;
  font-weight: 400;
  text-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  position: relative;
  z-index: 100;
  display: inline-block;
}
.signup__main--heading span {
  display: block;
}

.signin__link {
  margin-top: 20px;
  margin-left: 10px;
}
.signin__link-item:link, .signin__link-item:visited {
  color: #fff;
  font-size: 12px;
  letter-spacing: 3px;
  display: inline-block;
  text-transform: uppercase;
}

.signup {
  background-image: linear-gradient(#1b3c68, #1d5195);
  padding: 70px;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 10%;
  right: -10%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  z-index: 50;
}
.signup__close {
  align-self: flex-end;
  color: #b2d6f7;
  font-size: 25px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  right: 30px;
  top: 15px;
}
.signup__form {
  display: flex;
  flex-direction: column;
}
.signup__label {
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 10px;
}
.signup__email, .signup__password {
  border: 0;
  background: transparent;
  padding-bottom: 5px;
  border-bottom: 1px solid #0d5fb5;
  margin-bottom: 30px;
  color: #fff;
}
.signup__email:active, .signup__email:focus, .signup__password:active, .signup__password:focus {
  outline: 0;
}
.signup__email:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0