Skip to content
Snippets Groups Projects
Commit 0e56838e authored by jan.bednarik's avatar jan.bednarik
Browse files

elections2021: Page header block

parent 5191980b
No related branches found
No related tags found
2 merge requests!236Release,!235elections2021: Page header block
Pipeline #3624 passed
......@@ -2,10 +2,12 @@
<article class="relative bg-lemon md:bg-split-color px-4 md:pl-8 md:pr-0 2xl:px-8 hero py-0 w-full ">
<div class="2xl:container w-auto bg-lemon md:pl-20 pr-0 grid lg:grid-rows-1 h-64 lg:grid-cols-7 items-center 2xl:mx-auto">
<div class="lg:row-span-1 lg:col-span-4 order-1 md:pr-20">
<h1 class="head-alt-md sm:head-alt-lg pt-1 max-w-sm">{{ page.title }}</h1>
</div>
<div class="hidden lg:block lg:row-span-2 lg:col-span-3 order-2 h-full 2xl:absolute 2xl:right-0 2xl:w-1/3">
{% image page.photo fill-618x256 class="object-cover w-full h-full" %}
<h1 class="head-alt-md sm:head-alt-lg pt-1 max-w-sm">{{ title }}</h1>
</div>
{% if photo %}
<div class="hidden lg:block lg:row-span-2 lg:col-span-3 order-2 h-full 2xl:absolute 2xl:right-0 2xl:w-1/3">
{% image photo fill-618x256 class="object-cover w-full h-full" %}
</div>
{% endif %}
</div>
</article>
......@@ -2,7 +2,7 @@
{% block content %}
{% include "elections2021/_page_header.html" %}
{% include "elections2021/_page_header.html" with title=page.title photo=page.photo %}
<div class="container container--default pt-8 lg:py-24">
<div class="article-card-list grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 lg:gap-8">
......
......@@ -3,7 +3,7 @@
{% block content %}
{% include "elections2021/_page_header.html" %}
{% include "elections2021/_page_header.html" with title=page.title photo=page.photo %}
<div class="container container--default py-8 lg:py-24">
<section class="text-center relative">
......
......@@ -3,7 +3,7 @@
{% block content %}
{% if active_ministry or active_plan %}
{% if active_plan %}
<article class="relative w-full ">
<div class="grid grid-cols-12">
<div class="col-span-12 lg:col-span-5 grid grid-cols-12">
......@@ -19,8 +19,10 @@
</div>
</div>
</article>
{% elif active_ministry %}
{% include "elections2021/_page_header.html" with title=title %}
{% else %}
{% include "elections2021/_page_header.html" %}
{% include "elections2021/_page_header.html" with title=page.title photo=page.photo %}
{% endif %}
<div class="relative">
......
......@@ -3,7 +3,7 @@
{% block content %}
{% include "elections2021/_page_header.html" %}
{% include "elections2021/_page_header.html" with title=page.title photo=page.photo %}
<div class="container container--default lg:pb-24">
<section class="py-16">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment