Dough Git

commit

Add a git branch favicon matching the other Doughmination apps

commit
22c476873cfe8c95ef070162282747b0ad485d63
author
Clove Twilight <[email protected]>
date
2026-10-30 17:49

diff --git a/.dev.vars.example b/.dev.vars.example
index 1a6d4f4..54634eb 100644
--- a/.dev.vars.example
+++ b/.dev.vars.example
@@ -10,7 +10,7 @@ GIT_AGENT_URL=http://localhost:4011
 MINIGIT_BASE_URL=http://localhost:5173
 
 MINIGIT_TITLE=dough-git
-MINIGIT_FAVICON=https://m.doughmination.gay/img/avatars/git.png
+MINIGIT_FAVICON=http://localhost:5173/favicon.png
 MINIGIT_DESCRIPTION=A minimal self-hosted git mirror.
 MINIGIT_THEME_COLOR=#eb459e
 
diff --git a/src/lib/server/config.ts b/src/lib/server/config.ts
index 8820a1a..b619042 100644
--- a/src/lib/server/config.ts
+++ b/src/lib/server/config.ts
@@ -19,7 +19,7 @@ export const config = {
 
   favicon: optional(
     "MINIGIT_FAVICON",
-    "https://m.doughmination.gay/img/avatars/git.png",
+    "/favicon.png",
   ),
 
   description: optional(
diff --git a/static/favicon.png b/static/favicon.png
new file mode 100644
index 0000000..7e3b2a0
Binary files /dev/null and b/static/favicon.png differ
diff --git a/static/favicon.svg b/static/favicon.svg
new file mode 100644
index 0000000..24dc5b7
--- /dev/null
+++ b/static/favicon.svg
@@ -0,0 +1,21 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
+  <defs>
+    <linearGradient id="trans" x1="0" y1="3" x2="0" y2="21" gradientUnits="userSpaceOnUse">
+      <stop offset="0%" stop-color="#5BCEFA"/>
+      <stop offset="25%" stop-color="#F5A9B8"/>
+      <stop offset="50%" stop-color="#FFFFFF"/>
+      <stop offset="75%" stop-color="#F5A9B8"/>
+      <stop offset="100%" stop-color="#5BCEFA"/>
+    </linearGradient>
+  </defs>
+  <rect width="24" height="24" rx="5" fill="#07050a"/>
+  <g fill="none" stroke="url(#trans)" stroke-width="2" stroke-linecap="round">
+    <path d="M8 7.5v9"/>
+    <path d="M16 9.5c0 4-8 3-8 6"/>
+  </g>
+  <g fill="url(#trans)">
+    <circle cx="8" cy="5.5" r="2.5"/>
+    <circle cx="8" cy="18.5" r="2.5"/>
+    <circle cx="16" cy="7.5" r="2.5"/>
+  </g>
+</svg>
diff --git a/wrangler.jsonc b/wrangler.jsonc
index afb3392..3c8bc1d 100644
--- a/wrangler.jsonc
+++ b/wrangler.jsonc
@@ -68,7 +68,7 @@
   "vars": {
     "MINIGIT_BASE_URL": "https://backup.doughmination.gay",
     "MINIGIT_TITLE": "dough-git",
-    "MINIGIT_FAVICON": "https://m.doughmination.gay/img/avatars/git.png",
+    "MINIGIT_FAVICON": "https://backup.doughmination.gay/favicon.png",
     "MINIGIT_DESCRIPTION": "A minimal self-hosted git mirror.",
     "MINIGIT_THEME_COLOR": "#eb459e",
     "MINIGIT_PUBLIC_MARKER": "minigit-public",