From 55cbd66cb1473fb1415712d0ebef90d7a03323c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Tue, 14 Feb 2017 18:00:08 +0100 Subject: [PATCH] Person page first implementation --- app/static/src/sass/modules/_page.scss | 17 ++++++++++++++ .../src/sass/modules/_section-title.scss | 13 +++++++++++ app/templates/network/person_detail.html | 22 ++++++++++--------- app/templates/pages/page.html | 4 ++-- 4 files changed, 44 insertions(+), 12 deletions(-) diff --git a/app/static/src/sass/modules/_page.scss b/app/static/src/sass/modules/_page.scss index a7aed2ae..88950e02 100644 --- a/app/static/src/sass/modules/_page.scss +++ b/app/static/src/sass/modules/_page.scss @@ -55,6 +55,23 @@ $module: ".page"; } + &__image-container { + background: $color-background; + @include transition(all 0.5s ease-in-out); + @include margin-bottom(3); + + img { + display: block; + width: 100%; + max-width: 100%; + height: auto; + + -webkit-filter: grayscale(1); + filter: grayscale(1); + mix-blend-mode: screen; + } + } + &__meta-separator { height: 1px; diff --git a/app/static/src/sass/modules/_section-title.scss b/app/static/src/sass/modules/_section-title.scss index 2095fe5d..63593431 100644 --- a/app/static/src/sass/modules/_section-title.scss +++ b/app/static/src/sass/modules/_section-title.scss @@ -65,4 +65,17 @@ $module: ".section-title"; @include margin-bottom(.5); } + &--big { + + color: $color-main; + @include font-size(xxxl); + text-transform: none; + @include margin-bottom(1); + + &:before { + display: none; + } + + } + } diff --git a/app/templates/network/person_detail.html b/app/templates/network/person_detail.html index 13f0ba3c..fd918a62 100644 --- a/app/templates/network/person_detail.html +++ b/app/templates/network/person_detail.html @@ -22,8 +22,16 @@ {% block page_title %} {% editable person.title %} -

{{ person.title }}

+

{{ person.title }}

{% endeditable %} + + {% with person.images.all|get_type:'page_featured' as card_images %} + {% if card_images %} +
+ person +
+ {% endif %} + {% endwith %} {% endblock %} {% block page_content %} @@ -62,15 +70,9 @@ {% endblock %} {% block page_sidebar %} - {% if person.images.all %} - {% with person.images.all|get_type:'page_featured' as images %} - {% if images.first %} -
- person -
- {% endif %} - {% endwith %} - {% endif%} +
+ {% include "includes/share_buttons.html" %} +
{% endblock %} {% block page_link %} diff --git a/app/templates/pages/page.html b/app/templates/pages/page.html index babe9714..67d080ad 100644 --- a/app/templates/pages/page.html +++ b/app/templates/pages/page.html @@ -35,7 +35,7 @@
-
+
{% block page_sidebar %} @@ -44,7 +44,7 @@
-
+
{% block page_content %} {{ page.content }} {% endblock %} -- 2.39.5