Commit d9771fa3

mo k <m@mokhan.ca>
2011-10-27 03:10:41
display creation images stacked vertical.
1 parent aa717fa
Changed files (2)
app
assets
stylesheets
views
app/assets/stylesheets/layout.css
@@ -137,3 +137,5 @@ div.field, div.actions {
 .hidden{display:none;}
 .smallFont{font-size:small;}
 .smallerFont{font-size:smaller;}
+
+div.creation { margin:2px; height:auto; width:auto; float:left; text-align:center; }
app/views/home/index.html.erb
@@ -1,27 +1,15 @@
 <% content_for :title do %>
   Welcome to the CakeSide
 <% end %>
-<% content_for :script do %>
-<% end %>
-
-<div class="grid_6 alpha">
-  <h1>Welcome to the CakeSide</h1>
-  <p><em>An online community for cake artists, enthusiasists and eaters.</em></p>
-  <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada facilisis erat, id sollicitudin leo sollicitudin in. Quisque quis elit eget neque convallis imperdiet in ut odio. Nunc vel lectus turpis, nec tincidunt ipsum. Pellentesque turpis tellus, pulvinar vehicula sodales a, sollicitudin egestas mauris. </p>
+<div class="grid_12">
+  <h1>Recently Added Creations</h1>
   <% @creations.each do |creation| %>
-    <div>
-      <h2><%= creation.name %></h2>
+    <div class="creation">
       <a href="<%= url_for creation %>"><%= image_tag creation.image.thumb.url, :alt => creation.name %></a>
-      <p><%= creation.short_story %> <%= link_to 'more', creation %></p>
+      <p><%= creation.name %> <br /><%= link_to creation.user.name, creation %></p>
     </div>
   <% end %>
 </div>
-<div class="grid_3 omega helpbox">
-  <h4>What time is it?... cake time</h4>
-  <ul>
-    <li>Connect with thousands of other cake lovers like yourself.</li>
-  </ul>
-</div>
 <div class="clear"></div>