Skip to content

Commit

Permalink
feat: favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
frpouly committed Oct 20, 2024
1 parent 50f14e7 commit 138c5b6
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG.md

### Added

- Favicon

## 0.2.1 - 2024-20-20

### Fixed
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/favicon/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/images/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
9 changes: 5 additions & 4 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>

<link rel="manifest" href="/manifest.json">
<link rel="icon" href="/icon.png" type="image/png">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/icon.png">
<%= tag(:link, rel: 'apple-touch-icon', sizes: '180x180', href: asset_path('favicon/apple-touch-icon.png')) %>
<%= tag(:link, rel: 'icon', type: 'image/png', sizes: '32x32', href: asset_path('favicon/favicon-32x32.png')) %>
<%= tag(:link, rel: 'icon', type: 'image/png', sizes: '16x16', href: asset_path('favicon/favicon-16x16.png')) %>
<%= tag(:link, rel: 'manifest', href: asset_path('favicon/site.webmanifest')) %>

<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
Expand Down

0 comments on commit 138c5b6

Please sign in to comment.