diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 661ec0c5..d98067d6 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -101,43 +101,403 @@ <%= stylesheet_link_tag 'welcome' %>
-
+ +
<% end %> -
- - +
-
<%= l :label_newbie_faq %>
+
<%= l :label_newbie_faq %>
<% newbieTopicStickyList.each do |topic| break if(topic == newbieTopicStickyList[6])%>
<%=link_to( topic.subject, board_message_path(find_board_by_topic(topic),topic), :class => "nowrap" )%> [ <%=find_project_by_topic(topic) %> ]
- <% end %> - - -
+ <% end %> + --> + + +
+ +
+ +
+ + +
+ +
+

热门项目

+ +
+ +
+
+ +
+

热门竞赛

+ +
+ + +
+
+
+

最新众包

+ +
+ + +
+
+
+

热门课程

+ +
+ + +
+
- +






- -
+ diff --git a/public/stylesheets/welcome.css b/public/stylesheets/welcome.css index a52c34d0..e22f53fc 100644 --- a/public/stylesheets/welcome.css +++ b/public/stylesheets/welcome.css @@ -1,4 +1,4 @@ -.body_resize { width:950px; margin:0 auto; padding:0;} +/*.body_resize { width:950px; margin:0 auto; padding:0;} .left { width:371px; float:left; margin:20px 5px 10px 5px; padding:5px;} .right { width:527px; float:left; margin:20px 5px 10px 5px; padding:5px;} @@ -6,7 +6,7 @@ .right li { font: bold 12px Arial, Helvetica, sans-serif; color:#6f6f6f; padding:5px 20px; margin:0; background:url(images/about_ul_li.gif) left no-repeat;} -.body { background:#ebebeb; border-bottom:1px solid #fff; } /*没用到*/ +.body { background:#ebebeb; border-bottom:1px solid #fff; } .home { font:bold 16px Helvetica, Tahoma, Arial, STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif; @@ -40,7 +40,6 @@ div.project a{ div.project { overflow: hidden; - /*white-space: nowrap;*/ text-overflow: ellipsis; -o-text-overflow: ellipsis; } @@ -58,8 +57,141 @@ span.grey { line-height:1.8em; padding:5px 5px; margin:0; +}*/ + +.welcome-message-list li.message-brief-intro{ + position: relative; + display: block; + margin-bottom: -1px; + margin-left: 0px; + padding: 8px 10px 0px; + border-bottom: 1px dashed rgb(229, 229, 229); + width: 95%; + height: auto; } -p.clr, .clr { clear:both; padding:0; margin:0; background:none;} +li { + list-style-type: none; +} + +ul { + padding: 0px; + margin-top: 0px; + margin-bottom: 0px; + width: 50%; +} + +ul.welcome-message-list{ + margin-top: 80px; +} + +.welcome-message-list h3, .user-welcome-message-list h3 { + border-bottom: 1.5px solid rgb(21, 165, 200); + padding: 2px; + margin-left: 10px; +} +/*鍚勭鍒楄〃鏄剧ず*/ +.d-p-index-box{ + border: 1px solid #e6e6e6; + background: #ffffff; + padding: 1px; +} +.d-p-index-hdright{ + position: relative; + float: right; + margin-top: -27px; + margin-right: 10px; + color: #999999; +} +.d-p-index-box h2{ + height: 35px; + line-height: 35px; + background-color: #f2f2f2; + color: #333; + text-indent: 8px; + margin: 0; + padding: 0; + display: block; + font-size: 1em; + -webkit-margin-before: 0.83em; + -webkit-margin-after: 0.83em; + -webkit-margin-start: 0px; + -webkit-margin-end: 0px; + font-weight: bold; + margin-top: 0px; +} +.d-p-index-hotproject{ + width: 48%; + margin-top: 30px; + float: left; +} +ul.d-p-index-hdright{ + padding: 0px; + margin-top: -30px; +} +li { + display: list-item; + text-align: -webkit-match-parent; +} +.d-p-project-bytime li.current a{ + color: #333; + font-weight: 700; +} +.d-p-project-bytime li{ + float: left; + padding:0px 8px; + background: center right no-repeat; +} +.d-p-project-bytime a{ + color: #999; +} +.d-p-projectlist-box{ + /*width: 476px;*/ + overflow: hidden; + height:auto; + margin: 0px; + padding: 0px; +} +.d-p-index-newsource li,.d-p-index-hotproject ul.d-p-projectlist li{ + color: #999999; + background: center -1px no-repeat; + line-height: 20px; + padding: 0px 9px; + width: 440px; + cursor: pointer; + font: 12px/1.5 tahoma,arial,\5b8b\4f53; + float: left; +/* display:block;*/ + margin-left: 0px; + margin-top: 0px; + border-bottom: 1px solid rgb(245,245,245); +} + +.d-g-blue{ + color: green !important; + font-weight: 700; + +} +ul.d-p-projectlist{ + margin-top: 0px; +} + +/* +p.layout-1 { + margin-top: -8px; +}*/ + + +/* +p.layout { + margin-top: -8px; +} +*/ + +.right ul li { + margin-bottom: 6px; +} + +/*p.clr, .clr { clear:both; padding:0; margin:0; background:none;}*/