diff --git a/__pycache__/app.cpython-39.pyc b/__pycache__/app.cpython-39.pyc new file mode 100644 index 0000000..681a08c Binary files /dev/null and b/__pycache__/app.cpython-39.pyc differ diff --git a/angela.jpg b/angela.jpg index d38d47e..52c6ddd 100644 Binary files a/angela.jpg and b/angela.jpg differ diff --git a/app.py b/app.py new file mode 100644 index 0000000..2a91eca --- /dev/null +++ b/app.py @@ -0,0 +1,41 @@ +from flask import Flask, render_template, request +import logging + +app = Flask(__name__) +app.logger.disabled = True +log = logging.getLogger('werkzeug') +log.disabled = True + + +@app.route("/", methods=["GET", "POST"]) +def trouble(): + if request.method == "POST": + name = request.form.get("name") + email = request.form.get("email") + subject = request.form.get("subject") + message = request.form.get("message") + print( + f"\n===============\nNEW INQUIRY!\n\nNAME: {name}\nEMAIL: {email}\nSUBJECT: {subject}\nINQUIRY:\n{message}\n===============\n") + return render_template("sent.html") + else: + return render_template("troubleshoot.html") + + +@app.route("/") +def indexpage(): + return render_template("index.html") + + +@app.route("/") +def commandpage(): + return render_template("command.html") + + +@app.route("/") +def faqpage(): + return render_template("faq.html") + + +@app.route("/") +def teampage(): + return render_template("team.html") diff --git a/command.html b/command.html index 99cd28d..bb745ec 100644 --- a/command.html +++ b/command.html @@ -4,56 +4,62 @@