From eadb93dba20e2ac826aa48483839f1c2890a93fc Mon Sep 17 00:00:00 2001 From: hschne Date: Thu, 28 Dec 2023 18:44:59 +0100 Subject: [PATCH] Change font --- app/assets/images/logo.svg | 61 ++++++++++++++++++++++++++ app/views/layouts/application.html.erb | 24 +++++++--- app/views/uploads/new.html.erb | 3 +- app/views/uploads/preview.html.erb | 8 ++-- config/tailwind.config.js | 2 +- 5 files changed, 87 insertions(+), 11 deletions(-) create mode 100644 app/assets/images/logo.svg diff --git a/app/assets/images/logo.svg b/app/assets/images/logo.svg new file mode 100644 index 0000000..a1ca7bc --- /dev/null +++ b/app/assets/images/logo.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 8d17be8..df11ffb 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -5,7 +5,13 @@ <%= csrf_meta_tags %> <%= csp_meta_tag %> - <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %> + + + + <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %> <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> <%= javascript_importmap_tags %> @@ -25,9 +31,13 @@ mx-auto flex h-16 max-w-screen-xl items-center justify-between px-4 " > - - Data Dead Drop - + +
+ <%= inline_svg "logo.svg", class: "h-8 w-8 rounded bg-black" %> + + Data Dead Drop + +
-

© 2023 Hans Schnedlitz

+

+ © 2023 + <%= render "components/link", + name: "Hans Schnedlitz", + url: "https://github.com/hschne" %>

    http -f POST <%= Rails.application.routes.default_url_options[:host] %>/upload.json \
    - "upload[file]@README.md" "upload[expiry]=10" "upload[uses]=3" +   "upload[file]@README.md" "upload[expiry]=10" + "upload[uses]=3" <% end %>
diff --git a/app/views/uploads/preview.html.erb b/app/views/uploads/preview.html.erb index 534a9c9..b09904a 100644 --- a/app/views/uploads/preview.html.erb +++ b/app/views/uploads/preview.html.erb @@ -1,7 +1,7 @@

File uploaded

-

+

Your file will expire in <%= "#{@upload.minutes_left} #{"Minute".pluralize(@upload.minutes_left)}" %> or after @@ -88,15 +88,15 @@

diff --git a/config/tailwind.config.js b/config/tailwind.config.js index 786ea39..aa1f50d 100644 --- a/config/tailwind.config.js +++ b/config/tailwind.config.js @@ -10,7 +10,7 @@ module.exports = { theme: { extend: { fontFamily: { - sans: ["Inter var", ...defaultTheme.fontFamily.sans], + sans: ["Space Grotesk", ...defaultTheme.fontFamily.sans], }, boxShadow: { brutal: