diff --git a/README.md b/README.md index bda7c74..9b47b44 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,5 @@ Dependencies - flask - pytest - coverage + - libjs-htmx + - libjs-material-design-lite diff --git a/src/applets/webui/routes.py b/src/applets/webui/routes.py index f693b2b..349a2bd 100644 --- a/src/applets/webui/routes.py +++ b/src/applets/webui/routes.py @@ -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 ("""
- + 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') + diff --git a/src/static/htmx.min.js.gz b/src/static/htmx.min.js.gz new file mode 120000 index 0000000..6d2a285 --- /dev/null +++ b/src/static/htmx.min.js.gz @@ -0,0 +1 @@ +/usr/share/javascript/htmx/htmx.min.js.gz \ No newline at end of file diff --git a/src/static/material.css b/src/static/material.css new file mode 120000 index 0000000..e544698 --- /dev/null +++ b/src/static/material.css @@ -0,0 +1 @@ +/usr/share/javascript/libjs-material-design-lite/css/material.css \ No newline at end of file diff --git a/src/templates/welcome.html b/src/templates/welcome.html index 4f5052d..ebf1502 100644 --- a/src/templates/welcome.html +++ b/src/templates/welcome.html @@ -3,19 +3,8 @@ + - -