mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-12 08:16:09 +00:00
Landing : visuel du hero ramené à ~1,3 fois sa taille d'origine
Débordement limité à 80 px à droite, hauteur 480 à 560 px. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
98b3b39940
commit
52573cdc9f
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -759,7 +759,7 @@ function HeroGraph({ className = '' }) {
|
||||
<div ref={containerRef} className={`relative w-full max-w-2xl mx-auto lg:mx-0 hero-graph ${className}`} data-reveal data-hero-galaxy>
|
||||
<canvas
|
||||
ref={canvasRef}
|
||||
className="block w-full h-[40svh] sm:h-[clamp(420px,92vw,560px)] lg:h-[clamp(560px,46vw,700px)]"
|
||||
className="block w-full h-[40svh] sm:h-[clamp(420px,92vw,560px)] lg:h-[clamp(480px,36vw,560px)]"
|
||||
aria-label="Arbre de famille animé"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -102,9 +102,9 @@ html.logo-intro .lk-nom { animation: lk-nom 700ms var(--ease-out) 380ms both; }
|
||||
.hero-txt { display: grid; gap: 24px; justify-items: start; }
|
||||
.hero-txt .t-d1 { max-width: 17ch; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; }
|
||||
.hero-txt .lede { max-width: 44ch; }
|
||||
/* Le visuel du hero déborde sur la marge droite, jamais au-delà de l'écran (24px de garde pour la barre de défilement) */
|
||||
/* Le visuel du hero gagne un peu de place sur la gouttière et la marge droite (80px au plus, 24px de garde pour la barre de défilement) */
|
||||
@media (min-width: 1024px) {
|
||||
.hero-graph { max-width: none; margin-left: -40px; width: calc(100% + 40px + var(--gut) + max(0px, (100vw - 1200px) / 2) - 24px); }
|
||||
.hero-graph { max-width: none; margin-left: -40px; width: calc(100% + 40px + min(80px, var(--gut) + max(0px, (100vw - 1200px) / 2) - 24px)); }
|
||||
}
|
||||
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user