You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.8 KiB
HTML
65 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Post it</title>
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/postit.css')}}" />
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/contents.css')}}" />
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
{% for content in contents %}
|
|
|
|
<div class="post-it {{content['slug']}}">
|
|
{%if content['img'] %}
|
|
<img
|
|
src="{{url_for('static', filename='contents/' + content['slug'] + '/' + content['img'] )}}"
|
|
alt="{{content['description']}}"
|
|
/>
|
|
<figcaption>{{content['description']}}</figcaption>
|
|
{%elif content['card']%}
|
|
|
|
<div class="card">{{content['card']}}</div>
|
|
<div class="quote">{{content['quote']}}</div>
|
|
<dl>
|
|
<dt>Motivation</dt>
|
|
<dd>{{content['motivation']}}</dd>
|
|
|
|
<dt>Empathy</dt>
|
|
<dd>{{content['empathy']}}</dd>
|
|
|
|
<dt>Vision</dt>
|
|
<dd>{{content['vision']}}</dd>
|
|
|
|
<dt>Positivity</dt>
|
|
<dd>{{content['positivity']}}</dd>
|
|
</dl>
|
|
|
|
{%elif content['definition']%}
|
|
|
|
<h2 class="title">{{content['title']}}</h2>
|
|
<p
|
|
class="description {% if content['definition']|length > 200 %} long-text {%endif%}"
|
|
>
|
|
{{content['definition']}}
|
|
</p>
|
|
|
|
<div class="category">{{content['start']}} {{content['category']}}</div>
|
|
|
|
{%else%}
|
|
<h2 class="title">{{content['title']}}</h2>
|
|
<div class="page-number">{{loop.index}}/{{contents|length}}</div>
|
|
<p
|
|
class="description {% if content['description']|length > 200 %} long-text {%endif%}"
|
|
>
|
|
{{content['description']}}
|
|
</p>
|
|
{%endif%}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</body>
|
|
</html>
|