Skip to content
Snippets Groups Projects
Commit dcce670c authored by Chris Lawton's avatar Chris Lawton
Browse files

adding flex markup to person page to display headshot and socials in a right hand sidebar

parent 724b1eca
No related branches found
No related tags found
No related merge requests found
...@@ -4,12 +4,11 @@ ...@@ -4,12 +4,11 @@
{% block content %} {% block content %}
<div class="wrapper wrapper--small wrapper--flex wrapper--person"> <div class="wrapper wrapper--small wrapper--flex wrapper--person">
<div>
{% for person_type in page.person_types.all %} {% for person_type in page.person_types.all %}
<h5 class="heading heading--no-margin">{{ person_type }}</h5> <h5 class="heading heading--no-margin">{{ person_type }}</h5>
{% endfor %} {% endfor %}
<div class="intro">
<div class="container">
<h2 class="heading heading--person">{{ page.first_name }} {{ page.last_name }}</h2> <h2 class="heading heading--person">{{ page.first_name }} {{ page.last_name }}</h2>
{% if page.job_title %} {% if page.job_title %}
...@@ -19,6 +18,10 @@ ...@@ -19,6 +18,10 @@
{% if page.introduction %} {% if page.introduction %}
<h4 class="heading heading--person-introduction">{{ page.introduction }}</h4> <h4 class="heading heading--person-introduction">{{ page.introduction }}</h4>
{% endif %} {% endif %}
<section class="main-body">
{% include_block page.biography %}
{% if page.website %} {% if page.website %}
<p class="list list--contact"><span>Website:</span> <a href="{{ page.website }}">{{ page.website }}</a></p> <p class="list list--contact"><span>Website:</span> <a href="{{ page.website }}">{{ page.website }}</a></p>
{% endif %} {% endif %}
...@@ -36,20 +39,11 @@ ...@@ -36,20 +39,11 @@
{% endif %} {% endif %}
{% endwith %} {% endwith %}
{% include "utils/includes/funding.html" %}
</div> </section>
</div> </div>
<section class="main-body"> <div>
<div class="container">
{% include_block page.biography %}
</div>
<div class="container">
<h2>Person types</h2>
{% for person_type in page.person_types.all %}
<p>{{ person_type }}</p>
{% endfor %}
{% if page.photo %} {% if page.photo %}
{% image page.photo fill-210x235 %} {% image page.photo fill-210x235 %}
{% endif %} {% endif %}
...@@ -59,10 +53,7 @@ ...@@ -59,10 +53,7 @@
<h3>{{ item.get_service_display }}</h3> <h3>{{ item.get_service_display }}</h3>
<p>{{ item.profile_url }}</p> <p>{{ item.profile_url }}</p>
{% endfor %} {% endfor %}
</div>
{% include "utils/includes/funding.html" %}
</div>
</section>
</div> </div>
{% endblock %} {% endblock %}
...@@ -139,4 +139,24 @@ ...@@ -139,4 +139,24 @@
&--bottom-space { &--bottom-space {
padding-bottom: 3rem; padding-bottom: 3rem;
} }
&--flex {
display: flex;
}
&--person {
padding: 3rem 0;
> div:first-child {
flex: 1;
@include media-query(tablet-landscape) {
padding-right: 20px;
}
}
> div:last-child {
flex-basis: 210px;
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment