From a90e6333088b532af242b677b4442954515a3a11 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Sat, 9 Apr 2016 09:33:48 +0200 Subject: [PATCH] some stuff and background --- .../themes/exposure/static/css/style-page.css | 30 ++++++++++- .../exposure/templates/sections/author.html | 33 ++++++++++++ .../templates/sections/bordered-picture.html | 7 +++ .../exposure/templates/sections/html.html | 7 +++ .../templates/sections/paragraph.html | 6 +++ .../templates/sections/pictures-group.html | 6 +++ .../exposure/templates/sections/text.html | 6 +++ .../themes/exposure/templates/share.html | 3 +- .../themes/material/static/css/styles.css | 8 +++ .../themes/material/templates/index.html | 2 +- .../material/templates/sections/author.html | 52 +++++++++++++++++++ .../templates/sections/bordered-picture.html | 6 +++ .../templates/sections/full-picture.html | 4 +- .../material/templates/sections/html.html | 6 +++ .../templates/sections/paragraph.html | 6 +++ .../templates/sections/pictures-group.html | 6 +++ .../material/templates/sections/text.html | 6 +++ .../themes/material/templates/share.html | 2 +- 18 files changed, 190 insertions(+), 6 deletions(-) create mode 100644 prosopopee/themes/exposure/templates/sections/author.html create mode 100644 prosopopee/themes/material/templates/sections/author.html diff --git a/prosopopee/themes/exposure/static/css/style-page.css b/prosopopee/themes/exposure/static/css/style-page.css index 561fdf2..ddc7db4 100644 --- a/prosopopee/themes/exposure/static/css/style-page.css +++ b/prosopopee/themes/exposure/static/css/style-page.css @@ -257,12 +257,13 @@ footer a { } -.share { +.share, .author { text-align: center; height: auto; position: relative; bottom: 0; padding: 0 0 10px 0; + font-family: 'crimson', serif; } @@ -310,3 +311,30 @@ a.google { background-position: -172px 0 !important; } +.author img.circle { + border-radius: 50%; + width: 80px; +} + +.author { + padding-bottom: 7em; +} + +.author-meta { + color: #ccc; + font-style: italic; + font-size: 19px; +} + +.author h4 { + text-transform: uppercase; +} +.author .desc { + width: 350px; + margin: auto; + padding-bottom: 10px; + font-style: normal; + font-size: 14px; + line-height: normal; + color: #333; +} diff --git a/prosopopee/themes/exposure/templates/sections/author.html b/prosopopee/themes/exposure/templates/sections/author.html new file mode 100644 index 0000000..d4dc3eb --- /dev/null +++ b/prosopopee/themes/exposure/templates/sections/author.html @@ -0,0 +1,33 @@ +{% set image = Image(section.image) %} +{{ image.copy() }} +
+ +
+ Story by +

{{ section.name }}

+ {% if section.text %} +
{{ section.text }}
+ {% endif %} +
+
+
+ {% if section.twitter %} + + Facebook + + | + {% endif %} + {% if section.facebook %} + + Twitter + + | + {% endif %} + {% if section.website %} + + {{ section.website }} + + {% endif %} +
+
+ diff --git a/prosopopee/themes/exposure/templates/sections/bordered-picture.html b/prosopopee/themes/exposure/templates/sections/bordered-picture.html index a5f0cf8..5a9d230 100644 --- a/prosopopee/themes/exposure/templates/sections/bordered-picture.html +++ b/prosopopee/themes/exposure/templates/sections/bordered-picture.html @@ -1,6 +1,9 @@ {% set image = Image(section.image) %} {% set caption = section.text %} {{ image.copy()}} +{% if section.color %} +
+{% endif %}
+{% if section.color %} +
+{% endif %} + diff --git a/prosopopee/themes/exposure/templates/sections/html.html b/prosopopee/themes/exposure/templates/sections/html.html index 464eea9..602e299 100644 --- a/prosopopee/themes/exposure/templates/sections/html.html +++ b/prosopopee/themes/exposure/templates/sections/html.html @@ -1,5 +1,12 @@ +{% if section.color %} +
+{% endif %}
{{ section.html }}
+{% if section.color %} +
+{% endif %} + diff --git a/prosopopee/themes/exposure/templates/sections/paragraph.html b/prosopopee/themes/exposure/templates/sections/paragraph.html index c6775a1..efba68e 100644 --- a/prosopopee/themes/exposure/templates/sections/paragraph.html +++ b/prosopopee/themes/exposure/templates/sections/paragraph.html @@ -1,3 +1,6 @@ +{% if section.color %} +
+{% endif %}
{% if section.title %}

{{ section.title }}

@@ -6,3 +9,6 @@ {% endif %}

{{ section.text }}

+{% if section.color %} +
+{% endif %} diff --git a/prosopopee/themes/exposure/templates/sections/pictures-group.html b/prosopopee/themes/exposure/templates/sections/pictures-group.html index 6f78714..7b2a850 100644 --- a/prosopopee/themes/exposure/templates/sections/pictures-group.html +++ b/prosopopee/themes/exposure/templates/sections/pictures-group.html @@ -1,3 +1,6 @@ +{% if section.color %} +
+{% endif %}
{% for line in section.images %}
@@ -22,3 +25,6 @@
{% endfor %}
+{% if section.color %} +
+{% endif %} diff --git a/prosopopee/themes/exposure/templates/sections/text.html b/prosopopee/themes/exposure/templates/sections/text.html index 65e1121..803cc4a 100644 --- a/prosopopee/themes/exposure/templates/sections/text.html +++ b/prosopopee/themes/exposure/templates/sections/text.html @@ -1,3 +1,9 @@ +{% if section.color %} +
+{% endif %}
{{ section.text }}
+{% if section.color %} +
+{% endif %} diff --git a/prosopopee/themes/exposure/templates/share.html b/prosopopee/themes/exposure/templates/share.html index 3cabeda..dcb65b4 100644 --- a/prosopopee/themes/exposure/templates/share.html +++ b/prosopopee/themes/exposure/templates/share.html @@ -1,8 +1,9 @@ {% set absolute_url = settings.url + "/" + link -%}
+
Share this story