|
1 | | -<h1>Welcome to Chez Ken</h1> |
| 1 | +<h1 class='title'>Welcome to Chez Ken</h1> |
| 2 | +<h3><%= flash[:notice] %></h3> |
2 | 3 |
|
3 | | -<table> |
4 | | - <tr> |
5 | | - <th class="category-button"><%= link_to "Appetizers", category_path("Appetizers") %></th> |
6 | | - <th class="category-button"><%= link_to "Salad", category_path("Salads") %></th> |
7 | | - <th class="category-button"><%= link_to "Main Dish", category_path("Main Dishes") %></th> |
8 | | - <th class="category-button"><%= link_to "Dessert", category_path("Desserts") %></th> |
9 | | - </tr> |
10 | | - <% for i in (0..1) %> |
11 | | - <tr> |
12 | | - <td><%= @appetizers[i].title %></td> |
13 | | - <td><%= @salads[i].title %></td> |
14 | | - <td><%= @main_dishes[i].title %></td> |
15 | | - <td><%= @desserts[i].title %></td> |
16 | | - </tr> |
17 | | - <% end %> |
18 | | -</table> |
| 4 | +<div class='container'> |
| 5 | + <div class='container col-4-md wd-17-m mg-0'> |
| 6 | + <h3 class="category-button"><%= link_to "Appetizers", category_path("Appetizers") %></h3> |
| 7 | + <% @categories[:apps].each do |recipe| %> |
| 8 | + <div class='category-card'> |
| 9 | + <div class='fav-star'><span class='rating_text'><%=stars(recipe[:rating]) %></span> |
| 10 | + </div> |
| 11 | + <div class='thumbnail' style="background-image: url(<%=recipe[:image_url] %>)"></div> |
| 12 | + <%=recipe[:title] %> |
| 13 | + </div> |
| 14 | + <% end %> |
| 15 | + </div> |
| 16 | + </td> |
| 17 | + <td> |
| 18 | + <div class='container col-4-md wd-17-m mg-0'> |
| 19 | + <h3 class="category-button"><%= link_to "Salad", category_path("Salads") %></h3> |
| 20 | + <% @categories[:salads].each do |recipe| %> |
| 21 | + <div class='category-card'> |
| 22 | + |
| 23 | + <p> |
| 24 | + <div class='fav-star'><span class='rating_text'><%=stars(recipe[:rating]) %></span> |
| 25 | + </div> |
| 26 | + <div class='thumbnail' style="background-image: url(<%=recipe[:image_url] %>)"></div> |
| 27 | + <%=recipe[:title] %> |
| 28 | + </p> |
| 29 | + </div> |
| 30 | + <% end %> |
| 31 | + </div> |
| 32 | + </td> |
| 33 | + <td> |
| 34 | + <div class='container col-4-md wd-17-m mg-0'> |
| 35 | + <h3 class="category-button"><%= link_to "Main Dish", category_path("Main Dishes") %></h3> |
| 36 | + <% @categories[:mains].each do |recipe| %> |
| 37 | + <div class='category-card'> |
| 38 | + <p> |
| 39 | + <div class='fav-star'><span class='rating_text'><%=stars(recipe[:rating]) %></span> |
| 40 | + </div> |
| 41 | + <div class='thumbnail' style="background-image: url(<%=recipe[:image_url] %>)"></div> |
| 42 | + <%=recipe[:title] %> |
| 43 | + </p> |
| 44 | + </div> |
| 45 | + <% end %> |
| 46 | + </div> |
| 47 | + </td> |
| 48 | + <td> |
| 49 | + <div class='container col-4-md wd-17-m mg-0'> |
| 50 | + <h3 class="category-button"><%= link_to "Dessert", category_path("Desserts") %></h3> |
| 51 | + <% @categories[:desserts].each do |recipe| %> |
| 52 | + <div class='category-card'> |
| 53 | + <p> |
| 54 | + <div class='fav-star'><span class='rating_text'><%=stars(recipe[:rating]) %></span> |
| 55 | + </div> |
| 56 | + <div class='thumbnail' style="background-image: url(<%=recipe[:image_url] %>)"></div> |
| 57 | + <%=recipe[:title] %> |
| 58 | + </p> |
| 59 | + </div> |
| 60 | + <% end %> |
| 61 | + </div> |
| 62 | +</div> |
19 | 63 |
|
20 | 64 | <p>Your recipes make up the menu at Chez Ken. Submit your favorite recipe for appetizers, salads, main dishes, or desserts. If your dish is selected for our menu, you'll get a cut too!</p> |
0 commit comments