lvwerra HF Staff Claude Opus 4.7 (1M context) commited on
Commit
83deead
·
1 Parent(s): 375ff2d

Crop banner viewBox so header/footer rules align with body edges

Browse files

The original viewBox (0 0 2048 620) included ~40 units of empty
padding on the left/right and ~50 units top/bottom, which made the
banner content look small inside the body-width container. Crop to
(40 50 1970 540) so the horizontal rules at x=40 and x=2010 sit at
the banner's left/right edges — same edges as the blog text below.

Nothing inside the SVG was repositioned; only the viewBox and
matching aspect-ratio changed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. demo.html +2 -2
demo.html CHANGED
@@ -87,7 +87,7 @@
87
 
88
  display: block;
89
  width: 100%;
90
- aspect-ratio: 2048 / 620;
91
  position: relative;
92
  overflow: hidden;
93
  background:
@@ -612,7 +612,7 @@
612
 
613
  <div class="banner-wrap">
614
  <section class="carbon-banner" aria-label="Carbon DNA model banner">
615
- <svg class="carbon-art" viewBox="0 0 2048 620" role="img" aria-labelledby="cb-carbonTitle cb-carbonDesc">
616
  <title id="cb-carbonTitle">Carbon genomic language model banner</title>
617
  <desc id="cb-carbonDesc">A technical editorial banner with the CARBON-0 model name and an adjacent animated DNA strand.</desc>
618
 
 
87
 
88
  display: block;
89
  width: 100%;
90
+ aspect-ratio: 1970 / 540;
91
  position: relative;
92
  overflow: hidden;
93
  background:
 
612
 
613
  <div class="banner-wrap">
614
  <section class="carbon-banner" aria-label="Carbon DNA model banner">
615
+ <svg class="carbon-art" viewBox="40 50 1970 540" role="img" aria-labelledby="cb-carbonTitle cb-carbonDesc">
616
  <title id="cb-carbonTitle">Carbon genomic language model banner</title>
617
  <desc id="cb-carbonDesc">A technical editorial banner with the CARBON-0 model name and an adjacent animated DNA strand.</desc>
618