react+axios实现商务风格登录表单页面代码

代码语言:html

所属分类:表单美化

代码描述:react+axios实现商务风格登录表单页面代码

代码标签: react axios 登录

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


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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
body{
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", Helvetica, Arial, sans-serif;
  font-weight:  300;  
  height:  100vh; 
  width:  100vw;
  margin:  0 0; 
  display:  flex; 
  align-items:  center; 
  justify-content: center; 
  background:  #f3f2f2; 
}
.App{
   display: flex;
 
    flex-direction: row;
    width: auto;
    height: auto;
    margin: auto auto;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0px 2px 6px -1px rgba(0, 0, 0, 0.12);
}
h2{
  font-size:  24px; 
  font-weight:  600; 
  margin-bottom:  20px;
  color:  rgba(0, 0, 0, 0.5)
}
h2 span{ 
  font-size:  24px;
  color:  rgba(0, 0, 0, 1);
  font-weight:  700; 
}
p{
  line-height:  155%; 
    margin-bottom:  5px; 
    font-size:  14px; 
    color:  #000; 
    opacity:  .65;
    font-weight:  400; 
    max-width:  210px; 
    margin-bottom:  40px; 
}
.left{
  width: 220px;
  height: auto;
  min-height: 100%;
  position: relative;
  background-image: url('//repo.bfw.wiki/bfwrepo/image/615cf7a3d9d92.png');
  background-size: cover;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.right{
  padding: 40px 30px;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 20px;
  width: 300px;
}
input{
  width: calc(100% - 44px);
  margin-left: auto;
  display: flex;
  font-size: 16px;
  padding: 20px 0px;
  height: 56px;
  border: none;
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
  background: #fff;
  width: 280px;
  box-sizing: border-box;
  transition: all .3s linear;
  color: #000;
  font-weight: 400;
  -webkit-appearance: none;
  outline:none;
  margin-bottom: 10px;
}
button{
  -webkit-appearance: none;
  width: auto;
  min-width: 100px;
  border-radius: 24px;
  text-align: center;
  padding: 15px 40px;
  margin-top: 5px;
  background-color: #b08bf8;
  color: #fff;
  font-size: 14px;
  margin-left: auto;
  font-weight: 500;
  box-shadow: 0px 2px 6px -1px rgba(0, 0, 0, 0.13);
  border: none;
  transition: all .3s ease;
  outline: 0;
  float: right;
}
</style>




</head>

<body>
  <div id="root"></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/javascript" src="//repo.bfw.wiki/bfwrepo/js/axios.........完整代码请登录后点击上方下载按钮下载查看

网友评论0