Skip to content

Commit

Permalink
Add a bit of styling and content
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Oct 10, 2023
1 parent c80b49b commit ec43cfc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/flickypedia/static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
body {
font-size: 2em;
}

.flashes {
color: red;
}
19 changes: 19 additions & 0 deletions src/flickypedia/templates/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">

<p>Welcome to Flickypedia!</p>

{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class="flashes">
{% for message in messages %}
<li>{{ message | safe }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}

{% if not current_user.is_anonymous %}
You are logged in to Wikimedia as <strong>{{ current_user.name }}</strong>
<a href="{{ url_for('logout') }}">Log out</a>
{% else %}
<a href="{{ url_for('oauth2_authorize_wikimedia') }}">Log in to Wikimedia</a>
{% endif %}

0 comments on commit ec43cfc

Please sign in to comment.