diff --git a/app.py b/app.py index 5ead356..fb9ac99 100644 --- a/app.py +++ b/app.py @@ -26,8 +26,9 @@ def is_logged_in(): @app.route('/') def index(): + # If not logged in, show the landing page instead of redirecting if not is_logged_in(): - return redirect(url_for('login')) + return render_template('landing.html') user_id = get_user_id() @@ -99,6 +100,10 @@ def logout(): session.clear() return redirect(url_for('login')) +@app.route('/roadmap') +def roadmap(): + return render_template('roadmap.html') + @app.route('/add_activity', methods=['POST']) def add_activity(): if not is_logged_in(): return redirect(url_for('login')) diff --git a/templates/landing.html b/templates/landing.html new file mode 100644 index 0000000..54324d0 --- /dev/null +++ b/templates/landing.html @@ -0,0 +1,40 @@ +{% extends "layout.html" %} +{% block content %} +
+ If you are like me, you often wonder how the day could pass by so quickly. + Or maybe, like me, you just need a simple tool to track your time so you don't overwork yourself. +
+ ++ OpenTimeTracker is for you. You can even host it yourself if you like. +
+ ++ There are no unnecessary collaboration features standing in your way. It is for you, and that should be enough. +
+ +
+ Happy Tracking,
+ Calvin Erfmann
+