Goodbye tailwind, hello material lite

This commit is contained in:
Jonathan Carter
2024-09-07 23:11:41 +02:00
parent c69f570b69
commit ea15859f16
5 changed files with 23 additions and 14 deletions

View File

@@ -1,4 +1,6 @@
from applets.webui import bp
from flask import Flask, request, session, redirect, \
url_for, render_template, flash, Blueprint
@bp.route('/webui')
@@ -9,7 +11,7 @@ def webui_index():
"""
return ("""
<head>
<script src="https://unpkg.com/htmx.org@1.9.11" integrity="sha384-0gxUXCCR8yv9FM2b+U3FDbsKthCI66oH5IA9fHppQq9DDMHuMauqq1ZHBpJxQ0J0" crossorigin="anonymous"></script>
<script src="/static/htmx.min.js.gz crossorigin="anonymous"></script>
</head>
<button hx-post="/clicked"
hx-trigger="click"
@@ -31,3 +33,17 @@ def webui_index():
Welcome to System Installer Daemon POC <br />
This is the WebUI Index
""")
@bp.route('/webui/welcome')
def webui_welcome():
"""
Welcome screen for the webui.
It's job right now is to:
- Obtain the language
- Check basic system eligibility
"""
return render_template('welcome.html')