Skip to content

Commit 4deb5b6

Browse files
committed
topics changes on front page
1 parent 524036a commit 4deb5b6

File tree

2 files changed

+49
-29
lines changed

2 files changed

+49
-29
lines changed

app/assets/stylesheets/custom.css.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,19 +219,32 @@ aside {
219219

220220
}
221221

222+
.topics-row {
223+
font-size: 1.2em;
224+
h2 {
225+
font-size: 2em;
226+
}
227+
h3 {
228+
text-align: center;
229+
}
230+
}
231+
222232
@media (max-width: 500px) {
223233
.featured_list {
224234
font-size: 1.2em;
225235
margin: 0 auto 10px;
226236
list-style-type: none;
227237
}
228238

229-
.jumbotron {
239+
.intro {
230240
h2 {
231241
color: #e6e6e6;
232242
font-size: 2em;
233243
-webkit-text-stroke: 1px #000;
234244
}
245+
h1 {
246+
margin-top: 30px;
247+
}
235248
}
236249
}
237250

app/views/static_pages/home.html.erb

Lines changed: 35 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -124,43 +124,50 @@
124124
</div>
125125
</div>
126126

127-
<div class="row">
127+
<div class="row topics-row">
128128
<br>
129-
<h1>Technical Screening Topics Include:</h1>
130-
<div class="col-md-4">
129+
<h2>Some Popular Screening Topics Covered:</h2>
130+
<div class="col-md-3">
131131
<ul>
132-
<% @categories_first.each do |category| %>
133-
<li style="margin-top: 5px"><% if current_user != nil && current_user.admin? %>
134-
<%= link_to edit_category_path(category), class: "btn btn-xs btn-primary" do %>
135-
<div class="edit_icon"><i class="glyphicon glyphicon-edit"></i></div>
136-
<% end %>
137-
<% end %>
138-
<%= link_to category.name, questions_path(category_id: category) %>
139-
</li>
140-
<% end %>
132+
<li style="margin-top: 5px"><%= link_to "Algorithms", questions_path(category: "Algorithms") %></li>
133+
<li style="margin-top: 5px"><%= link_to "AngularJS", questions_path(category: "AngularJS") %></li>
134+
<li style="margin-top: 5px"><%= link_to "Big Data", questions_path(category: "Big Data") %></li>
135+
<li style="margin-top: 5px"><%= link_to "Cassandra", questions_path(category: "Cassandra") %></li>
141136
</ul>
142137
</div>
143-
<div class="col-md-4">
138+
<div class="col-md-3">
144139
<ul>
145-
<% @categories_second.each do |category| %>
146-
<li style="margin-top: 5px"><% if current_user != nil && current_user.admin? %>
147-
<%= link_to edit_category_path(category), class: "btn btn-xs btn-primary" do %>
148-
<div class="edit_icon"><i class="glyphicon glyphicon-edit"></i></div>
149-
<% end %>
150-
<% end %> <%= link_to category.name, questions_path(category_id: category) %></li>
151-
<% end %>
140+
<li style="margin-top: 5px"><%= link_to "Data Structures", questions_path(category: "Data Structures") %></li>
141+
<li style="margin-top: 5px"><%= link_to "DB Performance", questions_path(category: "DB Performance") %></li>
142+
<li style="margin-top: 5px"><%= link_to "Groovy / Grails", questions_path(category: "Groovy / Grails") %></li>
143+
<li style="margin-top: 5px"><%= link_to "Hadoop", questions_path(category: "Hadoop") %></li>
152144
</ul>
153145
</div>
154-
<div class="col-md-4">
146+
<div class="col-md-3">
147+
<ul>
148+
<li style="margin-top: 5px"><%= link_to "Hibernate", questions_path(category: "Hibernate") %></li>
149+
<li style="margin-top: 5px"><%= link_to "HTML", questions_path(category: "HTML") %></li>
150+
<li style="margin-top: 5px"><%= link_to "Java", questions_path(category: "Java") %></li>
151+
<li style="margin-top: 5px"><%= link_to "JavaScript", questions_path(category: "JavaScript") %></li>
152+
</ul>
153+
</div>
154+
<div class="col-md-3">
155155
<ul>
156-
<% @categories_third.each do |category| %>
157-
<li style="margin-top: 5px"><% if current_user != nil && current_user.admin? %>
158-
<%= link_to edit_category_path(category), class: "btn btn-xs btn-primary" do %>
159-
<div class="edit_icon"><i class="glyphicon glyphicon-edit"></i></div>
160-
<% end %>
161-
<% end %> <%= link_to category.name, questions_path(category_id: category) %></li>
162-
<% end %>
156+
<li style="margin-top: 5px"><%= link_to "Node.js", questions_path(category: "Node.js / Express.js") %></li>
157+
<li style="margin-top: 5px"><%= link_to "Ruby / Rails", questions_path(category: "Ruby / Rails") %></li>
158+
<li style="margin-top: 5px"><%= link_to "Spring MVC", questions_path(category: "Spring Core / MVC") %></li>
159+
<li style="margin-top: 5px"><%= link_to "RESTful Web Services", questions_path(category: "Web services (RESTful vs. SOAP)") %></li>
163160
</ul>
164161
</div>
165162
</div>
163+
<div class="row topics-row">
164+
<h3>...and many more technologies! <%= link_to "Sign up now", signup_path %> for a free 2 week trial. No credit card required!</h3>
165+
</div>
166+
<div class="row">
167+
&nbsp;
168+
</div>
169+
<div class="row">
170+
&nbsp;
171+
</div>
172+
166173
<% end %>

0 commit comments

Comments
 (0)