diff options
| author | diogo464 <[email protected]> | 2025-05-28 20:52:27 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-05-28 20:52:27 +0100 |
| commit | acd28a9a689998b5b66f0364d4a434b3e0fdff3d (patch) | |
| tree | 34721d085150f0a769b343e7a9ad3f36d9a04f42 | |
| parent | 76a67395e6c67a2d730e7027e41a5e056c4c0256 (diff) | |
added favicon
| -rw-r--r-- | Containerfile | 1 | ||||
| -rw-r--r-- | app.py | 6 | ||||
| -rw-r--r-- | favicon.ico | bin | 0 -> 9662 bytes | |||
| -rw-r--r-- | index.html | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile index 83b0637..5d27003 100644 --- a/Containerfile +++ b/Containerfile | |||
| @@ -24,6 +24,7 @@ COPY app.py . | |||
| 24 | COPY index.html . | 24 | COPY index.html . |
| 25 | COPY script.js . | 25 | COPY script.js . |
| 26 | COPY logo.png . | 26 | COPY logo.png . |
| 27 | COPY favicon.ico . | ||
| 27 | 28 | ||
| 28 | # Expose the port | 29 | # Expose the port |
| 29 | EXPOSE 5000 | 30 | EXPOSE 5000 |
| @@ -28,6 +28,12 @@ def script(): | |||
| 28 | return send_from_directory(".", "script.js") | 28 | return send_from_directory(".", "script.js") |
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | @app.route("/favicon.ico") | ||
| 32 | def favicon(): | ||
| 33 | """Serve the favicon.""" | ||
| 34 | return send_from_directory(".", "favicon.ico") | ||
| 35 | |||
| 36 | |||
| 31 | @app.route("/", methods=["POST"]) | 37 | @app.route("/", methods=["POST"]) |
| 32 | def generate_files(): | 38 | def generate_files(): |
| 33 | """Handle configuration submission and execute bonsai.""" | 39 | """Handle configuration submission and execute bonsai.""" |
diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..849b0f4 --- /dev/null +++ b/favicon.ico | |||
| Binary files differ | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | <meta charset="UTF-8"> | 5 | <meta charset="UTF-8"> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 7 | <title>Bonsai - Network Latency Graph Generator</title> | 7 | <title>Bonsai - Network Latency Graph Generator</title> |
| 8 | <link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
| 8 | <link rel="stylesheet" href="https://unpkg.com/@picocss/[email protected]/css/pico.min.css"> | 9 | <link rel="stylesheet" href="https://unpkg.com/@picocss/[email protected]/css/pico.min.css"> |
| 9 | <style> | 10 | <style> |
| 10 | .logo-container { | 11 | .logo-container { |
