react编写的动态换色背景登录注册忘记密码表单效果代码

代码语言:html

所属分类:表单美化

代码描述:react编写的动态换色背景登录注册忘记密码表单效果代码

代码标签: react 登录 表单 注册

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


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
@import url('https://fonts.googleapis.com/css?family=Jura:400');
* {
  font-family: Jura, Arial;
  font-weight: 400;
}

body {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

section#entry-page {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 400px) 1fr;
  grid-template-rows: 1fr minmax(auto, 1fr) 1fr;
  grid-gap: 10px;
  width: 100%;
  height: 100vh;
  background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB);
  background-size: 400% 400%;
  -webkit-animation: Gradient 15s ease infinite;
          animation: Gradient 15s ease infinite;
  box-sizing: border-box;
}
section#entry-page form {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-gap: 10px;
  margin: auto 0;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
}
section#entry-page form h2 {
  margin-bottom: 5px;
  text-align: center;
  text-shadow: 0 4px 16px #fff;
  font-size: 30px;
  font-weight: 100;
}
section#entry-page form fieldset {
  margin: 0;
  background-color: #fff;
  border: none;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
section#entry-page form fieldset legend {
  padding: 5px;
  background-color: #fff;
  border-radius: 5px;
}
section#entry-page form fieldset ul {
  margin: 0;
  padding: 0;
}
section#entry-page form fieldset ul li {
  display: grid;
  align-items: center;
  margin: 10px;
}
section#entry-page form fieldset ul li a {
  color: #02c;
}
section#entry-page form fieldset ul li em {
  grid-column: span 2;
  text-align: center;
  padding: 5px;
}
section#entry-page form fieldset ul li label {
  text-align: left;
  padding-bottom: 2px;
}
section#entry-page form fieldset ul li input {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
section#entry-page form fieldset ul li input:hover {
  border: 1px solid #aaf;
}
section#entry-page form button {
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
section#entry-page form button:hover {
  background-color: #eef;
  border: 1px solid #aaf;
}

@media only screen and (min-width: 420px) {
  form h2 {
    font-size: 40px;
  }
  form fieldset ul li {
    grid-template-columns: 100px 1fr;
  }
  form fieldset ul li label {
    padding-right: 10px;
    padding-bottom: 0;
    text-align: right !important;
  }
}
@-webkit-keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
</style>




</head>

<body >
  <div id="app"></div>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/babel.min.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/react.15.4.2.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/react-dom.15.4.2.js"></script>
   
      <script type="text/babel">
const { Component } = React

class EntryPage extends Component {
  constructor(props){
    super(props)
    this.state = {
      currentView: "signUp".........完整代码请登录后点击上方下载按钮下载查看

网友评论0