Compare commits

...

2 commits

Author SHA1 Message Date
nyx
9c44286436 turns out that didn't work 2025-03-15 03:15:45 -05:00
nyx
aeb1403a6c about page (start work) 2025-03-15 02:30:25 -05:00
2 changed files with 28 additions and 0 deletions

View file

@ -120,6 +120,9 @@ def private_profile():
def index_css():
return send_from_directory('static/assets/css', 'index.css')
@app.route('/about')
def about():
return render_template('about.j2', version="0.0.0", instanceBranding=instanceBranding)
extra_dirs = ['app/templates', 'static/assets/css']
extra_files = extra_dirs[:]

25
app/templates/about.j2 Normal file
View file

@ -0,0 +1,25 @@
{% from 'header.j2' import header_home %}
{% from 'imports.j2' import imports_main %}
<html lang="en">
<head>
<title>{{ instanceBranding }} - Register</title>
{{ imports_main() }}
</head>
<body>
{{ header_home() }}
<div style="text-align:center">
<h1>
NyxAsk at {{ instanceBranding }}
</h1>
<p>
NyxAsk version {{ version }} (commit TODO)
</p>
<p>
Source code: <a href="https://git.everypizza.im/n/nyxask/">https://git.everypizza.im/n/nyxask/</a>
</p>
<p>
Made with <3 by Nyx Tutt. Licensed under the Unlicense.
</p>
</div>
</body>
</html>