diff --git a/app/FoodBot.py b/app/FoodBot.py new file mode 100644 index 0000000..6996bf7 --- /dev/null +++ b/app/FoodBot.py @@ -0,0 +1,40 @@ +# import sqlite3 +from flask import Flask, request, render_template + +# Config +DATABASE = '/db/foodbot.db' +DEBUG = True +SECRET_KEY = 'development key' +USERNAME = 'admin' +PASSWORD = 'tetten' + +app = Flask(__name__) +app.config.from_object(__name__) + + +@app.route('/') +def home(): + return render_template('home.html') + + +@app.route('/about/') +def about(): + return render_template('about.html') + + +@app.route('/stats/') +def stats(): + return render_template('stats.html') + + +@app.route('/login/', methods=['GET', 'POST']) +def login(): + if request.method == 'POST': + pass + else: + return render_template('login.html') + + +if __name__ == '__main__': + app.run(debug=True) + # app.run(host='0.0.0.0') \ No newline at end of file diff --git a/app/README.md b/app/README.md new file mode 100644 index 0000000..24eb140 --- /dev/null +++ b/app/README.md @@ -0,0 +1,7 @@ +FOODBOT +======= + +FoodBot exists so lazy fucks like you and me don't need to keep tabs of who is ordering what from where. +Start an order and let people add items with a simple mouse-click! +No more calculating prices and making lists! +Be lazier today! \ No newline at end of file diff --git a/app/static/css/main.css b/app/static/css/main.css new file mode 100644 index 0000000..3c7e9c1 --- /dev/null +++ b/app/static/css/main.css @@ -0,0 +1,90 @@ +body { + margin: 0; + padding: 0; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + color: #444; +} + +/* + * Create dark grey header with a white logo + */ + +header { + background-color: #2B2B2B; + height: 35px; + width: 100%; + opacity: .9; + margin-bottom: 10px; +} + +header h1.logo { + margin: 0; + font-size: 1.7em; + color: #fff; + text-transform: uppercase; + float: left; +} + +header h1.logo:hover { + color: #fff; + text-decoration: none; +} + +/* + * Center the body content + */ + +.container { + width: 940px; + margin: 0 auto; +} + +div.jumbo { + padding: 10px 0 30px 0; + background-color: #eeeeee; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; +} + +div.login { + padding: 10px 0 30px 0; + background-color: #eeeeee; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; +} + +h2 { + font-size: 3em; + margin-top: 40px; + text-align: center; + letter-spacing: -2px; +} + +h3 { + font-size: 1.7em; + font-weight: 100; + margin-top: 30px; + text-align: center; + letter-spacing: -1px; + color: #999; +} + +.menu { + float: right; + margin-top: 8px; +} + +.menu li { + display: inline; +} + +.menu li + li { + margin-left: 35px; +} + +.menu li a { + color: #999; + text-decoration: none; +} \ No newline at end of file diff --git a/app/templates/about.html b/app/templates/about.html new file mode 100644 index 0000000..a36d7c4 --- /dev/null +++ b/app/templates/about.html @@ -0,0 +1,6 @@ +{% extends "layout.html" %} + +{% block content %} +

About

+

This is an About page for FoodBot. Don't I look good? Oh stop, you're making me blush.

+{% endblock %} \ No newline at end of file diff --git a/app/templates/home.html b/app/templates/home.html new file mode 100644 index 0000000..1e0bf08 --- /dev/null +++ b/app/templates/home.html @@ -0,0 +1,7 @@ +{% extends "layout.html" %} +{% block content %} +
+

Welcome to FoodBot

+

This is the home page for FoodBot

+
+{% endblock %} \ No newline at end of file diff --git a/app/templates/layout.html b/app/templates/layout.html new file mode 100644 index 0000000..03685c6 --- /dev/null +++ b/app/templates/layout.html @@ -0,0 +1,30 @@ + + + + + FoodBot + + + + +
+
+

FOODBOT

+ +
+
+ +
+ {% block content %} + {% endblock %} +
+ + + \ No newline at end of file diff --git a/app/templates/login.html b/app/templates/login.html new file mode 100644 index 0000000..940493e --- /dev/null +++ b/app/templates/login.html @@ -0,0 +1,24 @@ +{% extends "layout.html" %} + +{% block content %} +
+
+

Login with Zeus-Account

+
+

+

+

+ +

+

+
+
+ +
+

Forgot your password? Click here to reset it.

+
+
+{% endblock %} \ No newline at end of file diff --git a/app/templates/stats.html b/app/templates/stats.html new file mode 100644 index 0000000..553a0d1 --- /dev/null +++ b/app/templates/stats.html @@ -0,0 +1,6 @@ +{% extends "layout.html" %} + +{% block content %} +

Stats bruh

+

TOP 4

+{% endblock %} \ No newline at end of file diff --git a/db/muhscheme b/db/muhscheme new file mode 100644 index 0000000..d5be7c2 --- /dev/null +++ b/db/muhscheme @@ -0,0 +1,15 @@ +ORDERS +======= +OrderID | Courier | Locatie | Starttijdstip | Eindtijstip | Comment + +Item +===== +ItemID | OrderID | User | Food + +Locaties +====== +LocatieID | Naam | Adres | Telefoonnummer + +Food +===== +FoodID | LocatieID | Naam | Prijs \ No newline at end of file