From 9302a69553545e688263e619490bf644031ebbd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Thu, 7 Aug 2025 12:25:31 +0200 Subject: [PATCH] fix: add the webmanifest --- assets/manifest.json | 2 +- src/components/app.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/manifest.json b/assets/manifest.json index f289672..d1edca0 100644 --- a/assets/manifest.json +++ b/assets/manifest.json @@ -7,7 +7,7 @@ "theme_color": "#27272a", "icons": [ { - "src": "/images/icon.png", + "src": "/assets/images/icon.png", "sizes": "any", "type": "image/png" } diff --git a/src/components/app.rs b/src/components/app.rs index bb523c3..f8d6617 100644 --- a/src/components/app.rs +++ b/src/components/app.rs @@ -13,6 +13,7 @@ const TAILWIND_CSS: Asset = asset!("/assets/styles/tailwind_output.css"); const FONTS_CSS: Asset = asset!("/assets/styles/fonts.css"); const INPUT_NUMBER_ARROWS_CSS: Asset = asset!("/assets/styles/input_number_arrows.css"); const INPUT_RANGE_CSS: Asset = asset!("/assets/styles/input_range.css"); +const MANIFEST: Asset = asset!("/assets/manifest.json"); #[component] pub(crate) fn App() -> Element { @@ -39,6 +40,7 @@ pub(crate) fn App() -> Element { document::Stylesheet { href: FONTS_CSS } document::Stylesheet { href: INPUT_NUMBER_ARROWS_CSS } document::Stylesheet { href: INPUT_RANGE_CSS } + document::Link { rel: "manifest", href: MANIFEST } document::Script { src: "https://kit.fontawesome.com/3c1b409f8f.js" } div { -- 2.49.0