From 39c819f062d24d7570a99c778d2f82257a26c2e5 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Wed, 23 Jul 2025 21:36:22 +1000 Subject: [PATCH] Rename home to landing page --- app.py | 14 +-- templates/home.html | 196 ---------------------------------- templates/mithril_loader.html | 44 +++++++- 3 files changed, 44 insertions(+), 210 deletions(-) delete mode 100644 templates/home.html diff --git a/app.py b/app.py index 3042201..6547538 100644 --- a/app.py +++ b/app.py @@ -115,21 +115,13 @@ def map_isolator_response_to_flask_response(response): @ app.route("/", methods=["GET"]) -def home(): - return render_template("home.html", name='Try me', script=DEFAULT_SCRIPT, environment_info=DEFAULT_ENVIRONMENT) +def landing_page(): + return render_template("landing_page.html", name='Try me', script=DEFAULT_SCRIPT, environment_info=DEFAULT_ENVIRONMENT) @app.route("/documentation", methods=["GET"]) def documentation(): return render_template("documentation.html") -@ app.route("/dashboard", methods=["GET"]) -@login_required -def dashboard(): - user_id = current_user.id - http_functions = db.get_http_functions_for_user(user_id) - http_functions = create_http_functions_view_model(http_functions) - return render_template("dashboard/http_functions/overview.html", http_functions=http_functions) - @app.route('/execute', methods=['POST']) def execute_code(): try: @@ -307,7 +299,7 @@ def signup(): @login_required def logout(): logout_user() - return redirect(url_for('home')) + return redirect(url_for('landing_page')) diff --git a/templates/home.html b/templates/home.html deleted file mode 100644 index d35af96..0000000 --- a/templates/home.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - - Function - - - - - - - - - - - - - - - - - - - -
- - - -
-

Build HTTP and Timer Functions - with Ease - -

-

No DevOps, Git, or command-line - - just your - browser. -

-

- Focus on coding; we handle the deployment seamlessly. -

- - - Sign Up - - - View documentation -
- -
- -
- - - -
- -
-
- \ No newline at end of file diff --git a/templates/mithril_loader.html b/templates/mithril_loader.html index 799aea8..1fb67db 100644 --- a/templates/mithril_loader.html +++ b/templates/mithril_loader.html @@ -3,9 +3,47 @@ {% block content %}
+ + + {% endblock %} \ No newline at end of file