Add footer

This commit is contained in:
Trevor Vallender 2024-06-27 09:43:26 +01:00
parent e4a896a375
commit 1834854dc0
4 changed files with 25 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -15,7 +15,7 @@ main {
max-width: 80vw;
display: flex;
flex-direction: column;
padding: 1em;
padding: 1em 1em 4em 1em;
margin: 0 auto;
min-height: calc(100vh - var(--header-height));
}
@ -159,3 +159,20 @@ hr {
.roll-command-display:after {
content: ")";
}
footer {
background-color: #111;
text-align: center;
padding: 1em;
margin: 0 auto;
font-size: .8em;
max-width: 80vw;
a:link, a:visited {
color: var(--header-text-color);
text-decoration: none;
}
img {
display: block;
margin: 0 auto;
}
}

View File

@ -42,5 +42,11 @@
<%= yield(:main) if content_for?(:main) %>
<%= yield unless content_for?(:main) %>
</main>
<footer>
<%= link_to "https://tablewarez.net", target: "_blank" do %>
<%= t(".made_by") %>
<%= image_tag "tablewarez.png", width: "300px" %>
<% end %>
</footer>
</body>
</html>

View File

@ -18,6 +18,7 @@ en:
characters: Characters
profile: Profile
tables: Tables
made_by: Brought to you by
mailer:
greeting: "Hi %{name},"
greeting_without_name: Hi,