After improving the design for the web part5
This commit is contained in:
parent
aaf5b07018
commit
85aaa03491
@ -94,7 +94,7 @@ export function LandingOffersCarousel({ ads, loading }: LandingOffersCarouselPro
|
|||||||
className="tl-offers-carousel__stage"
|
className="tl-offers-carousel__stage"
|
||||||
style={{ background: slideBackground(ad), borderColor: `${accent}55` }}
|
style={{ background: slideBackground(ad), borderColor: `${accent}55` }}
|
||||||
>
|
>
|
||||||
<div className="tl-container tl-offers-carousel__copy">
|
<div className="tl-offers-carousel__copy">
|
||||||
<p className="tl-eyebrow tl-eyebrow--gold">{t('landing.offers.kicker')}</p>
|
<p className="tl-eyebrow tl-eyebrow--gold">{t('landing.offers.kicker')}</p>
|
||||||
<h2 className="tl-display tl-offers__title">{ad.title}</h2>
|
<h2 className="tl-display tl-offers__title">{ad.title}</h2>
|
||||||
{ad.subtitle && <p className="tl-offers__sub">{ad.subtitle}</p>}
|
{ad.subtitle && <p className="tl-offers__sub">{ad.subtitle}</p>}
|
||||||
|
|||||||
@ -419,7 +419,7 @@
|
|||||||
.tl-offers-carousel__stage {
|
.tl-offers-carousel__stage {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-height: clamp(220px, 32vh, 340px);
|
min-height: 0;
|
||||||
border-radius: 28px;
|
border-radius: 28px;
|
||||||
border: 1px solid var(--tl-line);
|
border: 1px solid var(--tl-line);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
@ -433,10 +433,12 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.85rem;
|
gap: 0.85rem;
|
||||||
align-content: end;
|
align-content: start;
|
||||||
min-height: clamp(220px, 32vh, 340px);
|
min-height: 0;
|
||||||
padding-block: clamp(1.75rem, 4vw, 2.75rem);
|
width: 100%;
|
||||||
padding-inline: 0;
|
max-width: none;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1.15rem, 3.5vw, 2rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tl-offers-carousel__cta {
|
.tl-offers-carousel__cta {
|
||||||
@ -529,8 +531,15 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tl-offers-carousel__stage {
|
||||||
|
min-height: clamp(240px, 28vh, 320px);
|
||||||
|
}
|
||||||
|
|
||||||
.tl-offers-carousel__copy {
|
.tl-offers-carousel__copy {
|
||||||
max-width: 36rem;
|
max-width: 36rem;
|
||||||
|
min-height: clamp(240px, 28vh, 320px);
|
||||||
|
align-content: end;
|
||||||
|
padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1210,13 +1219,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tl-offers-carousel__stage {
|
.tl-offers-carousel__stage {
|
||||||
border-radius: 22px;
|
border-radius: 20px;
|
||||||
min-height: clamp(200px, 36vh, 280px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tl-offers-carousel__copy {
|
.tl-offers-carousel__copy {
|
||||||
min-height: clamp(200px, 36vh, 280px);
|
gap: 0.65rem;
|
||||||
gap: 0.7rem;
|
padding: 1.15rem 1.1rem 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tl-offers-carousel__cta {
|
.tl-offers-carousel__cta {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user