diff options
author | David Gay <david@davidgay.org> | 2021-05-23 22:18:43 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-23 22:19:51 -0400 |
commit | 1d55d62b2561a402c902b4c5a66076ab1c278548 (patch) | |
tree | f2e5ac9aa618575a20aa8e73e6646b4825172dfc /app/views/locations | |
parent | 99a2ec9a166a36cfc44577d95c6d245c28709ee1 (diff) |
Various appearance improvements
Diffstat (limited to 'app/views/locations')
-rw-r--r-- | app/views/locations/index.html.erb | 14 | ||||
-rw-r--r-- | app/views/locations/show.html.erb | 17 |
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 %> |