Skip to content
Snippets Groups Projects
Commit cf882cdd authored by xaralis's avatar xaralis
Browse files

Fix responsivness of hero blocks

parent f986bb46
Branches
Tags
No related merge requests found
<article class="hero {{ classes }}"> <article class="hero {{ classes }}">
<div class="container grid grid-cols-7 gap-1 items-start"> <div class="container grid lg:grid-rows-5 lg:grid-cols-7 gap-1 items-center">
<div class="col-span-3"> <div class="lg:row-span-4 lg:col-span-3 order-1">
<h1 class="head-alt-xl max-w-xl">{{ claim }}{{^ claim }}Piráti<br>Pardubického<br>kraje{{/ claim }}</h1> <h1 class="head-alt-md sm:head-alt-lg md:head-alt-xl">{{ claim }}{{^ claim }}Piráti<br>Pardubického<br>kraje{{/ claim }}</h1>
<div class="mt-6">
{{> atoms-icon-button(classes: "btn--black btn--hoveractive text-lg", icon: "fas fa-chevron-right") }}
</div> </div>
<div class="lg:row-span-1 lg:col-span-3 order-3">
<div class="md-2 md:mt-4">
{{> atoms-icon-button(classes: "btn--black btn--hoveractive btn--fullwidth md:btn--autowidth text-lg", icon: "fas fa-chevron-right") }}
</div> </div>
<div class="col-span-4"> </div>
<div class="lg:row-span-5 lg:col-span-4 order-2">
<img src="/images/hero-profile-img.png" /> <img src="/images/hero-profile-img.png" />
</div> </div>
</div> </div>
......
<article class="hero hero--image {{ classes }}" style="--image-url: url({{ img.landscape-16x9-fullhd.src }})"> <article class="hero hero--image {{ classes }}" style="--image-url: url({{ img.landscape-16x9-fullhd.src }})">
<div class="container flex space-x-8"> <div class="container grid lg:grid-rows-5 lg:grid-cols-7 gap-1 items-center">
<div> <div class="lg:row-span-4 lg:col-span-3 order-1">
<h1 class="head-alt-lg max-w-xl">{{ claim }}{{^ claim }}{{ headline.medium }}{{/ claim }}</h1> <h1 class="head-alt-md md:head-alt-xl">{{ claim }}{{^ claim }}{{ headline.medium }}{{/ claim }}</h1>
<div class="mt-6">
<a href="#" class="btn btn--white text-lg"><span class="btn__body">{{ cta }}</span></a>
<a href="#" class="btn btn--white text-lg"><span class="btn__body">{{ cta }}</span></a>
</div> </div>
<div class="lg:row-span-1 lg:col-span-3 order-3">
<div class="md-2 md:mt-4 space-y-2">
{{> atoms-basic-button(classes: "btn--white btn--fullwidth md:btn--autowidth text-lg") }}
{{> atoms-basic-button(classes: "btn--white btn--fullwidth md:btn--autowidth text-lg") }}
</div> </div>
<div> </div>
<div class="lg:row-span-5 lg:col-span-4 order-2">
<img src="/images/hero-profile-img.png" /> <img src="/images/hero-profile-img.png" />
</div> </div>
</div> </div>
......
@responsive {
.head-alt-xl { .head-alt-xl {
@apply text-7xl font-alt font-normal leading-negative; @apply text-7xl font-alt font-normal leading-negative;
} }
...@@ -82,3 +83,5 @@ ...@@ -82,3 +83,5 @@
.head-allcaps-heavy-3xs { .head-allcaps-heavy-3xs {
@apply text-base font-condensed font-bold uppercase leading-tight; @apply text-base font-condensed font-bold uppercase leading-tight;
} }
}
.hero { .hero {
@apply py-2;
@screen md {
@apply py-8; @apply py-8;
} }
}
.hero--image { .hero--image {
background: background:
......
This diff is collapsed.
source/images/hero-profile-img.png

494 KiB | W: | H:

source/images/hero-profile-img.png

501 KiB | W: | H:

source/images/hero-profile-img.png
source/images/hero-profile-img.png
source/images/hero-profile-img.png
source/images/hero-profile-img.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment