Skip to content
Snippets Groups Projects
Commit 55e148c8 authored by OndraRehounek's avatar OndraRehounek
Browse files

Merge branch 'feature/pirati-cz' into feature/pirati-cz-martin

parents 5103b71e 6dac037a
No related branches found
No related tags found
3 merge requests!607Pirati.cz,!595[ADD] articles to news_block,!575Feature/pirati cz
Pipeline #9540 passed
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
{% endfor %} {% endfor %}
<div class="flex justify-center"> <div class="flex justify-center">
{% include 'main/includes/button_animated.html' with btn_text="Zobrazit další" %} {% include 'main/includes/button_animated.html' with btn_text="Zobrazit starší" %}
</div> </div>
</div> </div>
</div> </div>
......
...@@ -16,15 +16,15 @@ ...@@ -16,15 +16,15 @@
<div class="container--medium"> <div class="container--medium">
<div class="__js-root"> <div class="__js-root">
<ui-view-provider <ui-view-provider
:initial="{ {% for people_group in page.people %}'{{ people_group.value.slug }}': {% if forloop.counter0 %}false{% else %}true{% endif %},{% endfor %} }" :initial="{ {% for people_group in page.people %}'{{ people_group.value.slug }}-{{ forloop.counter }}': {% if forloop.counter0 %}false{% else %}true{% endif %},{% endfor %} }"
:sync-location="true" :sync-location="true"
v-slot="{ isCurrentView, toggleView }" v-slot="{ isCurrentView, toggleView }"
> >
<div class="flex justify-center mb-12"> <div class="flex justify-center mb-12">
<div class="switch"> <div class="switch">
{% for people_group in page.people %} {% for people_group in page.people %}
<a @click="toggleView('{{ people_group.value.slug }}')" class="switch__item" <a @click="toggleView('{{ people_group.value.slug }}-{{ forloop.counter }}')" class="switch__item"
:class="{'switch__item--active': isCurrentView('{{ people_group.value.slug }}')}" :class="{'switch__item--active': isCurrentView('{{ people_group.value.slug }}-{{ forloop.counter }}')}"
> >
{{ people_group.value.title }} {{ people_group.value.title }}
</a> </a>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="flex flex-wrap justify-center mb-12"> <div class="flex flex-wrap justify-center mb-12">
{% for people_group in page.people %} {% for people_group in page.people %}
<template v-if="isCurrentView('{{ people_group.value.slug }}')"> <template v-if="isCurrentView('{{ people_group.value.slug }}-{{ forloop.counter }}')">
{% for person_page in people_group.value.person_list %} {% for person_page in people_group.value.person_list %}
{% include 'main/includes/person_contact_big.html' %} {% include 'main/includes/person_contact_big.html' %}
{% endfor %} {% endfor %}
......
...@@ -11,38 +11,31 @@ ...@@ -11,38 +11,31 @@
<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">
<article class="mb-4 xl:mb-24 xl:mr-2"> <article class="mb-4 xl:mb-24 xl:mr-2">
<p class="font-alt mb-5"> <p class="font-alt text-xl leading-7 mb-5">
{{ page.perex }} {{ page.perex }}
</p> </p>
<p class="font-alt mb-5"> <p class="mb-5">
{{ page.text|richtext }} {{ paga.text|richtext }}
</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 flex flex-col justify-center mb-1 px-7 py-4 xl: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 %} <div class="flex">
{% if page.phone %}
<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>
{% endif %}
</div> </div>
{% endif %}
{% if page.social_links %} {% if page.social_links %}
<div class="bg-grey-100 px-7 py-9"> <div class="bg-grey-100 flex flex-col justify-center px-7 py-4 xl:py-9">
{% for social_block in page.social_links %} {% for social_block in page.social_links %}
<div class="flex mb-2"> <div class="flex mb-2">
<i class="{{ social_block.value.icon }} mr-2"></i> <i class="{{ social_block.value.icon }} mr-2"></i>
...@@ -52,8 +45,8 @@ ...@@ -52,8 +45,8 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
</div>
{% endif %} {% endif %}
</div>
</section> </section>
</div> </div>
{% if tweet_list %} {% if tweet_list %}
...@@ -66,12 +59,12 @@ ...@@ -66,12 +59,12 @@
{% for tweet in page.tweet_list %} {% for tweet in page.tweet_list %}
<div class="md:w-1/3 lg:w-1/4"> <div class="md:w-1/3 lg:w-1/4">
<div class="p-4 flex flex-col items-center text-center border border-grey-100"> <div class="p-4 flex flex-col items-center text-center border border-grey-100">
<img class="rounded-full shadow-sm w-12 mb-2" src="https://randomuser.me/api/portraits/women/56.jpg" <img class="rounded-full shadow-sm w-12 mb-2" src="{{ tweet.author_img_url }}"
alt="user image"/> alt="user image"/>
<h5 class="font-alt mb-2">{{ tweet.author_name }}</h5> <h5 class="font-alt mb-2">{{ tweet.author_name }}</h5>
<small class="mb-4 text-turquoise-400">@{{ tweet.author_username }}</small> <small class="mb-4 text-turquoise-400">@{{ tweet.author_username }}</small>
<p class="text-base leading-6 mb-2">{{ tweet.text }}</p> <p class="text-base leading-6 mb-2">{{ tweet.text }}</p>
<a href="" class="hover:no-underline"> <a href="twitter.com/{{ tweet.author_username }}" class="hover:no-underline">
<i class="ico--twitter text-turquoise-400 text-xl"></i> <i class="ico--twitter text-turquoise-400 text-xl"></i>
</a> </a>
</div> </div>
...@@ -82,7 +75,7 @@ ...@@ -82,7 +75,7 @@
</section> </section>
{% endif %} {% endif %}
{% if article_page_list %} {% if article_page_list %}
<section class="grid-container mb-4 justify-start xl:mb-14"> <section class="grid-container mb-4 xl:mb-20 justify-start">
<div class="grid-content"> <div class="grid-content">
<div class="leading-6"> <div class="leading-6">
<h2 class="head-4xl"> <h2 class="head-4xl">
...@@ -91,9 +84,9 @@ ...@@ -91,9 +84,9 @@
{% for article_preview in article_page_list %} {% for article_preview in article_page_list %}
<div class="flex flex-col justify-between items-start mb-9"> <div class="flex flex-col justify-between items-start mb-9">
<div class="flex font-bold mb-4 text-xs text-white uppercase"> <div class="flex font-bold mb-4 text-xs text-white uppercase">
<span class="bg-green-400 mr-1 px-1">{{ article_preview.date }}</span> <span class="bg-green-500 mr-1 px-1">{{ article_preview.date }}</span>
{% for tag in article_preview.tags.all %} {% for tag in article_preview.tags.all %}
<span class="bg-violet-400 mr-1 px-1">{{ tag }}</span> <span class="bg-violet-600 mr-1 px-1">{{ tag }}</span>
{% endfor %} {% endfor %}
</div> </div>
<h4 class="head-3xl mb-4"> <h4 class="head-3xl mb-4">
...@@ -110,14 +103,14 @@ ...@@ -110,14 +103,14 @@
</section> </section>
{% endif %} {% endif %}
{% for people_group in page.people %} {% for people_group in page.people %}
<section class="grid-container person-grid-container mb-4 justify-start xl:mb-14"> <section class="grid-container person-grid-container mb-4 xl:mb-20 justify-start">
<div class="grid-content-with-right-side"> <div class="grid-content-with-right-side">
<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.value.person_list %}
<div class="flex flex-wrap"> <div class="flex flex-wrap">
<div class="flex mb-16 person-box-medium"> {% for person in people_group.value.person_list %}
<div class="flex person-box-medium mb-4 xl:mb-12">
<div class="shrink-0 mr-4"> <div class="shrink-0 mr-4">
{% image person.profile_image fill-250x250 as profile_image %} {% image person.profile_image fill-250x250 as profile_image %}
<img <img
...@@ -131,21 +124,19 @@ ...@@ -131,21 +124,19 @@
<h4 class="head-3xl"> <h4 class="head-3xl">
{{ person.title }} {{ person.title }}
</h4> </h4>
<span <span class="text-sm xl:text-base leading-6 mb-6">{{ person.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=person.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>
</div> </div>
</section> </section>
{% endfor %} {% endfor %}
</div>
{% include 'main/includes/newsletter_section.html' %} {% include 'main/includes/newsletter_section.html' %}
......
...@@ -15,15 +15,15 @@ ...@@ -15,15 +15,15 @@
<div class="container--medium"> <div class="container--medium">
<div class="__js-root"> <div class="__js-root">
<ui-view-provider <ui-view-provider
:initial="{ {% for program_group in page.program %}'{{ program_group.value.slug }}':{% if forloop.counter0 %}false{% else %}true{% endif %},{% endfor %} }" :initial="{ {% for program_group in page.program %}'{{ program_group.value.slug }}-{{ forloop.counter }}':{% if forloop.counter0 %}false{% else %}true{% endif %},{% endfor %} }"
:sync-location="true" :sync-location="true"
v-slot="{ isCurrentView, toggleView }" v-slot="{ isCurrentView, toggleView }"
> >
<div class="mb-12"> <div class="mb-12">
<div class="switch"> <div class="switch">
{% for program_group in page.program %} {% for program_group in page.program %}
<a @click="toggleView('{{ program_group.value.slug }}')" class="switch__item" <a @click="toggleView('{{ program_group.value.slug }}-{{ forloop.counter }}')" class="switch__item"
:class="{'switch__item--active': isCurrentView('{{ program_group.value.slug }}')}"> :class="{'switch__item--active': isCurrentView('{{ program_group.value.slug }}-{{ forloop.counter }}')}">
{{ program_group.value.title }} {{ program_group.value.title }}
</a> </a>
{% endfor %} {% endfor %}
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="mb-12"> <div class="mb-12">
{% for program_group in page.program %} {% for program_group in page.program %}
<template v-if="isCurrentView('{{ program_group.value.slug }}')"> <template v-if="isCurrentView('{{ program_group.value.slug }}-{{ forloop.counter }}')">
{% for item in program_group.value.point_list %} {% for item in program_group.value.point_list %}
<div class="flex mb-6"> <div class="flex mb-6">
{% image item.icon fill-150x150 as icon %} {% image item.icon fill-150x150 as icon %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment