Skip to content

Commit 34bdcce

Browse files
Antonio LunghiAntonio Lunghi
Antonio Lunghi
authored and
Antonio Lunghi
committed
About page
1 parent 4028996 commit 34bdcce

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

routes.py

+5
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@
77
def index():
88
return render_template("index.html")
99

10+
11+
@app.route("/about")
12+
def about():
13+
return render_template("about.html")
14+
1015
if __name__ == "__main__":
1116
app.run(debug=True)

templates/about.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="container">
66

77
<h2>About Learning Flask</h2>
8-
<p>In Learning Flask, you'll build an app that let's you find new places around you. With this app you can find places you like, and discover new points of interest wherever you are.</p>
8+
<p>In Learning Flask, you'll build an app that lets you find new places around you. With this app you can find places you like, and discover new points of interest wherever you are.</p>
99

1010
</div>
1111
</main>

templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="section-content">
88
<h2>Discover places near you.</h2>
99
<a href="#" class="btn-primary">Sign up</a>
10-
<a href="#" class="btn-secondary">Learn more</a>
10+
<a href="{{ url_for('about') }}" class="btn-secondary">Learn more</a>
1111
</div>
1212

1313
<div class="section-device">

0 commit comments

Comments
 (0)