Skip to content
Snippets Groups Projects
Commit b94a7c88 authored by OndraPetrzilka's avatar OndraPetrzilka
Browse files

main_person_page template

parent e78c74ff
Branches
No related tags found
3 merge requests!607Pirati.cz,!587added main and profile picture to main person model, main_person template in...,!575Feature/pirati cz
Pipeline #9392 passed
...@@ -3,12 +3,7 @@ ...@@ -3,12 +3,7 @@
{% block content %} {% block content %}
<main role="main"> <main role="main">
{% include 'main/includes/layout/photo_page_header.html' %}
{# {{> organisms-header }}#}
{##}
{# {{> molecules-photo_header }}#}
<div class=""> <div class="">
<section class="grid-container person-grid-container"> <section class="grid-container person-grid-container">
<div class="grid-content leading-6"> <div class="grid-content leading-6">
...@@ -18,48 +13,41 @@ ...@@ -18,48 +13,41 @@
</p> </p>
</article> </article>
</div> </div>
{% if page.email or page.phone %}
<div class="grid-right-side mb-8 xl:mb-0"> <div class="grid-right-side mb-8 xl:mb-0">
<div class="bg-grey-100 mb-1 px-7 py-9"> <div class="bg-grey-100 mb-1 px-7 py-9">
{% if page.email %}
<div class="flex mb-2"> <div class="flex mb-2">
<i class="ico--envelope mr-2"></i> <i class="ico--envelope mr-2"></i>
<a href="mailto:{{ page.email }}" class="text-turquoise-500 underline"> <a href="mailto:{{ page.email }}" class="text-turquoise-500 underline">
{{ page.email }} {{ page.email }}
</a> </a>
</div> </div>
{% endif %}
{% if page.phone %}
<div class="flex mb-2"> <div class="flex mb-2">
<i class="ico--phone mr-2"></i> <i class="ico--phone mr-2"></i>
<a href="tel:+{{ page.phone }}"> <a href="tel:+{{ page.phone }}">
{{ page.phone }} {{ page.phone }}
</a> </a>
</div> </div>
</div>
<div class="bg-grey-100 px-7 py-9">
{% if page.facebook %}
<div class="flex mb-2">
<i class="ico--facebook mr-2"></i>
<a href="{{ page.facebook }}">
Facebook
</a>
</div>
{% endif %} {% endif %}
{% if page.twitter %}
<div class="flex mb-2">
<i class="ico--twitter mr-2"></i>
<a href="{{ page.twitter }}">
Twitter
</a>
</div> </div>
{% endif %} {% endif %}
{% if page.instagram %} {% if page.social_links %}
<div class="bg-grey-100 px-7 py-9">
{% for social_block in page.social_links %}
<div class="flex mb-2"> <div class="flex mb-2">
<i class="ico--instagram mr-2"></i> <i class="{{ social_block.value.icon }} mr-2"></i>
<a href="{{ page.instagram }}"> <a href="{{ social_block.value.link }}">
Instagram {{ social_block.value.text }}
</a> </a>
</div> </div>
{% endif %} {% endfor %}
</div> </div>
</div> </div>
{% endif %}
</section> </section>
</div> </div>
{% if not tweet_list.empty %} {% if not tweet_list.empty %}
...@@ -121,29 +109,29 @@ ...@@ -121,29 +109,29 @@
<h2 class="head-4xl text-left"> <h2 class="head-4xl text-left">
{{ people_group.value.title }} {{ people_group.value.title }}
</h2> </h2>
{% for person in people_group %} {% for person in people_group.value.person_list %}
<div class="flex flex-wrap"> <div class="flex flex-wrap">
<div class="flex mb-16 person-box-medium"> <div class="flex mb-16 person-box-medium">
<div class="shrink-0 mr-4"> <div class="shrink-0 mr-4">
{% image people_group.value.profile_image max-300x300 as profile_image %}
<img <img
class="rounded-full shadow-sm w-20 mb-2 xl:w-44" class="rounded-full shadow-sm w-20 mb-2 xl:w-44"
src="{{ profile_image.url }}" src="{{ person.profile_image.url }}"
alt=" {{ people_group.value.title }}" alt=" {{ person.title }}"
> >
</div> </div>
<div class="flex flex-col justify-between py-4"> <div class="flex flex-col justify-between py-4">
<div class="flex flex-col"> <div class="flex flex-col">
<h4 class="head-3xl"> <h4 class="head-3xl">
{{ people_group.value.title }} {{ person.title }}
</h4> </h4>
<span <span
class="text-sm xl:text-base leading-6 mb-6">{{ people_group.value.position|default_if_none:"" }}</span> class="text-sm xl:text-base leading-6 mb-6">{{ person.position|default_if_none:"" }}</span>
</div>
<div> <div>
{% include 'main/includes/button_animated.html' with btn_link=people_group.value.url btn_text="Detail" %} {% include 'main/includes/button_animated.html' with btn_link=person.url btn_text="Detail" %}
</div> </div>
</div> </div>
</div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment