use ico for favicons

This commit is contained in:
steven 2025-05-06 04:44:45 -04:00
parent c056ee3c8e
commit 56e0835b33
11 changed files with 4 additions and 19 deletions

12
app.py
View file

@ -49,18 +49,6 @@ def index_space(space):
def index_event(event):
return render_template("event.html", data=e(event))
@app.route("/calendar.svg")
def static_calendar():
return send_from_directory(app.static_folder, "calendar.svg")
@app.route("/clock.svg")
def static_clock():
return send_from_directory(app.static_folder, "clock.svg")
@app.route("/location.svg")
def static_location():
return send_from_directory(app.static_folder, "location.svg")
@app.route('/<int:space>.json')
@cache.cached(timeout=86400)
def s(space):

BIN
static/calendar.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#63E6BE" d="M96 32l0 32L48 64C21.5 64 0 85.5 0 112l0 48 448 0 0-48c0-26.5-21.5-48-48-48l-48 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32L160 64l0-32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192L0 192 0 464c0 26.5 21.5 48 48 48l352 0c26.5 0 48-21.5 48-48l0-272z"/></svg>

Before

Width:  |  Height:  |  Size: 346 B

BIN
static/clock.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#63E6BE" d="M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg>

Before

Width:  |  Height:  |  Size: 274 B

BIN
static/location.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="#63E6BE" d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>

Before

Width:  |  Height:  |  Size: 264 B

View file

@ -16,7 +16,7 @@
{%- endif %}
{%- endif %}
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="clock.svg" type="image/svg+xml">
<link rel="shortcut icon" href="static/clock.ico">
<meta name="color-scheme" content="dark light">
<link rel="stylesheet" href="/static/picocss/css/pico.min.css">
</head>

View file

@ -6,7 +6,7 @@
<title>UofL Events</title>
<meta name="description" content="Find events at the University of Louisville">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="calendar.svg" type="image/svg+xml">
<link rel="shortcut icon" href="static/calendar.ico">
<meta name="color-scheme" content="dark light">
<link rel="stylesheet" href="/static/picocss/css/pico.jade.min.css">
</head>

View file

@ -5,7 +5,7 @@
<meta property="og:site_name" content="44live">
<title>{{ day }} - 44live</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="calendar.svg" type="image/svg+xml">
<link rel="shortcut icon" href="static/calendar.ico">
<link rel="stylesheet" href="/static/picocss/css/pico.min.css">
<base target="_blank">
<style>

View file

@ -5,7 +5,7 @@
<meta property="og:site_name" content="44live">
<title>{{ data.space_name }}{{ " ("+data.building_name+")" if data.building_name }}</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="location.svg" type="image/svg+xml">
<link rel="shortcut icon" href="static/location.ico">
<meta name="color-scheme" content="dark light">
<link rel="stylesheet" href="/static/picocss/css/pico.min.css">
</head>