From de32c0ff1e13bd9ae2da544947b093e8c2508854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= <13226155+dhrdlicka@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:25:00 +0100 Subject: [PATCH] Add favicons --- lib/swapi_web.ex | 20 +- .../components/layouts/app.html.heex | 3 + lib/swapi_web/seo.ex | 11 +- priv/static/android-chrome-192x192.png | Bin 0 -> 35189 bytes priv/static/android-chrome-512x512.png | Bin 0 -> 147429 bytes priv/static/apple-touch-icon.png | Bin 0 -> 32011 bytes priv/static/browserconfig.xml | 9 + priv/static/favicon-16x16.png | Bin 0 -> 1119 bytes priv/static/favicon-32x32.png | Bin 0 -> 2399 bytes priv/static/favicon.ico | Bin 1258 -> 12014 bytes priv/static/mstile-150x150.png | Bin 0 -> 22454 bytes priv/static/safari-pinned-tab.svg | 200 ++++++++++++++++++ priv/static/site.webmanifest | 19 ++ 13 files changed, 257 insertions(+), 5 deletions(-) create mode 100644 priv/static/android-chrome-192x192.png create mode 100644 priv/static/android-chrome-512x512.png create mode 100644 priv/static/apple-touch-icon.png create mode 100644 priv/static/browserconfig.xml create mode 100644 priv/static/favicon-16x16.png create mode 100644 priv/static/favicon-32x32.png create mode 100644 priv/static/mstile-150x150.png create mode 100644 priv/static/safari-pinned-tab.svg create mode 100644 priv/static/site.webmanifest diff --git a/lib/swapi_web.ex b/lib/swapi_web.ex index 4a8cb6c..35342e9 100644 --- a/lib/swapi_web.ex +++ b/lib/swapi_web.ex @@ -18,7 +18,25 @@ defmodule SWAPIWeb do """ def static_paths, - do: ~w(assets downloads fonts images favicon.ico robots.txt sitemap.txt .well-known) + do: [ + "assets", + "android-chrome-192x192.png", + "android-chrome-512x512.png", + "apple-touch-icon.png", + "browserconfig.xml", + "downloads", + "fonts", + "favicon.ico", + "favicon-16x16.png", + "favicon-32x32.png", + "images", + "mstile-150x150.png", + "robots.txt", + "safari-pinned-tab.svg", + "site.webmanifest", + "sitemap.txt", + ".well-known" + ] def router do quote do diff --git a/lib/swapi_web/components/layouts/app.html.heex b/lib/swapi_web/components/layouts/app.html.heex index 88b2ae6..50cb044 100644 --- a/lib/swapi_web/components/layouts/app.html.heex +++ b/lib/swapi_web/components/layouts/app.html.heex @@ -9,6 +9,9 @@ config={SWAPIWeb.SEO.config()} page_title={assigns[:page_title]} /> + + +