diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 6e91035d0..0c22b08e0 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -42,7 +42,7 @@ class AccountController < ApplicationController redirect_to user_path(User.current) end else - render :layout => 'login' + render :layout => 'login_bigdata' end else authenticate_user diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index 6061066d6..172a23d11 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -1,6 +1,3 @@ -<%= stylesheet_link_tag 'css/common'%> -<%= stylesheet_link_tag 'css/public'%> - -
+
-<%# 注册 %> -
-
- + + + diff --git a/app/views/layouts/_bigdata_footer.html.erb b/app/views/layouts/_bigdata_footer.html.erb new file mode 100644 index 000000000..d2930d49e --- /dev/null +++ b/app/views/layouts/_bigdata_footer.html.erb @@ -0,0 +1,10 @@ +
+ +
\ No newline at end of file diff --git a/app/views/layouts/_bigdata_header.html.erb b/app/views/layouts/_bigdata_header.html.erb new file mode 100644 index 000000000..060352bd8 --- /dev/null +++ b/app/views/layouts/_bigdata_header.html.erb @@ -0,0 +1,45 @@ +
+ + 注册 + 登录 + + <%= link_to "问吧", forums_path, :class =>"fr new-nav-a mr10", :target => "_blank" %> +
+ + \ No newline at end of file diff --git a/app/views/layouts/login_bigdata.html.erb b/app/views/layouts/login_bigdata.html.erb new file mode 100644 index 000000000..411ce4b9b --- /dev/null +++ b/app/views/layouts/login_bigdata.html.erb @@ -0,0 +1,22 @@ + + + + + <%= h html_title %> + + + <%= csrf_meta_tag %> + <%= favicon %> + <%= stylesheet_link_tag 'css/login' %> + <%#= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> + <%= javascript_heads %> + <%= javascript_include_tag "bootstrap" %> + + +
+ <%= render :partial => 'layouts/bigdata_header' %> +
+<%= yield %> +<%= render :partial => 'layouts/bigdata_footer' %> + + \ No newline at end of file diff --git a/public/images/bigdata/QQ图片20170120082008.png b/public/images/bigdata/QQ图片20170120082008.png new file mode 100644 index 000000000..a633ccd92 Binary files /dev/null and b/public/images/bigdata/QQ图片20170120082008.png differ diff --git a/public/images/bigdata/banner01.png b/public/images/bigdata/banner01.png new file mode 100644 index 000000000..757d14c68 Binary files /dev/null and b/public/images/bigdata/banner01.png differ diff --git a/public/images/bigdata/banner03.png b/public/images/bigdata/banner03.png new file mode 100644 index 000000000..39765b54b Binary files /dev/null and b/public/images/bigdata/banner03.png differ diff --git a/public/images/bigdata/banner04.png b/public/images/bigdata/banner04.png new file mode 100644 index 000000000..532c33515 Binary files /dev/null and b/public/images/bigdata/banner04.png differ diff --git a/public/images/bigdata/banner05.png b/public/images/bigdata/banner05.png new file mode 100644 index 000000000..07c835b18 Binary files /dev/null and b/public/images/bigdata/banner05.png differ diff --git a/public/images/bigdata/banner06.png b/public/images/bigdata/banner06.png new file mode 100644 index 000000000..825016648 Binary files /dev/null and b/public/images/bigdata/banner06.png differ diff --git a/public/images/bigdata/new-logo.png b/public/images/bigdata/new-logo.png new file mode 100644 index 000000000..1c060b63a Binary files /dev/null and b/public/images/bigdata/new-logo.png differ diff --git a/public/images/bigdata/slider-bg-1.jpg b/public/images/bigdata/slider-bg-1.jpg new file mode 100644 index 000000000..01ca17ce2 Binary files /dev/null and b/public/images/bigdata/slider-bg-1.jpg differ diff --git a/public/images/bigdata/trustie_QR.jpg b/public/images/bigdata/trustie_QR.jpg new file mode 100644 index 000000000..2b0c38f8b Binary files /dev/null and b/public/images/bigdata/trustie_QR.jpg differ diff --git a/public/stylesheets/css/login.css b/public/stylesheets/css/login.css new file mode 100644 index 000000000..ed2d726eb --- /dev/null +++ b/public/stylesheets/css/login.css @@ -0,0 +1,89 @@ +body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{ margin:0; padding:0;} +body,table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:12px;line-height:1.9; background:#fff;} +div,img,tr,td,table{ border:0;} +table,tr,td{border:0;cellspacing:0; cellpadding:0;} +ol,ul,li{ list-style-type:none} +a:link,a:visited{color:#333;text-decoration:none;} +a:hover,a:active{color:#026434;} +/* 公共 */ +.clear:after {content:".";height:0;visibility:hidden;display:block;clear:both;} +.fl{ float:left;} +.fr{ float:right;} +.cl{ clear:both; overflow:hidden;} +.mt5{ margin-top:5px;} +.mt10{ margin-top:10px;} +.mt20{ margin-top:20px;} +.mt30{ margin-top:30px;} +.mb5{ margin-bottom:5px;} +.mb10{ margin-bottom:10px;} +.ml5{ margin-left:5px;} +.ml10{ margin-left:10px;} +.ml15{ margin-left:15px;} +.ml30{margin-left: 30px;} +.ml50{margin-left: 50px;} +.mr5{ margin-right:5px;} +.mr10{ margin-right:15px;} +.mr15{ margin-right:10px;} +.mr45{ margin-right:45px;} +.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden} +.clearfix{clear:both;zoom:1} +a.new-btn{display: inline-block;border:none; padding:0 10px;color: #666;background: #e1e1e1; text-align:center;font-size: 12px; height: 30px;border-radius: 3px; line-height: 30px;} +a.new-btn:hover{background: #c3c3c3; color: #333;} +a.new-btn-green{background: #60b25e; color: #fff;} +a.new-btn-green:hover{background: #51a74f; color: #fff;} +a.new-bigbtn{display: inline-block;border:none; padding:2px 30px;color: #666;background: #e1e1e1; text-align:center;font-size: 14px; height: 30px;line-height: 30px; border-radius: 3px;} +a:hover.new-bigbtn{background: #c3c3c3; color: #333;} +a.new-bigbtn-green{background: #60b25e; color: #fff;} +a.new-bigbtn-green:hover{background: #51a74f; color: #fff;} +/* 头部 */ +.header{ width:100%; height:51px;background:#fff; } +.header_con{ width:1200px; height:50px; margin:0 auto; } +.new-logo img{ width: 45px; height: 45px; margin-top:3px;} +.new-logo p{ font-size: 18px; color:#333; line-height: 50px; } +a.new-nav-a{ display: block; font-size: 14px; line-height: 50px;} +input.new-search{border-radius:3px; width:200px; height:30px; margin-top: 10px; padding:0 5px; border-style: none;box-shadow: 0px 1px 2px #ccc inset,0px 1px 0px #eee; border: solid 1px #ccc;} +/* 登录注册 */ +.new_login{ width:100%; height:450px;background:url(/images/bigdata/slider-bg-1.jpg) 0 0 no-repeat;} +.new_login_con{ width:1200px; height:450px; margin:0 auto; } +.new_login_box{background:#FFF;width:265px; padding:20px 15px; border-radius:5px; background-color: rgba(255,255,255,0.3); margin-top:50px;} +.new_login_h2{ font-size:18px; color:#fff; border-bottom:1px solid #fff; font-weight:normal; padding-bottom:5px; margin-bottom:30px;} +.new_login_h2 a{font-size:12px; color:#fff;background:url(/images/bigdata/icons_login.png) 0 -69px no-repeat; padding-left:10px;} +input.new_register_input{ -webkit-box-shadow: 0 0 0px 1000px white inset; margin-left:5px; width:250px; height:45px; border:none;outline: none;} +input.new_loggin_input{ -webkit-box-shadow: 0 0 0px 1000px white inset; outline: none;width:205px; height:45px; border:none; margin-left:50px;} +.new_loggin_users{width:265px;height:45px;border-radius:5px; border:none; background:#fff url(/images/login/icons_login.png) 8px 9px no-repeat;} +.new_login_lock{background:#fff url(/images/login/icons_login.png) 8px -28px no-repeat; width:265px; height:45px; border-radius:5px; border:none;} +.new_register_li{background:#fff; width:265px; height:45px; border-radius:5px; border:none;} +.new_login_form ul li{ margin-bottom:20px;} +.new_login_error{ color:#c00202;} +.new_login_submit_disable{ width:265px; height:40px; line-height: 40px; background:#ccc; color:#fff; font-size:14px; border-radius:5px; border:none; text-align:center; cursor:pointer; vertical-align: middle;} +.new_login_submit{ width:265px; height:40px; line-height: 40px; background:#60b25e; color:#fff; font-size:14px; border-radius:5px; border:none; text-align:center; cursor:pointer; vertical-align: middle;} +.new_login_submit:hover{background: #51a74f;} +.new_login_check{ width:15px; height:15px; border:1px solid #fff; border-style:none; margin-right:5px; vertical-align: -2px;} +.new_login_form label{ color:#fff;} +.new_login_form a{ color:#fff; text-decoration:underline;} +.new_register{ width:100%; height:579px; background-color:#3c95d7;} +.new_register_con{width:1000px; height:580px; margin:0 auto; background:url(/images/bigdata/bg_register.jpg) 0 0 no-repeat;} +.new_login_txt{width:450px; height:140px; padding:30px 12px 0; color:#fff; margin:100px 0 0 100px;} +.new_login_txt h3{ font-size:24px; text-align:center; margin-bottom:20px;} +.new_login_txt p{ line-height:2.0; font-size: 16px;} +.new_register_left{ margin-top:250px;} +.new_login_tishi{ color: #fff; } +/* 展示内容 */ +.new-container{ width: 100%;} +.new-container-inner{width:1200px; margin:0 auto; padding:100px 0;} +.inner-txt{ width:300px;} +.inner-txt-h3{ font-size: 18px; color: #333; margin-bottom:20px;} +.inner-txt-p{font-size: 14px; color: #666; margin-bottom:20px;} +.back-color-grey{ background:#eee;} +.guanzhu-box{ position: relative;} +.img-guanzhu{ position: absolute; top:0; left: 0;} +.guanzhu-img-box{ display: none;} +.guanzhu-box li:hover ul{display:block; } +/* 底部 */ +.footer{width:100%; height:100px; background-color:#626262; } +.footer_con{ width:1200px; height:100px; margin:0 auto; text-align: center; padding:20px 0; } +.footer_con-inner{ width: 300px; margin:0px auto;} +.footer_con-inner li{ } +.footer_con-inner li a{ font-size: 14px; color: #fff;display: block;padding:0 15px; border-right: solid 1px #fff;} +.footer_con-inner li a:hover{text-decoration: underline;} +.footer_con-p{ color: #fff; margin-top:10px;} \ No newline at end of file