|
|
@ -6,34 +6,64 @@
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>Post it</title>
|
|
|
|
<title>Post it</title>
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/global.css')}}">
|
|
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/global.css')}}" />
|
|
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/postit.css')}}" />
|
|
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/postit.css')}}" />
|
|
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/contents.css')}}" />
|
|
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/contents.css')}}" />
|
|
|
|
|
|
|
|
|
|
|
|
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
|
|
|
|
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
|
|
|
|
<script src="{{url_for('static', filename='js/bleed.js')}}"></script>
|
|
|
|
<script src="{{url_for('static', filename='js/bleed.js')}}"></script>
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
|
|
|
--color: var(--{{color}});
|
|
|
|
|
|
|
|
--background: var(--{{color}}-bg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
{%for contribution, contents in contributions.items()%} {% for content in contents %}
|
|
|
|
|
|
|
|
<!-- Parsing postit -->
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
|
|
class="post-it {{contribution}}
|
|
|
|
|
|
|
|
{% if content['card'] %} leader-card {%endif%}"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- post-it with pic attribute are graphics that follow the color scheme! -->
|
|
|
|
|
|
|
|
<!-- there is a version that matches the color in a folder with the name of the color -->
|
|
|
|
|
|
|
|
<!-- ex: a purple cover in the intro contribution will be something like /intro/purple/cover.jpg -->
|
|
|
|
|
|
|
|
<!-- ex: the same cover in the orange version will be in /intro/orange/cover.jpg -->
|
|
|
|
|
|
|
|
<!-- in order to make it works, the files need to share the same name! -->
|
|
|
|
|
|
|
|
{%if content['pic'] %}
|
|
|
|
|
|
|
|
<img
|
|
|
|
|
|
|
|
src="{{url_for('static', filename='contents/' + contribution + '/' + color + '/' + content['pic'] )}}"
|
|
|
|
|
|
|
|
{% if content["alt"] %}
|
|
|
|
|
|
|
|
alt="{{content['alt']}}"
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
{%for contribution, contents in contributions.items()%}
|
|
|
|
{% if content["alt"] %}
|
|
|
|
|
|
|
|
<figcaption>{{content['alt']}}</figcaption>
|
|
|
|
{% for content in contents %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="post-it {{contribution}} {% if content['card'] %} leader-card {%endif%}">
|
|
|
|
<!-- post-it with img attribute it's a image that doesn't follow the color scheme -->
|
|
|
|
{%if content['img'] %}
|
|
|
|
{%elif content['img'] %}
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
src="{{url_for('static', filename='contents/' + contribution + '/' + content['img'] )}}"
|
|
|
|
src="{{url_for('static', filename='contents/' + contribution + '/' + content['img'] )}}"
|
|
|
|
{% if content["alt"] %}alt="{{content['alt']}}"{% endif %}
|
|
|
|
|
|
|
|
data-image="{{url_for('static', filename='contents/' + contribution + '/' + content['img'] )}}"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
{% if content["alt"] %}
|
|
|
|
{% if content["alt"] %}
|
|
|
|
<figcaption>{{content['description']}}</figcaption>
|
|
|
|
alt="{{content['alt']}}" {% endif %}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if content["alt"]%}
|
|
|
|
|
|
|
|
<figcaption>{{content['alt']}}</figcaption>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{%elif content['card']%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- post-it with card attribute are the card for The Leader game -->
|
|
|
|
|
|
|
|
{%elif content['card']%}
|
|
|
|
<div class="card">{{content['card']}}</div>
|
|
|
|
<div class="card">{{content['card']}}</div>
|
|
|
|
|
|
|
|
|
|
|
|
<blockquote class="quote">{{content['quote']}} <span class="leader">The Leader</span></blockquote>
|
|
|
|
<blockquote class="quote">
|
|
|
|
|
|
|
|
{{content['quote']}} <span class="leader">The Leader</span>
|
|
|
|
|
|
|
|
</blockquote>
|
|
|
|
<dl>
|
|
|
|
<dl>
|
|
|
|
<dt class="row-bg"><span>Motivation</span></dt>
|
|
|
|
<dt class="row-bg"><span>Motivation</span></dt>
|
|
|
|
<dd class="row-bg"><span>{{content['motivation']}}</span></dd>
|
|
|
|
<dd class="row-bg"><span>{{content['motivation']}}</span></dd>
|
|
|
@ -48,9 +78,15 @@
|
|
|
|
<dd><span>{{content['positivity']}}</span></dd>
|
|
|
|
<dd><span>{{content['positivity']}}</span></dd>
|
|
|
|
</dl>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- post-it with definition attribute are for the crossword game -->
|
|
|
|
|
|
|
|
<!-- we use the same template both for the definitions and the imaginary grid cells -->
|
|
|
|
|
|
|
|
<!-- for the cells the definition attribute is a space charachter, so it's invisible but present eh eh -->
|
|
|
|
|
|
|
|
<!-- templates ecology -->
|
|
|
|
{%elif content['definition']%}
|
|
|
|
{%elif content['definition']%}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="info">{{content['start']}} <span class="category">{{content['category']}}</span></div>
|
|
|
|
<div class="info">
|
|
|
|
|
|
|
|
{{content['start']}} <span class="category">{{content['category']}}</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="description {% if content['definition']|length > 200 %} long-text {%endif%}">
|
|
|
|
<p class="description {% if content['definition']|length > 200 %} long-text {%endif%}">
|
|
|
|
{{content['definition']}}
|
|
|
|
{{content['definition']}}
|
|
|
@ -64,6 +100,8 @@
|
|
|
|
></span>
|
|
|
|
></span>
|
|
|
|
</footer>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- mimic colophon, with a nice code style -->
|
|
|
|
|
|
|
|
<!-- not really a reusable module sorry aha -->
|
|
|
|
{%elif content['type'] == 'mimic-colophon'%}
|
|
|
|
{%elif content['type'] == 'mimic-colophon'%}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="description">
|
|
|
|
<div class="description">
|
|
|
@ -85,25 +123,29 @@
|
|
|
|
></span>
|
|
|
|
></span>
|
|
|
|
</footer>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- postit with cardinal directions are for corner layout -->
|
|
|
|
|
|
|
|
<!-- you can set the contents at: -->
|
|
|
|
|
|
|
|
<!-- top left (nw) -->
|
|
|
|
|
|
|
|
<!-- top right (ne) -->
|
|
|
|
|
|
|
|
<!-- bottom left (sw) -->
|
|
|
|
|
|
|
|
<!-- bottom right (se) -->
|
|
|
|
|
|
|
|
<!-- used in the nim dialogue and in some other 1 word post-its -->
|
|
|
|
{%elif 'nw' in content or 'ne' in content or 'se' in content or 'sw' in content%}
|
|
|
|
{%elif 'nw' in content or 'ne' in content or 'se' in content or 'sw' in content%}
|
|
|
|
|
|
|
|
|
|
|
|
<p class="description dialogue
|
|
|
|
<p
|
|
|
|
{%if content['nw']%}nw{%endif%}
|
|
|
|
class="description dialogue {%if content['nw']%}nw{%endif%} {%if content['ne']%}ne{%endif%}"
|
|
|
|
{%if content['ne']%}ne{%endif%}
|
|
|
|
>
|
|
|
|
">
|
|
|
|
{%if content['ne']%}{{content['ne']}}{%endif%} {%if
|
|
|
|
{%if content['ne']%}{{content['ne']}}{%endif%}
|
|
|
|
content['nw']%}{{content['nw']}}{%endif%}
|
|
|
|
{%if content['nw']%}{{content['nw']}}{%endif%}
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="description dialogue
|
|
|
|
<p
|
|
|
|
{%if content['sw']%}sw{%endif%}
|
|
|
|
class="description dialogue {%if content['sw']%}sw{%endif%} {%if content['se']%}se{%endif%}"
|
|
|
|
{%if content['se']%}se{%endif%}
|
|
|
|
>
|
|
|
|
">
|
|
|
|
{%if content['se']%}{{content['se']}}{%endif%} {%if
|
|
|
|
{%if content['se']%}{{content['se']}}{%endif%}
|
|
|
|
content['sw']%}{{content['sw']}}{%endif%}
|
|
|
|
{%if content['sw']%}{{content['sw']}}{%endif%}
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
<footer>
|
|
|
|
<h2 class="title">{{content['title']}}</h2>
|
|
|
|
<h2 class="title">{{content['title']}}</h2>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
@ -112,8 +154,9 @@
|
|
|
|
></span>
|
|
|
|
></span>
|
|
|
|
</footer>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
{%else%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- standard text postit -->
|
|
|
|
|
|
|
|
{%else%}
|
|
|
|
|
|
|
|
|
|
|
|
<p class="description {% if content['description']|length > 200 %} long-text {%endif%}">
|
|
|
|
<p class="description {% if content['description']|length > 200 %} long-text {%endif%}">
|
|
|
|
{{content['description']}}
|
|
|
|
{{content['description']}}
|
|
|
|