Permalink
Browse files

Added simple landing and logo

  • Loading branch information...
1 parent 59a9a30 commit 6bc4e34a7e731709e5f24fd1f7905fa666a29cab @rogeliog committed Feb 2, 2012
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -44,6 +44,37 @@ a{
margin: 0 auto;
margin-bottom:-30px;
}
+#landing{
+ @include shadow(0px, 3px, 4px, #999);
+ margin-top:-20px;
+ padding-top:20px;
+ padding-bottom:50px;
+ background:url("bg_hero.png");
+ .title{
+ text-align:center;
+ p{
+ color:#999;
+ font-family: 'Rockwell';
+ font-size:35px;
+ line-height:50px;
+ &:hover{
+ color:#999;
+ }
+ }
+ padding:10px 0 20px 0;
+ .btn.large{
+ margin-top:20px;
+ font-size:20px;
+ padding: 20px 105px;
+ }
+ }
+ .logo img{
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ }
+
+}
#footer, #push {
height:30px;
@@ -55,6 +86,15 @@ a{
padding-bottom:20px;
background: #222;
}
+#main_logo{
+ position: relative;
+ min-height: 10px;
+ min-width: 125px;
+ a{
+ position:absolute;
+ top:-6px
+ }
+}
#content{
margin-top:25px;
@@ -4,4 +4,8 @@ def index
def about
end
+
+ def hello
+
+ end
end
@@ -3,14 +3,16 @@
<div class="topbar">
<div class="fill">
<div class="container">
- <%= link_to 'Nerdgem', root_path, :class => 'brand' %>
<ul class="nav">
+ <li id='main_logo'>
+ <%= link_to (image_tag 'logo_no_gem.png', height: '33px'), root_path, :class => 'brand' %>
+ </li>
<li><%=link_to "Home", tutorials_path%></li>
<li><%=link_to "Tutorials", tutorials_path, :id=>"tutorials"%></li>
<% if current_user%>
<li><%=link_to "New tutorial", new_tutorial_path%></li>
<%end %>
- <li><%=link_to "About", about_path %></li>
+ <li><%=link_to "About", hello_path %></li>
</ul>
<div class='pull-right'>
<%= form_tag find_tutorials_path, :method => 'get', :id => 'search_form' %>
@@ -0,0 +1,14 @@
+<div id='landing'>
+ <div class='logo'>
+ <%= image_tag 'logo_medium.png', height: '300px' %>
+ </div>
+ <div class='title'>
+ <p> Find ruby knowledge </p>
+ <p> Learn about different gems </p>
+ <p> Share it with the world </p>
+ <% unless current_user.present? %>
+ <%= link_to 'Register now!', "/auth/github", class: 'btn info large' %>
+ <% end %>
+ <%= link_to 'Find knowledge!', tutorials_path, class: 'btn success large' %>
+ </div>
+</div>
@@ -0,0 +1 @@
+
View
@@ -19,5 +19,6 @@
match '/auth/:provider/callback' => 'authentications#create'
match 'preview' => 'previews#preview', :as => :preview, :via => :post
match 'about' => 'welcome#about', :as => :about
+ match 'hello' => 'welcome#hello', :as => :hello
root :to => "tutorials#index"
end

0 comments on commit 6bc4e34

Please sign in to comment.