diff --git a/snikket_web/__init__.py b/snikket_web/__init__.py index 0f1a61a..7f7e810 100644 --- a/snikket_web/__init__.py +++ b/snikket_web/__init__.py @@ -15,6 +15,7 @@ from quart import ( render_template, current_app, redirect, + jsonify, ) import environ @@ -196,6 +197,44 @@ def create_app() -> quart.Quart: return redirect(url_for('main.login')) + @app.route("/site.webmanifest") + def site_manifest() -> quart.Response: + # this is needed for icons + return jsonify( + { + "name": "Snikket", + "short_name": "Snikket", + "icons": [ + { + "src": url_for( + "static", + filename="img/android-chrome-192x192.png", + ), + "sizes": "192x192", + "type": "image/png" + }, + { + "src": url_for( + "static", + filename="img/android-chrome-256x256.png", + ), + "sizes": "256x256", + "type": "image/png" + }, + { + "src": url_for( + "static", + filename="img/android-chrome-512x512.png", + ), + "sizes": "512x512", + "type": "image/png" + }, + ], + "theme_color": "#fbfdff", + "background_color": "#fbfdff", + } + ) + logging_config = app.config.get("LOGGING_CONFIG") if logging_config is not None: if isinstance(logging_config, dict): diff --git a/snikket_web/static/img/android-chrome-192x192.png b/snikket_web/static/img/android-chrome-192x192.png new file mode 100644 index 0000000..6c01f9d Binary files /dev/null and b/snikket_web/static/img/android-chrome-192x192.png differ diff --git a/snikket_web/static/img/android-chrome-256x256.png b/snikket_web/static/img/android-chrome-256x256.png new file mode 100644 index 0000000..6fad754 Binary files /dev/null and b/snikket_web/static/img/android-chrome-256x256.png differ diff --git a/snikket_web/static/img/android-chrome-512x512.png b/snikket_web/static/img/android-chrome-512x512.png new file mode 100644 index 0000000..60303fb Binary files /dev/null and b/snikket_web/static/img/android-chrome-512x512.png differ diff --git a/snikket_web/static/img/apple-touch-icon.png b/snikket_web/static/img/apple-touch-icon.png new file mode 100644 index 0000000..90227c6 Binary files /dev/null and b/snikket_web/static/img/apple-touch-icon.png differ diff --git a/snikket_web/static/img/favicon-16x16.png b/snikket_web/static/img/favicon-16x16.png new file mode 100644 index 0000000..ea70a19 Binary files /dev/null and b/snikket_web/static/img/favicon-16x16.png differ diff --git a/snikket_web/static/img/favicon-32x32.png b/snikket_web/static/img/favicon-32x32.png new file mode 100644 index 0000000..ddf5bde Binary files /dev/null and b/snikket_web/static/img/favicon-32x32.png differ diff --git a/snikket_web/static/img/safari-pinned-tab.svg b/snikket_web/static/img/safari-pinned-tab.svg new file mode 100644 index 0000000..91745ca --- /dev/null +++ b/snikket_web/static/img/safari-pinned-tab.svg @@ -0,0 +1,33 @@ + + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + + + + diff --git a/snikket_web/templates/base.html b/snikket_web/templates/base.html index 1c9322b..d906bce 100644 --- a/snikket_web/templates/base.html +++ b/snikket_web/templates/base.html @@ -8,11 +8,11 @@ {% endblock %} - - - - - + + + + +