From 3ce976507ef5afa6c1df462aef7afd57e5706561 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Fri, 29 Mar 2024 22:00:17 +1100 Subject: [PATCH] Seperated landing page into self contained template as gradient stylings were making the dashboard hard to read --- app.py | 2 +- templates/base.html | 2 +- templates/dashboard.html | 3 +- templates/home.html | 278 +++++++++++++++++++++++---------------- 4 files changed, 170 insertions(+), 115 deletions(-) diff --git a/app.py b/app.py index 349de06..98aa106 100644 --- a/app.py +++ b/app.py @@ -102,7 +102,7 @@ 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.html", http_functions=http_functions) + return render_template("dashboard/http_functions/overview.html", http_functions=http_functions) @ app.route("/dashboard/http_functions", methods=["GET"]) @login_required diff --git a/templates/base.html b/templates/base.html index 44bc5b6..2d2e74b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -46,7 +46,7 @@ - +
{% block content %} diff --git a/templates/dashboard.html b/templates/dashboard.html index c487aa6..f6f6f31 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -90,7 +90,8 @@
{% block page %} - {{ render_partial('dashboard/http_functions/overview.html', http_functions=http_functions) }} + {{ render_block(app.jinja_env, "dashboard/http_functions/overview.html", "page", + http_functions=http_functions) }} {% endblock %}
diff --git a/templates/home.html b/templates/home.html index 0cc9c70..d2ce5a9 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,118 +1,172 @@ -{% extends 'base.html' %} + + -{% block content %} + + + - - -
-

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 -
- - -{{ render_partial('function_editor.html', name=name, script=script, environment_info=environment_info) }} - -
- -
-{% endblock %} \ No newline at end of file + \ No newline at end of file