summaryrefslogtreecommitdiff
path: root/app/views/locations
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/locations')
-rw-r--r--app/views/locations/index.html.erb14
-rw-r--r--app/views/locations/show.html.erb17
2 files changed, 17 insertions, 14 deletions
diff --git a/app/views/locations/index.html.erb b/app/views/locations/index.html.erb
index 758fd35..3c9b837 100644
--- a/app/views/locations/index.html.erb
+++ b/app/views/locations/index.html.erb
@@ -1,8 +1,8 @@
-<h1 class="text-xl">Locations</h1>
+<h1 class="text-3xl mb-4">Locations</h1>
-<ul>
- <% @locations.each do |location| %>
- <li><span class="font-bold"><%= link_to location.name, location_path(location) %></span>
- – <%= location.description %></li>
- <% end %>
-</ul>
+<% @locations.each do |location| %>
+ <div class="my-4">
+ <h2 class="text-xl"><%= link_to location.name, location_path(location) %></h2>
+ <p class="italic"><%= location.description %></p>
+ </div>
+<% end %>
diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb
index bc63541..bed97ac 100644
--- a/app/views/locations/show.html.erb
+++ b/app/views/locations/show.html.erb
@@ -1,8 +1,11 @@
-<h1 class="text-xl"><%= @location.name %></h1>
+<div class="mb-4">
+ <h1 class="text-3xl"><%= @location.name %></h1>
+ <p class="italic"><%= @location.description %></p>
+</div>
-<ul>
- <% @location.activities.each do |activity| %>
- <li><span class="font-bold"><%= link_to activity.name, activity_path(activity) %></span>
- – <%= activity.description %></li>
- <% end %>
-</ul>
+<% @location.activities.each do |activity| %>
+ <div class="my-4">
+ <h2 class="text-xl"><%= link_to activity.name, activity_path(activity) %></h2>
+ <p class="italic"><%= activity.description %></p>
+ </div>
+<% end %>