diff --git a/app.py b/app.py index e6b1f43..8219acc 100644 --- a/app.py +++ b/app.py @@ -32,7 +32,19 @@ def inject_user(): @app.route('/') def index(): # return 'Hello World' - return render_template('index.html', title='Home', utc_dt=datetime.datetime.now().strftime("%d.%m.%Y %H:%M:%S")) + """ + if current_user.is_authenticated: + habits = Habit.get_all(current_user.id) + else: + habits = [] + """ + # habits = [("lesen", "eine Seite vor dem schlafen gehen"), ("sport", "3x Gym")] + return render_template( + 'index.html', + title='Home', + utc_dt=datetime.datetime.now().strftime("%d.%m.%Y %H:%M:%S"), + #habits=habits + ) @app.route('/test') diff --git a/static/main.css b/static/main.css index d31d692..b1cc7cd 100644 --- a/static/main.css +++ b/static/main.css @@ -21,4 +21,15 @@ 0%{background-position:0 50%} 50%{background-position:100% 50%} 100%{background-position:0 50%} +} +.day { + width: calc(100% / 7); + height: 20px; + border: 1px solid #ccc; + box-sizing: border-box; +} + +.heatmap { + display: flex; + flex-wrap: wrap; } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 6de835d..6bf4b2a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,109 +4,51 @@
| Prediction | -Integer | -Percentage | -Currency | -Formatted Float | -
|---|---|---|---|---|
| N/A | -1110 | -200% | -$1000 | -1,000.5 | -
| Yellow | -777 | -1199% | -$101 | -9,900 | -
| Green | -1000 | -201% | -$201 | -2,001.1 | -
| Red | -999 | -200% | -$2890 | -2,000.2 | -