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

Fix responsivness of hero blocks

parent f986bb46
No related branches found
No related tags found
No related merge requests found
Pipeline #725 passed
<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"> </div>
{{> atoms-icon-button(classes: "btn--black btn--hoveractive text-lg", icon: "fas fa-chevron-right") }} <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> </div>
<div class="col-span-4"> <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"> </div>
<a href="#" class="btn btn--white text-lg"><span class="btn__body">{{ cta }}</span></a> <div class="lg:row-span-1 lg:col-span-3 order-3">
<a href="#" class="btn btn--white text-lg"><span class="btn__body">{{ cta }}</span></a> <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> <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>
......
.head-alt-xl { @responsive {
@apply text-7xl font-alt font-normal leading-negative; .head-alt-xl {
} @apply text-7xl font-alt font-normal leading-negative;
}
.head-alt-lg { .head-alt-lg {
@apply text-6xl font-alt font-normal leading-negative; @apply text-6xl font-alt font-normal leading-negative;
} }
.head-alt-md { .head-alt-md {
@apply text-4xl font-alt font-normal leading-negative; @apply text-4xl font-alt font-normal leading-negative;
} }
.head-alt-base { .head-alt-base {
@apply text-3xl font-alt font-normal leading-negative; @apply text-3xl font-alt font-normal leading-negative;
} }
.head-alt-sm { .head-alt-sm {
@apply text-2xl font-alt font-normal leading-negative; @apply text-2xl font-alt font-normal leading-negative;
} }
.head-alt-xs { .head-alt-xs {
@apply text-xl font-alt font-normal leading-negative; @apply text-xl font-alt font-normal leading-negative;
} }
.head-alt-2xs { .head-alt-2xs {
@apply text-lg font-alt font-normal leading-negative; @apply text-lg font-alt font-normal leading-negative;
} }
.head-base { .head-base {
@apply text-3xl font-condensed font-medium leading-tight; @apply text-3xl font-condensed font-medium leading-tight;
} }
.head-sm { .head-sm {
@apply text-2xl font-condensed font-medium leading-tight; @apply text-2xl font-condensed font-medium leading-tight;
} }
.head-xs { .head-xs {
@apply text-xl font-condensed font-medium leading-tight; @apply text-xl font-condensed font-medium leading-tight;
} }
.head-2xs { .head-2xs {
@apply text-lg font-condensed font-medium leading-tight; @apply text-lg font-condensed font-medium leading-tight;
} }
.head-heavy-base { .head-heavy-base {
@apply text-3xl font-condensed font-bold leading-tight; @apply text-3xl font-condensed font-bold leading-tight;
} }
.head-heavy-sm { .head-heavy-sm {
@apply text-2xl font-condensed font-bold leading-tight; @apply text-2xl font-condensed font-bold leading-tight;
} }
.head-heavy-xs { .head-heavy-xs {
@apply text-xl font-condensed font-bold leading-tight; @apply text-xl font-condensed font-bold leading-tight;
} }
.head-heavy-2xs { .head-heavy-2xs {
@apply text-lg font-condensed font-bold leading-tight; @apply text-lg font-condensed font-bold leading-tight;
} }
.head-allcaps-2xs { .head-allcaps-2xs {
@apply text-lg font-condensed uppercase leading-tight; @apply text-lg font-condensed uppercase leading-tight;
} }
.head-allcaps-3xs { .head-allcaps-3xs {
@apply text-base font-condensed uppercase leading-tight; @apply text-base font-condensed uppercase leading-tight;
} }
.head-allcaps-heavy-2xs { .head-allcaps-heavy-2xs {
@apply text-lg font-condensed font-bold uppercase leading-tight; @apply text-lg font-condensed font-bold uppercase leading-tight;
} }
.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-8; @apply py-2;
@screen md {
@apply py-8;
}
} }
.hero--image { .hero--image {
......
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.
Finish editing this message first!
Please register or to comment