Added routing for sponsor package and code of conduct

This commit is contained in:
willhockey20 2022-12-20 18:26:55 -05:00
parent ae8919d71d
commit 7eb106c9e4
2 changed files with 21 additions and 2 deletions

View file

@ -44,6 +44,25 @@ def create_app():
from goathacks import cli from goathacks import cli
app.cli.add_command(cli.gr) app.cli.add_command(cli.gr)
#Sponsor page
@app.route("/sponsor")
def sponsorindex():
return render_template('home/sponsor/index.html')
@app.route('/sponsor/<path:path>')
def sponsor(path):
return send_from_directory('templates/home/sponsor', path)
#Code of condcut
@app.route("/conduct")
def conductindex():
return render_template('home/conduct/index.html')
@app.route('/conduct/<path:path>')
def conduct(path):
return send_from_directory('templates/home/conduct', path)
# Homepage # Homepage
@app.route("/") @app.route("/")
def index_redirect(): def index_redirect():

View file

@ -22,7 +22,7 @@
<nav class="navbar navbar-inverse sticky-top navbar-expand"> <nav class="navbar navbar-inverse sticky-top navbar-expand">
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<a class="navbar-brand" href="/">Hack@WPI</a> <a class="navbar-brand" href="/">Goathacks</a>
</div> </div>
<ul class="nav justify-content-end"> <ul class="nav justify-content-end">
<!-- <li class="nav-item"> <!-- <li class="nav-item">
@ -36,7 +36,7 @@
<a class="nav-link" href="../static/assets/Hack@WPI-SponsorshipInformation-2020.pdf">Sponsorship Packet</a> <a class="nav-link" href="../static/assets/Hack@WPI-SponsorshipInformation-2020.pdf">Sponsorship Packet</a>
</li> --> </li> -->
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">Code of Conduct</a> <a class="nav-link" href="https://hack.wpi.edu/conduct/GoatHacks-Code-of-Conduct.pdf">Code of Conduct</a>
</li> </li>
</ul> </ul>
</div> </div>