Update WebHost to include new tutorial landing page.

- Added MSU-1 setup guide
- Updated header and landing page for title change
- Re-structured tutorial files
- Added tutorials.json, which is used when constructing the new /tutorial page
This commit is contained in:
Chris Wilson
2021-01-03 17:46:47 -05:00
parent eb58ee2422
commit b063407d2b
15 changed files with 340 additions and 39 deletions

View File

@@ -79,10 +79,14 @@ def register_session():
session["_id"] = uuid4() # uniquely identify each session without needing a login
@app.route('/tutorial/<string:game>/<string:file>/<string:lang>')
def tutorial(game, file, lang):
return render_template("tutorial.html", game=game, file=file, lang=lang)
@app.route('/tutorial')
@app.route('/tutorial/<string:lang>')
def tutorial(lang='en'):
return render_template(f"tutorial.html", lang=lang)
def tutorial_landing():
return render_template("tutorialLanding.html")
@app.route('/player-settings')