fix(vitrine): resserrer le hero pour laisser voir le contenu dessous.
Déploiement Hugo Staging / deploy-staging (push) Waiting to run
Déploiement Hugo Staging / deploy-staging (push) Waiting to run
Retire le min-height plein viewport et réduit paddings / taille image.
This commit is contained in:
+19
-15
@@ -274,14 +274,14 @@ body {
|
|||||||
*/
|
*/
|
||||||
.hero {
|
.hero {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: calc(100vh - var(--header-h));
|
/* Pas de plein écran : le contenu suivant doit pointer sous le fold */
|
||||||
min-height: calc(100dvh - var(--header-h));
|
min-height: 0;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1.5rem;
|
gap: 1rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 1.5rem 1.25rem 2.5rem;
|
padding: 1rem 1.25rem 1.25rem;
|
||||||
max-width: var(--max);
|
max-width: var(--max);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -296,7 +296,7 @@ body {
|
|||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height: min(72vh, 38rem);
|
max-height: min(52vh, 28rem);
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: left center;
|
object-position: left center;
|
||||||
}
|
}
|
||||||
@@ -336,9 +336,10 @@ body {
|
|||||||
@media (min-width: 64rem) {
|
@media (min-width: 64rem) {
|
||||||
.hero {
|
.hero {
|
||||||
grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
|
grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
|
||||||
column-gap: 2rem;
|
column-gap: 1.75rem;
|
||||||
padding: 2rem 2.5rem 3rem;
|
padding: 1rem 2.5rem 1.25rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
.hero__visual {
|
.hero__visual {
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
@@ -346,7 +347,7 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.hero__brand-img {
|
.hero__brand-img {
|
||||||
max-height: calc(100vh - var(--header-h) - 4rem);
|
max-height: min(58vh, 30rem);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.hero__copy {
|
.hero__copy {
|
||||||
@@ -355,10 +356,10 @@ body {
|
|||||||
}
|
}
|
||||||
.hero__title {
|
.hero__title {
|
||||||
font-size: clamp(1.85rem, 1.4rem + 1.1vw, 2.6rem);
|
font-size: clamp(1.85rem, 1.4rem + 1.1vw, 2.6rem);
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 0.75rem;
|
||||||
}
|
}
|
||||||
.hero__tagline {
|
.hero__tagline {
|
||||||
margin-bottom: 1.75rem;
|
margin-bottom: 1.25rem;
|
||||||
max-width: 28rem;
|
max-width: 28rem;
|
||||||
}
|
}
|
||||||
.hero__actions { justify-content: flex-start; }
|
.hero__actions { justify-content: flex-start; }
|
||||||
@@ -367,20 +368,23 @@ body {
|
|||||||
@media (max-width: 40rem) {
|
@media (max-width: 40rem) {
|
||||||
.hero {
|
.hero {
|
||||||
min-height: auto;
|
min-height: auto;
|
||||||
padding: 1rem 1rem 2rem;
|
padding: 0.75rem 1rem 1.25rem;
|
||||||
gap: 1rem;
|
gap: 0.75rem;
|
||||||
}
|
}
|
||||||
.hero__brand-img {
|
.hero__brand-img {
|
||||||
max-height: 48vh;
|
max-height: 40vh;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
.hero__title { font-size: 1.3rem; }
|
.hero__title { font-size: 1.3rem; }
|
||||||
.hero__tagline { font-size: 0.98rem; margin-bottom: 1.2rem; }
|
.hero__tagline { font-size: 0.98rem; margin-bottom: 1rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sections */
|
/* Sections */
|
||||||
.section {
|
.section {
|
||||||
padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
|
padding: clamp(2rem, 4vw, 3.5rem) 1.25rem;
|
||||||
|
}
|
||||||
|
.home > .section:first-of-type {
|
||||||
|
padding-top: clamp(1.25rem, 2.5vw, 2rem);
|
||||||
}
|
}
|
||||||
.section__inner {
|
.section__inner {
|
||||||
max-width: var(--max);
|
max-width: var(--max);
|
||||||
|
|||||||
Reference in New Issue
Block a user