TransPlace wiki: override favicon
There's not a way to change the favicon in the wiki directly, however by
using Compose and File we can override specific files to show the correct
icons. Therefore, we can overwrite the old favicons with our new ones
Co-Authored-By: Cleo Debeau <cleo@trans.gg>
Change-Id: I5a92b8f1211af23fc0b0abfba0dbd19ff059a5d0
Reviewed-on: https://git.clicks.codes/c/Infra/NixFiles/+/633
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/common/nginx/guide.trans.gg/_assets/favicons/android-chrome-192x192.png b/modules/common/nginx/guide.trans.gg/_assets/favicons/android-chrome-192x192.png
new file mode 100644
index 0000000..f857d81
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/favicons/android-chrome-192x192.png
Binary files differ
diff --git a/modules/common/nginx/guide.trans.gg/_assets/favicons/android-chrome-256x256.png b/modules/common/nginx/guide.trans.gg/_assets/favicons/android-chrome-256x256.png
new file mode 100644
index 0000000..0b8785c
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/favicons/android-chrome-256x256.png
Binary files differ
diff --git a/modules/common/nginx/guide.trans.gg/_assets/favicons/apple-touch-icon.png b/modules/common/nginx/guide.trans.gg/_assets/favicons/apple-touch-icon.png
new file mode 100644
index 0000000..d132c4a
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/favicons/apple-touch-icon.png
Binary files differ
diff --git a/modules/common/nginx/guide.trans.gg/_assets/favicons/browserconfig.xml b/modules/common/nginx/guide.trans.gg/_assets/favicons/browserconfig.xml
new file mode 100644
index 0000000..2bcbb7e
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/favicons/browserconfig.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<browserconfig>
+ <msapplication>
+ <tile>
+ <square150x150logo src="/mstile-150x150.png"/>
+ <TileColor>#313338</TileColor>
+ </tile>
+ </msapplication>
+</browserconfig>
diff --git a/modules/common/nginx/guide.trans.gg/_assets/favicons/favicon-16x16.png b/modules/common/nginx/guide.trans.gg/_assets/favicons/favicon-16x16.png
new file mode 100644
index 0000000..ce5f74d
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/favicons/favicon-16x16.png
Binary files differ
diff --git a/modules/common/nginx/guide.trans.gg/_assets/favicons/favicon-32x32.png b/modules/common/nginx/guide.trans.gg/_assets/favicons/favicon-32x32.png
new file mode 100644
index 0000000..7755ba5
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/favicons/favicon-32x32.png
Binary files differ
diff --git a/modules/common/nginx/guide.trans.gg/_assets/favicons/mstile-150x150.png b/modules/common/nginx/guide.trans.gg/_assets/favicons/mstile-150x150.png
new file mode 100644
index 0000000..82a3d3c
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/favicons/mstile-150x150.png
Binary files differ
diff --git a/modules/common/nginx/guide.trans.gg/_assets/favicons/safari-pinned-tab.svg b/modules/common/nginx/guide.trans.gg/_assets/favicons/safari-pinned-tab.svg
new file mode 100644
index 0000000..0654ddb
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/favicons/safari-pinned-tab.svg
@@ -0,0 +1,19 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
+ width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000"
+ preserveAspectRatio="xMidYMid meet">
+
+<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
+fill="#000000" stroke="none">
+<path d="M982 3538 l3 -783 133 -3 132 -3 0 -524 0 -525 130 0 130 0 0 -130 0
+-130 130 0 130 0 0 -130 0 -130 130 0 129 0 3 -132 3 -133 133 -3 132 -3 0
+-124 0 -125 260 0 260 0 0 125 0 124 133 3 132 3 3 133 3 132 129 0 130 0 0
+130 0 130 130 0 130 0 0 130 0 130 130 0 130 0 0 525 0 524 133 3 132 3 3 783
+2 782 -265 0 -265 0 0 -125 0 -124 -127 -3 -128 -3 -5 -130 -5 -130 -127 -3
+-127 -3 -3 133 -3 133 -132 3 -133 3 0 124 0 125 -260 0 -260 0 0 -125 0 -124
+-132 -3 -133 -3 -3 -133 -3 -133 -127 3 -127 3 -5 130 -5 130 -127 3 -128 3 0
+124 0 125 -265 0 -265 0 2 -782z"/>
+</g>
+</svg>
diff --git a/modules/common/nginx/guide.trans.gg/_assets/manifest.json b/modules/common/nginx/guide.trans.gg/_assets/manifest.json
new file mode 100644
index 0000000..3b080ee
--- /dev/null
+++ b/modules/common/nginx/guide.trans.gg/_assets/manifest.json
@@ -0,0 +1,20 @@
+{
+ "name": "TransPlace Staff Guide",
+ "short_name": "Staff Guide",
+ "start_url": "/",
+ "icons": [
+ {
+ "src": "/_assets/favicons/android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "/_assets/favicons/android-chrome-256x256.png",
+ "sizes": "256x256",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#313338",
+ "background_color": "#313338",
+ "display": "standalone"
+}