From d5563db2611239a904eabfc46ab75ded7ca4e2e2 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Mon, 7 Feb 2022 19:08:24 -0600 Subject: Create basic template application --- app/.gitignore | 1 + app/app.py | 7 +++++ app/static/style.css | 0 app/templates/base.html | 67 ++++++++++++++++++++++++++++++++++++++++ app/templates/base/home.html | 0 app/templates/base/index.html | 7 +++++ app/templates/user/login.html | 0 app/templates/user/register.html | 0 8 files changed, 82 insertions(+) create mode 100644 app/.gitignore create mode 100644 app/app.py create mode 100644 app/static/style.css create mode 100644 app/templates/base.html create mode 100644 app/templates/base/home.html create mode 100644 app/templates/base/index.html create mode 100644 app/templates/user/login.html create mode 100644 app/templates/user/register.html diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..c18dd8d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +__pycache__/ diff --git a/app/app.py b/app/app.py new file mode 100644 index 0000000..2ea9126 --- /dev/null +++ b/app/app.py @@ -0,0 +1,7 @@ +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route("/", methods=["GET"]) +def index(): + return render_template('base/index.html') diff --git a/app/static/style.css b/app/static/style.css new file mode 100644 index 0000000..e69de29 diff --git a/app/templates/base.html b/app/templates/base.html new file mode 100644 index 0000000..6f23b73 --- /dev/null +++ b/app/templates/base.html @@ -0,0 +1,67 @@ + + + + + + + + + + Strenghty + + + + + + + {% block content %}{% endblock %} + + + + diff --git a/app/templates/base/home.html b/app/templates/base/home.html new file mode 100644 index 0000000..e69de29 diff --git a/app/templates/base/index.html b/app/templates/base/index.html new file mode 100644 index 0000000..11d266c --- /dev/null +++ b/app/templates/base/index.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} + +Welcome to Strengthy + +{% endblock %} diff --git a/app/templates/user/login.html b/app/templates/user/login.html new file mode 100644 index 0000000..e69de29 diff --git a/app/templates/user/register.html b/app/templates/user/register.html new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3