Quentin Gallouédec commited on
Commit
d562bf6
·
1 Parent(s): 581209e

100% width

Browse files
app/src/components/HeroArticle.astro CHANGED
@@ -305,9 +305,12 @@ const pdfFilename = `${slugify(pdfBase)}.pdf`;
305
  font-size: clamp(24px, 3.2vw, 38px);
306
  }
307
  .hero-banner {
308
- max-width: 980px;
309
- margin: 0 auto;
310
- aspect-ratio: 5 / 2;
 
 
 
311
  overflow: hidden;
312
  }
313
  .hero-banner :global(.html-embed) {
 
305
  font-size: clamp(24px, 3.2vw, 38px);
306
  }
307
  .hero-banner {
308
+ width: 100vw;
309
+ margin-left: calc(50% - 50vw);
310
+ margin-right: calc(50% - 50vw);
311
+ aspect-ratio: 4 / 1;
312
+ min-height: 280px;
313
+ max-height: 520px;
314
  overflow: hidden;
315
  }
316
  .hero-banner :global(.html-embed) {
app/src/content/embeds/banner.html CHANGED
@@ -1,4 +1,4 @@
1
- <div class="tito-banner" style="width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); aspect-ratio: 4 / 1; min-height: 280px; max-height: 520px; overflow: hidden; position: relative; background: #04040e;">
2
  <canvas class="tito-banner__canvas" style="display:block; width:100%; height:100%; cursor: crosshair; touch-action: none;"></canvas>
3
  <div class="tito-banner__hint" style="position:absolute; bottom:14px; right:18px; font: 600 10px -apple-system, BlinkMacSystemFont, sans-serif; color: rgba(254,245,216,0.55); letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; transition: opacity 1.2s ease; mix-blend-mode: screen;">hover to disturb</div>
4
  </div>
 
1
+ <div class="tito-banner" style="width: 100%; height: 100%; overflow: hidden; position: relative; background: #04040e;">
2
  <canvas class="tito-banner__canvas" style="display:block; width:100%; height:100%; cursor: crosshair; touch-action: none;"></canvas>
3
  <div class="tito-banner__hint" style="position:absolute; bottom:14px; right:18px; font: 600 10px -apple-system, BlinkMacSystemFont, sans-serif; color: rgba(254,245,216,0.55); letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; transition: opacity 1.2s ease; mix-blend-mode: screen;">hover to disturb</div>
4
  </div>