diff --git a/main/styleguide/source/_patterns/molecules/blocks/contact-person-box.mustache b/main/styleguide/source/_patterns/molecules/blocks/contact-person-box.mustache index f755cdc72db6123c826dd47e6f6e44774ffdd490..043607d9feeb1a240a792d48aedc2d5448f71672 100644 --- a/main/styleguide/source/_patterns/molecules/blocks/contact-person-box.mustache +++ b/main/styleguide/source/_patterns/molecules/blocks/contact-person-box.mustache @@ -1,20 +1,14 @@ <div class="flex max-w-lg"> - <div class="mt-6 sm:mt-0 mr-4 sm:mr-7"> + <div class="mt-2 sm:mt-0 mr-4 sm:mr-7"> <img class="rounded-full shadow-sm w-20 sm:w-40" src="https://randomuser.me/api/portraits/women/26.jpg" alt="user image"> </div> <div class="flex flex-col py-4"> - <h6 class="font-bold mb-2 text-2xl sm:text-3xl"> + <h6 class="font-bold mb-2 text-xl xl:text-2xl sm:text-3xl"> Veronika Šmídová </h6> - <span class="mb-4 sm:mb-6 text-grey-300"> - Tisková mluvčí - </span> - <span class="mb-1"> - +420 778 111 466 - </span> - <span class="text-turquoise-500"> - veronika.smidova@pirati.cz - </span> + <span class="mb-4 sm:mb-6 text-grey-300">Tisková mluvčí</span> + <span class="mb-1">+420 778 111 466</span> + <span class="text-turquoise-500">veronika.smidova@pirati.cz</span> </div> </div> diff --git a/main/templates/main/blocks/articles_timeline_block.html b/main/templates/main/blocks/articles_timeline_block.html index c63e7953a49651542e3f48785e1e1953add84fd4..dd7ee34bcd16106af6a9f92ba4446b0677bae925 100644 --- a/main/templates/main/blocks/articles_timeline_block.html +++ b/main/templates/main/blocks/articles_timeline_block.html @@ -1,4 +1,5 @@ {% for month_article_data in article_data_list %} + {% if month_article_data.left_column|length %} <div class="mb-4"> <h2 class="head-4xl mb-5 xl:hidden"> {{ month_article_data.month_text }} @@ -21,4 +22,5 @@ </div> </div> </div> + {% endif %} {% endfor %} diff --git a/main/templates/main/main_article_page.html b/main/templates/main/main_article_page.html index 587e956ce3c8f2f12ef19d4ce6fe6fac160954c2..ab4e986a2ce18369ead541c856a579a9e390e74e 100644 --- a/main/templates/main/main_article_page.html +++ b/main/templates/main/main_article_page.html @@ -11,7 +11,9 @@ <div class="grid-container mb-2 lg:mb-12 relative"> <div class="grid-left-side h-full bg-grey-150 left-tab"> <div class="p-6 flex flex-wrap flex-row items-center justify-between xl:items-start xl:flex-col"> - <span class="font-bold 3xl:text-xl">AUTOR ČLÁNKU: <br> {% firstof page.author_page.title page.author '' %}</span><br> + {% if page.author_page.title or page.author %} + <span class="font-bold 3xl:text-xl">AUTOR ČLÁNKU: <br> {% firstof page.author page.author_page.title %}</span><br> + {% endif %} <div class="flex flex-row static bottom-0 xl:absolute sm:bottom-5"> {% for social in page.author_page.social_links %} <a href="{{ social.value.link }}" class="flex hover:no-underline"> diff --git a/main/templates/main/main_contact_page.html b/main/templates/main/main_contact_page.html index efb3e8215b9bc541b3481a6850856bd3d66626b2..dccef799fd4dd793be5e3e917574d92e61ef6919 100644 --- a/main/templates/main/main_contact_page.html +++ b/main/templates/main/main_contact_page.html @@ -72,13 +72,13 @@ <div class="flex flex-wrap gap-4 xl:gap-16 xl:justify-start"> {% for contact_person_box in page.contact_people %} <div class="flex max-w-lg"> - <div class="mt-6 sm:mt-0 mr-4 sm:mr-7"> + <div class="mt-2 sm:mt-0 mr-4 sm:mr-7"> {% image contact_person_box.value.person.profile_image fill-250x250 as profile_image %} <img class="rounded-full shadow-sm w-20 sm:w-40" src="{{ profile_image.url }}" alt="user image"> </div> <div class="flex flex-col py-4"> - <h6 class="font-bold mb-2 text-2xl sm:text-3xl"> + <h6 class="font-bold mb-2 text-xl xl:text-2xl sm:text-3xl"> {{ contact_person_box.value.person.title }} </h6> <span class="mb-4 sm:mb-6 text-grey-300">