generator and single contribution progress bar
parent
4a6389e31b
commit
b519e43d82
File diff suppressed because one or more lines are too long
@ -1,87 +0,0 @@
|
||||
@page {
|
||||
size: A3;
|
||||
margin: 5mm;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.container {
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.post-it {
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
width: 90mm;
|
||||
height: 90mm;
|
||||
border: 1px solid #ddd;
|
||||
margin: 0;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
line-height: 1.4;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
.title {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
margin: 4mm;
|
||||
font-weight: normal;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.description {
|
||||
display: inline-block;
|
||||
margin: 4mm;
|
||||
font-size: 28px;
|
||||
line-height: 1.2;
|
||||
white-space: pre-line;
|
||||
margin-top: calc(4mm - 1em);
|
||||
}
|
||||
|
||||
figcaption {
|
||||
background-color: white;
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 4mm;
|
||||
transform: translate(-50%, 0);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #ddd;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.description.long-text {
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.page-number {
|
||||
position: absolute;
|
||||
right: 4mm;
|
||||
bottom: 4mm;
|
||||
font-size: 14px;
|
||||
}
|
@ -1,114 +0,0 @@
|
||||
@page {
|
||||
size: A3;
|
||||
margin: 5mm;
|
||||
}
|
||||
|
||||
:root {
|
||||
--background: #8f00ff33;
|
||||
--color: #8f00ff;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.container {
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.post-it {
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
width: 90mm;
|
||||
height: 90mm;
|
||||
border: 1px solid #ddd;
|
||||
margin: 0;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
line-height: 1.4;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: inline-flex;
|
||||
justify-content: end;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
footer {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
/* position: absolute; */
|
||||
/* bottom: 0; */
|
||||
border-top: 1px solid var(--background);
|
||||
}
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
.title {
|
||||
/* position: absolute; */
|
||||
/* bottom: 0; */
|
||||
margin: 0.25em 4mm;
|
||||
font-weight: normal;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.description {
|
||||
display: inline-block;
|
||||
margin: 4mm;
|
||||
font-size: 28px;
|
||||
line-height: 1.2;
|
||||
white-space: pre-line;
|
||||
/* margin-top: calc(4mm - 1em); */
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
background-color: white;
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 4mm;
|
||||
transform: translate(-50%, 0);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #ddd;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.description.long-text {
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.page-number {
|
||||
position: absolute;
|
||||
right: 4mm;
|
||||
bottom: 0.25em;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
height: 100%;
|
||||
background-color: var(--background);
|
||||
z-index: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 522 KiB |
Binary file not shown.
After Width: | Height: | Size: 448 KiB |
@ -1,64 +0,0 @@
|
||||
<!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>
|
@ -1,71 +0,0 @@
|
||||
<!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%}
|
||||
|
||||
<p
|
||||
class="description {% if content['description']|length > 200 %} long-text {%endif%}"
|
||||
>
|
||||
{{content['description']}}
|
||||
</p>
|
||||
|
||||
<footer>
|
||||
<h2 class="title">{{content['title']}}</h2>
|
||||
<span
|
||||
class="progress-bar"
|
||||
style="width: {{ 100 / contents|length * loop.index}}%"
|
||||
></span>
|
||||
</footer>
|
||||
{%endif%}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,96 +0,0 @@
|
||||
<!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')}}" />
|
||||
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
|
||||
<script src="{{url_for('static', filename='js/bleed.js')}}"></script>
|
||||
</head>
|
||||
<body>
|
||||
{% for content in contents %}
|
||||
|
||||
<div class="post-it {{content['slug']}} {% if content['card'] %} leader-card {%endif%}">
|
||||
{%if content['img'] %}
|
||||
<img
|
||||
src="{{url_for('static', filename='contents/' + content['slug'] + '/' + content['img'] )}}"
|
||||
alt="{{content['description']}}"
|
||||
data-image="{{url_for('static', filename='contents/' + content['slug'] + '/' + content['img'] )}}"
|
||||
/>
|
||||
<figcaption>{{content['description']}}</figcaption>
|
||||
{%elif content['card']%}
|
||||
|
||||
<div class="card">{{content['card']}}</div>
|
||||
|
||||
<blockquote class="quote">{{content['quote']}} <span class="leader">The Leader</span></blockquote>
|
||||
<dl>
|
||||
<dt class="row-bg"><span>Motivation</span></dt>
|
||||
<dd class="row-bg"><span>{{content['motivation']}}</span></dd>
|
||||
|
||||
<dt><span>Empathy</span></dt>
|
||||
<dd><span>{{content['empathy']}}</span></dd>
|
||||
|
||||
<dt class="row-bg"><span>Vision</span></dt>
|
||||
<dd class="row-bg"><span>{{content['vision']}}</span></dd>
|
||||
|
||||
<dt><span>Positivity</span></dt>
|
||||
<dd><span>{{content['positivity']}}</span></dd>
|
||||
</dl>
|
||||
|
||||
{%elif content['definition']%}
|
||||
|
||||
<div class="category">{{content['start']}} {{content['category']}}</div>
|
||||
|
||||
<p class="description {% if content['definition']|length > 200 %} long-text {%endif%}">
|
||||
{{content['definition']}}
|
||||
</p>
|
||||
|
||||
<footer>
|
||||
<h2 class="title">{{content['title']}}</h2>
|
||||
<span
|
||||
class="progress-bar"
|
||||
style="width: {{ 100 / contents|length * loop.index}}%"
|
||||
></span>
|
||||
</footer>
|
||||
|
||||
{%elif content['type'] == 'mimic-colophon'%}
|
||||
|
||||
<div class="description">
|
||||
<div class="colophon">{{content['original']}}</div>
|
||||
<div>{{content['original-credits']}}</div>
|
||||
<div class="action">{{content['original-action']}}</div>
|
||||
<div>{{content['original-date']}}</div>
|
||||
<br />
|
||||
<div class="colophon">{{content['current']}}</div>
|
||||
<div>{{content['current-credits']}}</div>
|
||||
<code>{{content['current-action']}}</code>
|
||||
<div>{{content['current-date']}}</div>
|
||||
</div>
|
||||
<footer>
|
||||
<h2 class="title">{{content['title']}}</h2>
|
||||
<span
|
||||
class="progress-bar"
|
||||
style="width: {{ 100 / contents|length * loop.index}}%"
|
||||
></span>
|
||||
</footer>
|
||||
{%else%}
|
||||
|
||||
<p class="description {% if content['description']|length > 200 %} long-text {%endif%}">
|
||||
{{content['description']}}
|
||||
</p>
|
||||
|
||||
<footer>
|
||||
<h2 class="title">{{content['title']}}</h2>
|
||||
<span
|
||||
class="progress-bar"
|
||||
style="width: {{ 100 / contents|length * loop.index}}%"
|
||||
></span>
|
||||
</footer>
|
||||
{%endif%}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue