Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Update the favicon set to SVG with an ICO fallback (#6672)

Sanne de Vries491ee240efdc
diff --git a/lib/plausible_web/components/layout.ex b/lib/plausible_web/components/layout.ex
index 9088434d8b..cfc5d0cde0 100644
--- a/lib/plausible_web/components/layout.ex
+++ b/lib/plausible_web/components/layout.ex
@@ -34,15 +34,13 @@ defmodule PlausibleWeb.Components.Layout do
/>
<link
rel="icon"
- type="image/png"
sizes="32x32"
- href={PlausibleWeb.Router.Helpers.static_path(@conn, logo_path("favicon-32x32.png"))}
+ href={PlausibleWeb.Router.Helpers.static_path(@conn, logo_path("favicon.ico"))}
/>
<link
rel="icon"
- type="image/png"
- sizes="16x16"
- href={PlausibleWeb.Router.Helpers.static_path(@conn, logo_path("favicon-16x16.png"))}
+ type="image/svg+xml"
+ href={PlausibleWeb.Router.Helpers.static_path(@conn, logo_path("favicon.svg"))}
/>
"""
end
diff --git a/mix.exs b/mix.exs
index 4ba210dc34..e1459efcc9 100644
--- a/mix.exs
+++ b/mix.exs
@@ -226,7 +226,7 @@ defmodule Plausible.MixProject do
defp docs do
[
main: "readme",
- logo: "priv/static/images/ee/favicon-32x32.png",
+ logo: "priv/static/images/ee/favicon.svg",
extras:
Path.wildcard("guides/**/*.md") ++
[
diff --git a/priv/static/favicon.ico b/priv/static/favicon.ico
index 73de524aaa..179191de90 100644
Binary files a/priv/static/favicon.ico and b/priv/static/favicon.ico differ
diff --git a/priv/static/images/ce/apple-touch-icon.png b/priv/static/images/ce/apple-touch-icon.png
index a6c9af6ed6..a7b13ba7e5 100644
Binary files a/priv/static/images/ce/apple-touch-icon.png and b/priv/static/images/ce/apple-touch-icon.png differ
diff --git a/priv/static/images/ce/favicon-16x16.png b/priv/static/images/ce/favicon-16x16.png
deleted file mode 100644
index 9852066120..0000000000
Binary files a/priv/static/images/ce/favicon-16x16.png and /dev/null differ
diff --git a/priv/static/images/ce/favicon-32x32.png b/priv/static/images/ce/favicon-32x32.png
deleted file mode 100644
index 2a3b0dff8b..0000000000
Binary files a/priv/static/images/ce/favicon-32x32.png and /dev/null differ
diff --git a/priv/static/images/ce/favicon.ico b/priv/static/images/ce/favicon.ico
index 25510630f9..d815a23253 100644
Binary files a/priv/static/images/ce/favicon.ico and b/priv/static/images/ce/favicon.ico differ
diff --git a/priv/static/images/ce/favicon.svg b/priv/static/images/ce/favicon.svg
new file mode 100644
index 0000000000..a65ef95b7d
--- /dev/null
+++ b/priv/static/images/ce/favicon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="url(#a)" d="M31.452 15.835c-.457 4.38-4.286 7.635-8.69 7.635h-1.695v4.009c0 2.22-1.8 4.021-4.021 4.021h-3.139c-.777 0-1.407-.63-1.407-1.407V21.84l2.11-2.961a1.41 1.41 0 0 1 1.691-.482l1.2.503a1.404 1.404 0 0 0 1.687-.48L22 14.475a1.4 1.4 0 0 1 1.682-.477l2.312.972a1.4 1.4 0 0 0 1.685-.479l2.706-3.796a8.55 8.55 0 0 1 1.066 5.14"/><path fill="url(#b)" d="M13.879 18.461c.345-.483.847-.856 1.43-.968a2.27 2.27 0 0 1 1.318.132l1.2.503q.105.044.217.044a.57.57 0 0 0 .462-.238l2.762-3.873c.345-.483.846-.855 1.43-.967a2.25 2.25 0 0 1 1.31.132l2.312.972a.56.56 0 0 0 .678-.193l2.898-4.066a8.53 8.53 0 0 0-6.947-3.572h-9.042c-.777 0-1.407.63-1.407 1.408v12.621z"/><rect width="20" height="13" x=".5" y=".5" fill="#1f2961" rx="4"/><path fill="#fff" d="M11.764 10.477V3.3h4.695v1.21h-3.383v1.702h2.86V7.4h-2.86v1.866H16.5v1.21zM6.612 10.406q.647.266 1.425.266a4.14 4.14 0 0 0 1.928-.482q.41-.226.656-.502l-.656-1.056q-.225.225-.498.394a2.36 2.36 0 0 1-1.245.354q-.523 0-.959-.169a2.1 2.1 0 0 1-1.23-1.246 2.7 2.7 0 0 1-.17-.984q0-.532.175-.969.174-.436.477-.753.302-.318.718-.493.415-.173.886-.174.319 0 .62.098.303.096.585.287t.548.466l.851-.933a2.9 2.9 0 0 0-.686-.63 3.6 3.6 0 0 0-.903-.426A3.4 3.4 0 0 0 8.12 3.3q-.769 0-1.425.277-.656.278-1.148.78A3.67 3.67 0 0 0 4.5 6.97q0 .81.261 1.492.262.681.734 1.179.471.497 1.117.764"/><defs><linearGradient id="a" x1="18.717" x2="24.008" y1="15.81" y2="25.07" gradientUnits="userSpaceOnUse"><stop stop-color="#909cf7"/><stop offset="1" stop-color="#4b38d8"/></linearGradient><linearGradient id="b" x1="15.844" x2="21.297" y1="5.798" y2="15.34" gradientUnits="userSpaceOnUse"><stop stop-color="#909cf7"/><stop offset="1" stop-color="#4b38d8"/></linearGradient></defs></svg>
diff --git a/priv/static/images/ee/apple-touch-icon.png b/priv/static/images/ee/apple-touch-icon.png
index 00f9953364..8fbee920a9 100644
Binary files a/priv/static/images/ee/apple-touch-icon.png and b/priv/static/images/ee/apple-touch-icon.png differ
diff --git a/priv/static/images/ee/favicon-16x16.png b/priv/static/images/ee/favicon-16x16.png
deleted file mode 100644
index 5998d7b4c3..0000000000
Binary files a/priv/static/images/ee/favicon-16x16.png and /dev/null differ
diff --git a/priv/static/images/ee/favicon-32x32.png b/priv/static/images/ee/favicon-32x32.png
deleted file mode 100644
index 74af7adbd3..0000000000
Binary files a/priv/static/images/ee/favicon-32x32.png and /dev/null differ
diff --git a/priv/static/images/ee/favicon.ico b/priv/static/images/ee/favicon.ico
index fd4db40eee..179191de90 100644
Binary files a/priv/static/images/ee/favicon.ico and b/priv/static/images/ee/favicon.ico differ
diff --git a/priv/static/images/ee/favicon.svg b/priv/static/images/ee/favicon.svg
new file mode 100644
index 0000000000..68b3df708b
--- /dev/null
+++ b/priv/static/images/ee/favicon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="url(#a)" d="M27.283 12.301c-.546 5.228-5.116 9.114-10.373 9.114h-2.024V26.2a4.8 4.8 0 0 1-4.8 4.8H6.34a1.68 1.68 0 0 1-1.68-1.68v-9.851l2.52-3.535a1.68 1.68 0 0 1 2.018-.574l1.432.6a1.676 1.676 0 0 0 2.013-.573L16 10.678a1.67 1.67 0 0 1 2.008-.57l2.76 1.16a1.67 1.67 0 0 0 2.01-.57l3.23-4.532a10.2 10.2 0 0 1 1.274 6.135"/><path fill="url(#b)" d="M6.306 15.436c.412-.577 1.01-1.021 1.707-1.155a2.7 2.7 0 0 1 1.574.157l1.432.6q.125.052.258.052a.68.68 0 0 0 .552-.284l3.297-4.622c.412-.577 1.01-1.02 1.706-1.154a2.7 2.7 0 0 1 1.564.157l2.76 1.16q.126.053.26.053a.68.68 0 0 0 .55-.283l3.46-4.854A10.19 10.19 0 0 0 17.132 1H6.34a1.68 1.68 0 0 0-1.68 1.68v15.066z"/><defs><linearGradient id="a" x1="12.081" x2="18.397" y1="12.272" y2="23.325" gradientUnits="userSpaceOnUse"><stop stop-color="#909cf7"/><stop offset="1" stop-color="#4b38d8"/></linearGradient><linearGradient id="b" x1="8.652" x2="15.161" y1=".321" y2="11.711" gradientUnits="userSpaceOnUse"><stop stop-color="#909cf7"/><stop offset="1" stop-color="#4b38d8"/></linearGradient></defs></svg>