From 406effb17fe812ecfe04f7d3bf8944ac47b1ebd5 Mon Sep 17 00:00:00 2001 From: Nyx Date: Sat, 22 Mar 2025 03:29:34 -0500 Subject: [PATCH] make stuff look a bit better --- utils/app.py | 5 +++++ utils/static/index.css | 6 ++++++ utils/templates/index.j2 | 2 ++ utils/templates/result.j2 | 2 ++ 4 files changed, 15 insertions(+) create mode 100644 utils/static/index.css diff --git a/utils/app.py b/utils/app.py index bfd8662..bde4f46 100644 --- a/utils/app.py +++ b/utils/app.py @@ -17,5 +17,10 @@ def result(): ip = request.args.get('ip') return render_template('result.j2', result=ip) +@app.route('/assets/style.css') +def css(): + return send_from_directory('static', 'index.css') + + if __name__ == '__main__': app.run(debug=True) \ No newline at end of file diff --git a/utils/static/index.css b/utils/static/index.css new file mode 100644 index 0000000..00d0513 --- /dev/null +++ b/utils/static/index.css @@ -0,0 +1,6 @@ +@media (prefers-color-scheme: dark) { + body { + background-color: black; + color: white; + } +} \ No newline at end of file diff --git a/utils/templates/index.j2 b/utils/templates/index.j2 index e6ecc04..738fde4 100644 --- a/utils/templates/index.j2 +++ b/utils/templates/index.j2 @@ -1,6 +1,8 @@ Utilities + +

IPv6 generator

diff --git a/utils/templates/result.j2 b/utils/templates/result.j2 index 7de3657..80608c7 100644 --- a/utils/templates/result.j2 +++ b/utils/templates/result.j2 @@ -1,6 +1,8 @@ Utilities + +

Result for {{ action }}