Skip to content

Commit

Permalink
Style the page footer
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo committed Feb 28, 2024
1 parent a6baeca commit 09f34f9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
9 changes: 9 additions & 0 deletions app/assets/stylesheets/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,12 @@ a.link {
.highlight {
color: var(--colour-red-jam-500);
}

footer {
display: flex;
align-items: center;
background-color: var(--colour-slate-300);
margin-top: var(--s2);
min-height: var(--s4);
box-shadow: 0 50vh 0 50vh var(--colour-slate-300);
}
19 changes: 9 additions & 10 deletions app/views/layouts/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,19 @@

<%= yield %>
</div>
<footer>
<div>
<p><%= link_to "About", about_url %></p>
<p><%= link_to "Terms of use", terms_url %></p>
</div>
<div>
<p>A <a href="https://gofreerange.com">Go Free Range</a> project</p>
</div>
</footer>
</div>
<footer>
<div class="center cluster" style="--measure: 40ch;">
<%= link_to "About", about_url, class: 'link' %>
<%= link_to "Terms of use", terms_url, class: 'link' %>
<span>A <%= link_to "Go Free Range", 'https://gofreerange.com' %> project</span>
</div>

<% if Current.user&.admin? && content_for(:admin) %>
<div>
<%= content_for :admin %>
</div>
<% end %>
</div>
</footer>
</body>
</html>

0 comments on commit 09f34f9

Please sign in to comment.