Files
FTCWebsite/app.py
2025-02-12 02:28:35 +00:00

48 lines
1.0 KiB
Python

# TODO
# Fix all text sizes across all pages except competition log
# Fix all top margins (do 20ish vh instead)
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/home')
def home():
return render_template('home.html')
@app.route('/contributors')
def contributors():
return render_template('contributors.html')
@app.route('/robot')
def robot():
return render_template('robot.html')
@app.route('/competitions')
def competitions():
return render_template('competitions.html')
# @app.route('/awards')
# def awards():
# return render_template('awards.html')
@app.route('/contact')
def contact():
return render_template('contact.html')
@app.route('/sponsors')
def sponsors():
return render_template('sponsors.html')
@app.route('/robots')
@app.route('/robots/<type>')
def robots(type=None):
if type is None:
return render_template('robots.html')
else:
return render_template(f'robots-{type}.html')
if __name__ == '__main__':
app.run(debug=True)