From 11c6f3e8f7c6eeb69e8b3e8cdd7ea8f199a4d575 Mon Sep 17 00:00:00 2001
From: Bendik Aagaard Lynghaug
Date: Thu, 6 Aug 2026 12:11:17 +0200
Subject: [PATCH] Fix favicon (real icon, not an unrelated orange circle) +
stack encouragements with the submit button
favicon.svg was a plain solid circle, unrelated to the actual brand
mark - replaced with the real single-arch icon (matching
infrastructure/assets/icon-{light,dark}.svg), split into two
prefers-color-scheme-scoped files rather than one SVG with an embedded
@media query - the latter doesn't reliably re-evaluate via on
Safari/iOS (confirmed by prior real-device testing on the Gitea side,
see gitea-head.tmpl).
Encouragements used to render right after the description, separated
from the actual submit button by the whole features/requirements
block - moved them into the same wrapper as the form, directly above
the button, so reassurance text and the call to action read together.
Co-Authored-By: Claude Sonnet 5
---
public/favicon-dark.svg | 3 +++
public/favicon-light.svg | 3 +++
public/favicon.svg | 3 ---
src/app.rs | 38 +++++++++++++++++++++++---------------
src/main.rs | 6 ++++--
style/main.css | 10 +++++++++-
6 files changed, 42 insertions(+), 21 deletions(-)
create mode 100644 public/favicon-dark.svg
create mode 100644 public/favicon-light.svg
delete mode 100644 public/favicon.svg
diff --git a/public/favicon-dark.svg b/public/favicon-dark.svg
new file mode 100644
index 0000000..3e2142d
--- /dev/null
+++ b/public/favicon-dark.svg
@@ -0,0 +1,3 @@
+
diff --git a/public/favicon-light.svg b/public/favicon-light.svg
new file mode 100644
index 0000000..f23a3fb
--- /dev/null
+++ b/public/favicon-light.svg
@@ -0,0 +1,3 @@
+
diff --git a/public/favicon.svg b/public/favicon.svg
deleted file mode 100644
index a8bf722..0000000
--- a/public/favicon.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/src/app.rs b/src/app.rs
index 0044907..ea9d391 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -32,7 +32,13 @@ pub fn shell(options: LeptosOptions) -> impl IntoView {
-
+ // Two prefers-color-scheme-scoped links, not one SVG with
+ // an embedded @media query - confirmed via real-device
+ // testing (see infrastructure's gitea-head.tmpl) that an
+ // SVG's own internal @media doesn't reliably re-evaluate
+ // once loaded via / on Safari/iOS.
+
+
@@ -558,11 +564,6 @@ fn AlternativeCard(