| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <extend name="Public/layout"/>
- <block name="style">
- <link rel="stylesheet" href="__PUBLIC__/libs/css/particles.css">
- <style type="text/css">
- #particles-js{
- position:absolute;
- top:0;
- left:0;
- right:0;
- bottom:0;
- }
- .background {
- position: absolute;
- right: 0px;
- top: 0px;
- bottom: 0px;
- left: 0px;
- }
- .brand {
- width: 100%;
- margin-bottom: 50px;
- text-align: center;
- }
- .brand a {
- height: 65px;
- font-size: 50px;
- text-align: center;
- }
- .brand a:hover {
- text-decoration: none;
- }
- .brand img.logo {
- width: 100%;
- /*max-height: 100px;*/
- padding: 0 30px;
- text-align: center;
- }
- .panel-lite {
- position:absolute;
- top:0;
- left:0;
- margin: 8% auto;
- max-width: 400px;
- background: #fff;
- padding: 45px 30px;
- border-radius: 4px;
- box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
- position: relative;
- }
- .panel-lite h4 {
- font-weight: 400;
- font-size: 24px;
- text-align: center;
- color: #1685d0;
- margin: 20px auto 35px;
- }
- .panel-lite a.link {
- display: inline-block;
- margin-top: 25px;
- text-decoration: none;
- color: #1685d0;
- font-size: 14px;
- }
- .form-group {
- position: relative;
- font-size: 15px;
- color: #666;
- }
- .form-group + .form-group {
- margin-top: 30px;
- }
- .form-group .form-label {
- position: absolute;
- z-index: 1;
- left: 0;
- top: 5px;
- -webkit-transition: 0.3s;
- transition: 0.3s;
- }
- .form-group .form-control {
- width: 100%;
- position: relative;
- z-index: 3;
- height: 35px;
- background: none;
- border: none;
- padding: 5px 0;
- -webkit-transition: 0.3s;
- transition: 0.3s;
- border-bottom: 1px solid #777;
- box-shadow: none;
- border-radius: 0;
- }
- .form-group .form-control:invalid {
- outline: none;
- }
- .form-group .form-control:focus, .form-group .form-control:valid {
- outline: none;
- color: #1685d0;
- -ms-box-shadow:0 0 0px 1000px white inset;
- -webkit-box-shadow: 0 0 0px 1000px white inset;
- box-shadow:0 0 0px 1000px white inset;
- border-color: #1685d0;
- }
- .form-group .form-control:focus + .form-label,
- .form-group .form-control:valid + .form-label {
- font-size: 12px;
- -ms-transform: translateY(-25px);
- -webkit-transform: translateY(-25px);
- transform: translateY(-25px);
- }
- .floating-btn {
- background: #1685d0;
- width: 60px;
- height: 60px;
- border-radius: 50%;
- color: #fff;
- font-size: 32px;
- border: none;
- position: absolute;
- margin: auto;
- -webkit-transition: 0.3s;
- transition: 0.3s;
- box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.3) inset;
- margin: auto;
- right: -30px;
- bottom: 90px;
- cursor: pointer;
- }
- .floating-btn:hover {
- box-shadow: 0 0 0 rgba(0, 0, 0, 0.3) inset, 0 3px 6px rgba(0, 0, 0, 0.16), 0 5px 11px rgba(0, 0, 0, 0.23);
- }
- .floating-btn:hover .icon-arrow {
- -ms-transform: rotate(45deg) scale(1.2);
- -webkit-transform: rotate(45deg) scale(1.2);
- transform: rotate(45deg) scale(1.2);
- }
- .floating-btn:focus, .floating-btn:active {
- outline: none;
- }
- .icon-arrow {
- position: relative;
- width: 13px;
- height: 13px;
- border-right: 3px solid #fff;
- border-top: 3px solid #fff;
- display: block;
- -ms-transform: rotate(45deg);
- -webkit-transform: rotate(45deg);
- transform: rotate(45deg);
- margin: auto;
- -webkit-transition: 0.3s;
- transition: 0.3s;
- }
- .icon-arrow:after {
- content: '';
- position: absolute;
- width: 18px;
- height: 3px;
- background: #fff;
- left: -5px;
- top: 5px;
- -ms-transform: rotate(-45deg);
- -webkit-transform: rotate(-45deg);
- transform: rotate(-45deg);
- }
- .verifyimg-box {
- padding: 0;
- border: 0;
- }
- .verifyimg-box .verifyimg {
- cursor: pointer;
- width: 130px;
- height: 41px;
- margin-top: -6px;
- border-bottom: 1px solid #777;
- }
- @media (max-width: 768px) {
- .background {
- display: none;
- }
- .panel-lite {
- box-shadow: none;
- border-color: #fff;
- }
- }
- </style>
- </block>
- <block name="full-header"></block>
- <block name="full-container">
- <!-- 背景 -->
- <div id="particles-js">
- <div class="background">
- <!-- 登陆框 -->
- <div class="panel-lite">
- <div class="brand">
- <php>if(C('WEB_SITE_LOGO')):</php>
- <a href="{:C('HOME_PAGE')}" target="_blank">
- <img alt="logo" class="logo img-responsive" src="{$Think.config.WEB_SITE_LOGO|get_cover}">
- </a>
- <php>else:</php>
- <a href="{:C('HOME_PAGE')}" target="_blank">
- {:C('LOGO_DEFAULT')}
- </a>
- <php>endif;</php>
- </div>
- <form class="login-form" action="{:U('Admin/Public/login')}" method="post">
- <div class="form-group">
- <input type="text" required="required" class="form-control" name="username" autocomplete="off">
- <label class="form-label">账 号</label>
- </div>
- <div class="form-group">
- <input type="password" required="required" class="form-control" name="password">
- <label class="form-label">密 码</label>
- </div>
- <div class="form-group">
- <a type="submit" class="visible-xs btn btn-primary-outline btn-block btn-pill btn-lg ajax-post" target-form="login-form">登录</a>
- </div>
- <button type="submit" class="floating-btn ajax-post hidden-xs" target-form="login-form">
- <i class="icon-arrow"></i>
- </button>
- </form>
- </div>
- </div>
- </div>
- <script type="text/javascript" src="__PUBLIC__/libs/js/particles-config.js"></script>
- </block>
|