Skip to content

Commit 98666bf

Browse files
committed
Resolve static assets.
1 parent 5941695 commit 98666bf

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

β€Žflask_wtforms_tutorial/static/css/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,12 @@ a {
1818
text-decoration: none;
1919
}
2020

21+
.logo {
22+
text-align: center;
23+
margin: 0 auto 20px;
24+
}
25+
26+
.logo img {
27+
width: 50px;
28+
margin: auto;
29+
}

β€Žflask_wtforms_tutorial/templates/contact.jinja2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
{% block content %}
1212

1313
<div class="form-wrapper">
14+
<div class="logo">
15+
<img src="{{ url_for('static', filename='img/[email protected]') }}" alt="logo"/>
16+
</div>
1417
<h2 class="title">Contact</h2>
1518
<form method="POST" action="{{ url_for('contact') }}">
1619
{{ form.csrf_token }}

0 commit comments

Comments
Β (0)