diff --git a/lasvecka-node/index.js b/lasvecka-node/index.js
index 3048ad9..3205182 100644
--- a/lasvecka-node/index.js
+++ b/lasvecka-node/index.js
@@ -19,6 +19,30 @@ app.get('/data', (req, res) => {
res.send(computeTime());
});
+app.get('/favicon.ico', (req, res) => {
+ let studyweek = computeTime();
+ let studyweekNum = studyweek.replace('LV ', '').replace('Självstudier', 'S').replace('Tentavecka', 'T');
+ res.sendFile(`${__dirname}/public/icons/${studyweekNum}/favicon.ico`);
+});
+
+app.get('/site.webmanifest', (req, res) => {
+ let studyweek = computeTime();
+ let studyweekNum = studyweek.replace('LV ', '').replace('Självstudier', 'S').replace('Tentavecka', 'T');
+ let manifest = {
+ "name": "läsvecka.nu",
+ "short_name": "läsvecka.nu",
+ "icons": [
+ { "src": `/icons/${studyweekNum}/android-chrome-192x192.png`, "sizes": "192x192", "type": "image/png" },
+ { "src": `/icons/${studyweekNum}/android-chrome-512x512.png`, "sizes": "512x512", "type": "image/png" }
+ ],
+ "theme_color": "#1c7bb7",
+ "background_color": "#90c0de",
+ "display": "standalone"
+ };
+
+ res.send(manifest);
+});
+
app.listen(port, () => {
console.log(`App listening at http://localhost:${port}`)
})
@@ -30,9 +54,9 @@ const render = (data) => {
läsvecka.nu | ${data.studyweek}
-
-
-
+
+
+
@@ -59,32 +83,8 @@ const render = (data) => {
diff --git a/lasvecka-node/public/android-chrome-192x192.png b/lasvecka-node/public/android-chrome-192x192.png
deleted file mode 100644
index 7c4847e..0000000
Binary files a/lasvecka-node/public/android-chrome-192x192.png and /dev/null differ
diff --git a/lasvecka-node/public/android-chrome-512x512.png b/lasvecka-node/public/android-chrome-512x512.png
deleted file mode 100644
index 1bd741c..0000000
Binary files a/lasvecka-node/public/android-chrome-512x512.png and /dev/null differ
diff --git a/lasvecka-node/public/apple-touch-icon.png b/lasvecka-node/public/apple-touch-icon.png
deleted file mode 100644
index 3bf7c06..0000000
Binary files a/lasvecka-node/public/apple-touch-icon.png and /dev/null differ
diff --git a/lasvecka-node/public/favicon-16x16.png b/lasvecka-node/public/favicon-16x16.png
deleted file mode 100644
index 735ced4..0000000
Binary files a/lasvecka-node/public/favicon-16x16.png and /dev/null differ
diff --git a/lasvecka-node/public/favicon-32x32.png b/lasvecka-node/public/favicon-32x32.png
deleted file mode 100644
index 01d004e..0000000
Binary files a/lasvecka-node/public/favicon-32x32.png and /dev/null differ
diff --git a/lasvecka-node/public/favicon.ico b/lasvecka-node/public/favicon.ico
deleted file mode 100644
index 60dea7c..0000000
Binary files a/lasvecka-node/public/favicon.ico and /dev/null differ
diff --git a/lasvecka-node/public/faviconbkg.png b/lasvecka-node/public/faviconbkg.png
deleted file mode 100644
index 6cf30ec..0000000
Binary files a/lasvecka-node/public/faviconbkg.png and /dev/null differ
diff --git a/lasvecka-node/public/icons/1/android-chrome-192x192.png b/lasvecka-node/public/icons/1/android-chrome-192x192.png
new file mode 100644
index 0000000..f1ac2d8
Binary files /dev/null and b/lasvecka-node/public/icons/1/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/1/android-chrome-512x512.png b/lasvecka-node/public/icons/1/android-chrome-512x512.png
new file mode 100644
index 0000000..9b90164
Binary files /dev/null and b/lasvecka-node/public/icons/1/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/1/apple-touch-icon.png b/lasvecka-node/public/icons/1/apple-touch-icon.png
new file mode 100644
index 0000000..2fc171d
Binary files /dev/null and b/lasvecka-node/public/icons/1/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/1/favicon-16x16.png b/lasvecka-node/public/icons/1/favicon-16x16.png
new file mode 100644
index 0000000..ff7a513
Binary files /dev/null and b/lasvecka-node/public/icons/1/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/1/favicon-32x32.png b/lasvecka-node/public/icons/1/favicon-32x32.png
new file mode 100644
index 0000000..1556128
Binary files /dev/null and b/lasvecka-node/public/icons/1/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/1/favicon.ico b/lasvecka-node/public/icons/1/favicon.ico
new file mode 100644
index 0000000..3b5c43e
Binary files /dev/null and b/lasvecka-node/public/icons/1/favicon.ico differ
diff --git a/lasvecka-node/public/icons/2/android-chrome-192x192.png b/lasvecka-node/public/icons/2/android-chrome-192x192.png
new file mode 100644
index 0000000..557753b
Binary files /dev/null and b/lasvecka-node/public/icons/2/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/2/android-chrome-512x512.png b/lasvecka-node/public/icons/2/android-chrome-512x512.png
new file mode 100644
index 0000000..96c816f
Binary files /dev/null and b/lasvecka-node/public/icons/2/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/2/apple-touch-icon.png b/lasvecka-node/public/icons/2/apple-touch-icon.png
new file mode 100644
index 0000000..da21f7a
Binary files /dev/null and b/lasvecka-node/public/icons/2/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/2/favicon-16x16.png b/lasvecka-node/public/icons/2/favicon-16x16.png
new file mode 100644
index 0000000..445bd64
Binary files /dev/null and b/lasvecka-node/public/icons/2/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/2/favicon-32x32.png b/lasvecka-node/public/icons/2/favicon-32x32.png
new file mode 100644
index 0000000..640e49a
Binary files /dev/null and b/lasvecka-node/public/icons/2/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/2/favicon.ico b/lasvecka-node/public/icons/2/favicon.ico
new file mode 100644
index 0000000..9690697
Binary files /dev/null and b/lasvecka-node/public/icons/2/favicon.ico differ
diff --git a/lasvecka-node/public/icons/3/android-chrome-192x192.png b/lasvecka-node/public/icons/3/android-chrome-192x192.png
new file mode 100644
index 0000000..ef7faba
Binary files /dev/null and b/lasvecka-node/public/icons/3/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/3/android-chrome-512x512.png b/lasvecka-node/public/icons/3/android-chrome-512x512.png
new file mode 100644
index 0000000..a57b195
Binary files /dev/null and b/lasvecka-node/public/icons/3/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/3/apple-touch-icon.png b/lasvecka-node/public/icons/3/apple-touch-icon.png
new file mode 100644
index 0000000..9084430
Binary files /dev/null and b/lasvecka-node/public/icons/3/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/3/favicon-16x16.png b/lasvecka-node/public/icons/3/favicon-16x16.png
new file mode 100644
index 0000000..8f85f27
Binary files /dev/null and b/lasvecka-node/public/icons/3/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/3/favicon-32x32.png b/lasvecka-node/public/icons/3/favicon-32x32.png
new file mode 100644
index 0000000..d9b7a3c
Binary files /dev/null and b/lasvecka-node/public/icons/3/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/3/favicon.ico b/lasvecka-node/public/icons/3/favicon.ico
new file mode 100644
index 0000000..02e5e6c
Binary files /dev/null and b/lasvecka-node/public/icons/3/favicon.ico differ
diff --git a/lasvecka-node/public/icons/4/android-chrome-192x192.png b/lasvecka-node/public/icons/4/android-chrome-192x192.png
new file mode 100644
index 0000000..377b7ff
Binary files /dev/null and b/lasvecka-node/public/icons/4/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/4/android-chrome-512x512.png b/lasvecka-node/public/icons/4/android-chrome-512x512.png
new file mode 100644
index 0000000..446730b
Binary files /dev/null and b/lasvecka-node/public/icons/4/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/4/apple-touch-icon.png b/lasvecka-node/public/icons/4/apple-touch-icon.png
new file mode 100644
index 0000000..43cc9ae
Binary files /dev/null and b/lasvecka-node/public/icons/4/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/4/favicon-16x16.png b/lasvecka-node/public/icons/4/favicon-16x16.png
new file mode 100644
index 0000000..1e8b545
Binary files /dev/null and b/lasvecka-node/public/icons/4/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/4/favicon-32x32.png b/lasvecka-node/public/icons/4/favicon-32x32.png
new file mode 100644
index 0000000..d2db5d4
Binary files /dev/null and b/lasvecka-node/public/icons/4/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/4/favicon.ico b/lasvecka-node/public/icons/4/favicon.ico
new file mode 100644
index 0000000..04ffcb5
Binary files /dev/null and b/lasvecka-node/public/icons/4/favicon.ico differ
diff --git a/lasvecka-node/public/icons/5/android-chrome-192x192.png b/lasvecka-node/public/icons/5/android-chrome-192x192.png
new file mode 100644
index 0000000..3d9ed85
Binary files /dev/null and b/lasvecka-node/public/icons/5/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/5/android-chrome-512x512.png b/lasvecka-node/public/icons/5/android-chrome-512x512.png
new file mode 100644
index 0000000..c10c60a
Binary files /dev/null and b/lasvecka-node/public/icons/5/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/5/apple-touch-icon.png b/lasvecka-node/public/icons/5/apple-touch-icon.png
new file mode 100644
index 0000000..ccb1e19
Binary files /dev/null and b/lasvecka-node/public/icons/5/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/5/favicon-16x16.png b/lasvecka-node/public/icons/5/favicon-16x16.png
new file mode 100644
index 0000000..8e5c535
Binary files /dev/null and b/lasvecka-node/public/icons/5/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/5/favicon-32x32.png b/lasvecka-node/public/icons/5/favicon-32x32.png
new file mode 100644
index 0000000..653390e
Binary files /dev/null and b/lasvecka-node/public/icons/5/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/5/favicon.ico b/lasvecka-node/public/icons/5/favicon.ico
new file mode 100644
index 0000000..f017383
Binary files /dev/null and b/lasvecka-node/public/icons/5/favicon.ico differ
diff --git a/lasvecka-node/public/icons/6/android-chrome-192x192.png b/lasvecka-node/public/icons/6/android-chrome-192x192.png
new file mode 100644
index 0000000..c7232ca
Binary files /dev/null and b/lasvecka-node/public/icons/6/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/6/android-chrome-512x512.png b/lasvecka-node/public/icons/6/android-chrome-512x512.png
new file mode 100644
index 0000000..277f883
Binary files /dev/null and b/lasvecka-node/public/icons/6/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/6/apple-touch-icon.png b/lasvecka-node/public/icons/6/apple-touch-icon.png
new file mode 100644
index 0000000..4e71317
Binary files /dev/null and b/lasvecka-node/public/icons/6/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/6/favicon-16x16.png b/lasvecka-node/public/icons/6/favicon-16x16.png
new file mode 100644
index 0000000..116a5c5
Binary files /dev/null and b/lasvecka-node/public/icons/6/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/6/favicon-32x32.png b/lasvecka-node/public/icons/6/favicon-32x32.png
new file mode 100644
index 0000000..6299d4c
Binary files /dev/null and b/lasvecka-node/public/icons/6/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/6/favicon.ico b/lasvecka-node/public/icons/6/favicon.ico
new file mode 100644
index 0000000..b16d606
Binary files /dev/null and b/lasvecka-node/public/icons/6/favicon.ico differ
diff --git a/lasvecka-node/public/icons/7/android-chrome-192x192.png b/lasvecka-node/public/icons/7/android-chrome-192x192.png
new file mode 100644
index 0000000..42a6830
Binary files /dev/null and b/lasvecka-node/public/icons/7/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/7/android-chrome-512x512.png b/lasvecka-node/public/icons/7/android-chrome-512x512.png
new file mode 100644
index 0000000..431e64a
Binary files /dev/null and b/lasvecka-node/public/icons/7/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/7/apple-touch-icon.png b/lasvecka-node/public/icons/7/apple-touch-icon.png
new file mode 100644
index 0000000..ac12f7d
Binary files /dev/null and b/lasvecka-node/public/icons/7/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/7/favicon-16x16.png b/lasvecka-node/public/icons/7/favicon-16x16.png
new file mode 100644
index 0000000..aa34bb6
Binary files /dev/null and b/lasvecka-node/public/icons/7/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/7/favicon-32x32.png b/lasvecka-node/public/icons/7/favicon-32x32.png
new file mode 100644
index 0000000..d05ac4d
Binary files /dev/null and b/lasvecka-node/public/icons/7/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/7/favicon.ico b/lasvecka-node/public/icons/7/favicon.ico
new file mode 100644
index 0000000..0440be0
Binary files /dev/null and b/lasvecka-node/public/icons/7/favicon.ico differ
diff --git a/lasvecka-node/public/icons/8/android-chrome-192x192.png b/lasvecka-node/public/icons/8/android-chrome-192x192.png
new file mode 100644
index 0000000..6ed8600
Binary files /dev/null and b/lasvecka-node/public/icons/8/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/8/android-chrome-512x512.png b/lasvecka-node/public/icons/8/android-chrome-512x512.png
new file mode 100644
index 0000000..f2f2c85
Binary files /dev/null and b/lasvecka-node/public/icons/8/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/8/apple-touch-icon.png b/lasvecka-node/public/icons/8/apple-touch-icon.png
new file mode 100644
index 0000000..0196556
Binary files /dev/null and b/lasvecka-node/public/icons/8/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/8/favicon-16x16.png b/lasvecka-node/public/icons/8/favicon-16x16.png
new file mode 100644
index 0000000..e24b5c7
Binary files /dev/null and b/lasvecka-node/public/icons/8/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/8/favicon-32x32.png b/lasvecka-node/public/icons/8/favicon-32x32.png
new file mode 100644
index 0000000..3312e47
Binary files /dev/null and b/lasvecka-node/public/icons/8/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/8/favicon.ico b/lasvecka-node/public/icons/8/favicon.ico
new file mode 100644
index 0000000..17a7beb
Binary files /dev/null and b/lasvecka-node/public/icons/8/favicon.ico differ
diff --git a/lasvecka-node/public/icons/S/android-chrome-192x192.png b/lasvecka-node/public/icons/S/android-chrome-192x192.png
new file mode 100644
index 0000000..5e2020c
Binary files /dev/null and b/lasvecka-node/public/icons/S/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/S/android-chrome-512x512.png b/lasvecka-node/public/icons/S/android-chrome-512x512.png
new file mode 100644
index 0000000..79fd990
Binary files /dev/null and b/lasvecka-node/public/icons/S/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/S/apple-touch-icon.png b/lasvecka-node/public/icons/S/apple-touch-icon.png
new file mode 100644
index 0000000..42a56e8
Binary files /dev/null and b/lasvecka-node/public/icons/S/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/S/favicon-16x16.png b/lasvecka-node/public/icons/S/favicon-16x16.png
new file mode 100644
index 0000000..8c3123c
Binary files /dev/null and b/lasvecka-node/public/icons/S/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/S/favicon-32x32.png b/lasvecka-node/public/icons/S/favicon-32x32.png
new file mode 100644
index 0000000..97bd8ef
Binary files /dev/null and b/lasvecka-node/public/icons/S/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/S/favicon.ico b/lasvecka-node/public/icons/S/favicon.ico
new file mode 100644
index 0000000..8523b31
Binary files /dev/null and b/lasvecka-node/public/icons/S/favicon.ico differ
diff --git a/lasvecka-node/public/icons/T/android-chrome-192x192.png b/lasvecka-node/public/icons/T/android-chrome-192x192.png
new file mode 100644
index 0000000..275fd4e
Binary files /dev/null and b/lasvecka-node/public/icons/T/android-chrome-192x192.png differ
diff --git a/lasvecka-node/public/icons/T/android-chrome-512x512.png b/lasvecka-node/public/icons/T/android-chrome-512x512.png
new file mode 100644
index 0000000..5150d1f
Binary files /dev/null and b/lasvecka-node/public/icons/T/android-chrome-512x512.png differ
diff --git a/lasvecka-node/public/icons/T/apple-touch-icon.png b/lasvecka-node/public/icons/T/apple-touch-icon.png
new file mode 100644
index 0000000..fc8d1c8
Binary files /dev/null and b/lasvecka-node/public/icons/T/apple-touch-icon.png differ
diff --git a/lasvecka-node/public/icons/T/favicon-16x16.png b/lasvecka-node/public/icons/T/favicon-16x16.png
new file mode 100644
index 0000000..a507d82
Binary files /dev/null and b/lasvecka-node/public/icons/T/favicon-16x16.png differ
diff --git a/lasvecka-node/public/icons/T/favicon-32x32.png b/lasvecka-node/public/icons/T/favicon-32x32.png
new file mode 100644
index 0000000..c9f2abc
Binary files /dev/null and b/lasvecka-node/public/icons/T/favicon-32x32.png differ
diff --git a/lasvecka-node/public/icons/T/favicon.ico b/lasvecka-node/public/icons/T/favicon.ico
new file mode 100644
index 0000000..5e8563b
Binary files /dev/null and b/lasvecka-node/public/icons/T/favicon.ico differ
diff --git a/lasvecka-node/public/site.webmanifest b/lasvecka-node/public/site.webmanifest
deleted file mode 100644
index 693635a..0000000
--- a/lasvecka-node/public/site.webmanifest
+++ /dev/null
@@ -1 +0,0 @@
-{"name":"läsvecka.nu","short_name":"läsvecka.nu","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#1c7bb7","background_color":"#90c0de","display":"standalone"}
\ No newline at end of file