From 628b4c01486a367c8d6e7a82f555068dd9c3a7c9 Mon Sep 17 00:00:00 2001 From: Nyx Date: Sun, 23 Mar 2025 00:54:16 -0500 Subject: [PATCH] about page --- utils/app.py | 4 ++++ utils/static/about.html | 26 ++++++++++++++++++++++++++ utils/templates/index.j2 | 5 +++-- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 utils/static/about.html diff --git a/utils/app.py b/utils/app.py index 2629d22..e027c4b 100644 --- a/utils/app.py +++ b/utils/app.py @@ -54,5 +54,9 @@ def case(): return redirect(url_for('result', result=result, type='casing')) return render_template('casing.j2') +@app.route('/about') +def about(): + return send_from_directory('static', 'about.sanitize_html') + if __name__ == '__main__': app.run(debug=True) diff --git a/utils/static/about.html b/utils/static/about.html new file mode 100644 index 0000000..808f5be --- /dev/null +++ b/utils/static/about.html @@ -0,0 +1,26 @@ + + + + Utilities + + + + +

about

+

+ utils is a collection of tools made by Nyx for everypizza.im. it exists + because we belive JavaScript is bad when you can render server-side. as such, + all of these tools are done server-side. we plan to make a self-hosting guide + very soon. +

+

+ this is run on the same server that powers most of everypizza.im, although it + may move to the pi server soon. it's a python/flask app. mostly made in vim. +

+ + + diff --git a/utils/templates/index.j2 b/utils/templates/index.j2 index f623f17..c616b1e 100644 --- a/utils/templates/index.j2 +++ b/utils/templates/index.j2 @@ -23,6 +23,7 @@ - \ No newline at end of file +