add awards
This commit is contained in:
parent
168fba8e55
commit
2c545ba74b
61
app.py
61
app.py
@ -26,6 +26,67 @@ def about():
|
|||||||
return render_template("about.html")
|
return render_template("about.html")
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/awards")
|
||||||
|
def awards():
|
||||||
|
award_data = [
|
||||||
|
{
|
||||||
|
"name": "Nobel Prize in Physics",
|
||||||
|
"year": "1934",
|
||||||
|
"for": "Discovery of the 8th Dimension",
|
||||||
|
"to": "John Whorfin",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Cousteau Society Award",
|
||||||
|
"year": "1989",
|
||||||
|
"for": "Uses of Cephalopod Intelligence",
|
||||||
|
"to": "John Fish",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Best Supporting Actor",
|
||||||
|
"year": "1985",
|
||||||
|
"for": "John Lithgow Biopic",
|
||||||
|
"to": "John Whorfin",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nobel Prize in Physics",
|
||||||
|
"year": "2986",
|
||||||
|
"for": "Temporal Paradox Resolution",
|
||||||
|
"to": "John O'Connor",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Paralegal of the Year",
|
||||||
|
"year": "1999",
|
||||||
|
"for": "Paralegal Activity",
|
||||||
|
"to": "John Two Horns",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ACM Award",
|
||||||
|
"year": "1986",
|
||||||
|
"for": "Innovations in User Interface",
|
||||||
|
"to": "John Ya Ya",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "2nd Place, Most Jars Category",
|
||||||
|
"year": "1987",
|
||||||
|
"for": "Jars",
|
||||||
|
"to": "John Many Jars",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Album of the Year",
|
||||||
|
"year": "1997",
|
||||||
|
"for": "Space Coyote",
|
||||||
|
"to": "John Coyote",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Most Creative Loophole",
|
||||||
|
"year": "1985",
|
||||||
|
"for": "Innovation in Interdimensional Tax Shelters",
|
||||||
|
"to": "John Lee",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
return render_template("awards.html", awards=award_data)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/staff")
|
@app.route("/staff")
|
||||||
def staff():
|
def staff():
|
||||||
page = int(request.args.get("page", 1))
|
page = int(request.args.get("page", 1))
|
||||||
|
26
templates/awards.html
Normal file
26
templates/awards.html
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block base %}
|
||||||
|
<div class="card fluid">
|
||||||
|
<h1 class="section">Yoyodyne Propulsion Systems <small>Awards</small></h1>
|
||||||
|
<div class="section">
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
{% for award in awards %}
|
||||||
|
<div class="card large">
|
||||||
|
<div class="section">
|
||||||
|
<h2>{{ award.name }} <small>{{ award.year }}</small></h2>
|
||||||
|
<dl>
|
||||||
|
<dt>For<dt>
|
||||||
|
<dd>{{ award.for }}</dd>
|
||||||
|
<dt>Awarded To</dt>
|
||||||
|
<dd>{{ award.to }}</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
@ -9,6 +9,7 @@
|
|||||||
<a href="#" class="logo">YPS</a>
|
<a href="#" class="logo">YPS</a>
|
||||||
<a href="/" class="button">Home</a>
|
<a href="/" class="button">Home</a>
|
||||||
<a href="/staff" class="button">Staff</a>
|
<a href="/staff" class="button">Staff</a>
|
||||||
|
<a href="/awards" class="button">Awards</a>
|
||||||
<a href="/about" class="button">About</a>
|
<a href="/about" class="button">About</a>
|
||||||
</header>
|
</header>
|
||||||
{% block base %}
|
{% block base %}
|
||||||
|
Loading…
Reference in New Issue
Block a user