From 202f827d578e66b894c7b6ae48529c8ddc2ba426 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Sat, 29 Jun 2024 09:03:27 +0100 Subject: [PATCH] Logo --- app/assets/stylesheets/fonts.css | 2 +- app/assets/stylesheets/layout.css | 5 +++++ app/views/layouts/application.html.erb | 4 +++- todo.md | 8 ++++---- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/fonts.css b/app/assets/stylesheets/fonts.css index 5227406..9d23ceb 100644 --- a/app/assets/stylesheets/fonts.css +++ b/app/assets/stylesheets/fonts.css @@ -1,3 +1,3 @@ body { - font-family: Roboto, sans-serif; + font-family: sans-serif; } diff --git a/app/assets/stylesheets/layout.css b/app/assets/stylesheets/layout.css index 64e04ea..a27b38e 100644 --- a/app/assets/stylesheets/layout.css +++ b/app/assets/stylesheets/layout.css @@ -58,6 +58,11 @@ header { header h1 { margin: 0; padding: 1em; + img { + width: 100%; + max-width: 600px; + min-width: 400px; + } } header h1 a:link, header h1 a:visited { diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 0021ace..d3b71ed 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -16,7 +16,9 @@ <%= turbo_frame_tag :modal %>
<%= yield(:header_content) if content_for?(:header_content) %> -

<%= link_to t("site_name"), root_path %>

+

<%= link_to root_path do %> + <%= image_tag "logo.png", width: "600px" %> + <% end %>