Skip to content

Commit

Permalink
Added manifest and favicon as static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Ex-iT committed May 28, 2024
1 parent 9799369 commit 8f8d5f8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
NONCE = ''
TIMEZONE = 'Europe/Amsterdam'

app = Flask(__name__)
app = Flask(__name__, static_folder='static', static_url_path='')
minify(app=app, html=True, js=True, cssless=True)

def set_nonce():
Expand Down
Binary file added static/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions static/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Save-o-Clock",
"short_name": "SoC",
"description": "Displaying the current time as a screensaver",
"id": "/?homescreen=1",
"start_url": "/?homescreen=1",
"theme_color": "#000000",
"background_color": "#000000",
"display": "standalone",
"icons": [
{
"src": "/favicon.ico",
"sizes": "16x16",
"type": "image/ico"
}
]
}
3 changes: 3 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Save-o-Clock</title>
<link rel="manifest" href="/manifest.json" />
<meta name="msapplication-TileColor" content="#1a65d4" />
<meta name="theme-color" content="#000000" />
<style>
* {
box-sizing: border-box;
Expand Down

0 comments on commit 8f8d5f8

Please sign in to comment.