aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed <git@gumx.cc>2026-06-18 00:12:28 +0300
committerAhmed <git@gumx.cc>2026-06-18 00:12:28 +0300
commit80ae79d977ba2b61e693b3fac419bb7d49674b37 (patch)
tree1448bac722a87a30c43ccbe2f80234fb17072b72
parent5aafd61fceab19aff4b081574260bc5b12fbd912 (diff)
fix: favicon and style, again
-rw-r--r--hooks/post-receive1
-rw-r--r--web/favicon.svg1
-rw-r--r--web/scripts/gen_tool.py2
3 files changed, 3 insertions, 1 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 8ba2d97..8715f3c 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -3,4 +3,5 @@ set -e
cd /home/git/build/ugi
python3 web/scripts/gen_tool.py spec/ugi_registry_v0.json /var/www/ugi.gumx.cc/index.html
rsync -rlptD fonts/ /var/www/ugi.gumx.cc/fonts/
+cp web/favicon.svg /var/www/ugi.gumx.cc/favicon.svg
echo "ugi deployed"
diff --git a/web/favicon.svg b/web/favicon.svg
new file mode 100644
index 0000000..4f9ab68
--- /dev/null
+++ b/web/favicon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" stroke="#000"><path stroke-width="122" stroke-dasharray="2,38" d="m9,70h122M70,9v122"/><path stroke-width="33" stroke-linecap="round" d="m70,30h0m40,40h0m-80,40v0m40,0h0m40,0h0"/></svg>
diff --git a/web/scripts/gen_tool.py b/web/scripts/gen_tool.py
index 695a33e..abe3594 100644
--- a/web/scripts/gen_tool.py
+++ b/web/scripts/gen_tool.py
@@ -20,7 +20,7 @@ def generate_html(reg):
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
-<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMTQwIiBzdHJva2U9IiMwMDAiPjxwYXRoIHN0cm9rZS13aWR0aD0iMTIyIiBzdHJva2UtZGFzaGFycmF5PSIyLDM4IiBkPSJtOSw3MGgxMjJNNzAsOXYxMjIiLz48cGF0aCBzdHJva2Utd2lkdGg9IjMzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Im03MCwzMGgwbTQwLDQwaDBtLTgwLDQwdjBtNDAsMGgwbTQwLDBoMCIvPjwvc3ZnPg==">
+<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>UGI Tool v{reg['spec']['version']} — Encoder / Decoder / Converter</title>
<style>
@font-face {{ font-family: "Kawkab Mono"; src: url(fonts/KawkabMono-Regular.woff2); font-weight: normal; }}