Skip to content

Commit a3425e7

Browse files
TMHSDigitalclaude
andcommitted
Site: centre the hero
The headline, lead, search, links and freshness line now sit centred over the full-width filmstrip. Each headline sentence is its own balanced line, so a phone no longer strands "source." on a line of its own. The rule under the hero is inset by the padding, so it ends at the content edge like the other rules on the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LpkeXPtfg3jGzhfoGMshTE
1 parent e924ada commit a3425e7

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

‎site/public/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<main id="top">
1919
<section class="hero" aria-labelledby="hero-title">
20-
<h1 id="hero-title"><!--HERO_COUNT--> free assets and tools.<br />Every licence read at the source.</h1>
20+
<h1 id="hero-title"><span class="hero-line"><!--HERO_COUNT--> free assets and tools.</span> <span class="hero-line">Every licence read at the source.</span></h1>
2121
<p class="hero-lead">
2222
2D, 3D, audio, fonts, shaders and tools, with commercial use and
2323
attribution spelled out per entry.

‎site/public/styles.css‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,38 @@ input:focus-visible,
20572057
margin-top: 1rem;
20582058
}
20592059

2060+
/* The hero reads as one centred block over the full-width filmstrip. The
2061+
rule under it (and over the footer) is inset by the padding so it ends at
2062+
the content edge, like every other rule on the page. */
2063+
.hero {
2064+
--pad-x: clamp(1rem, 3vw, 1.5rem);
2065+
text-align: center;
2066+
border-bottom: 0;
2067+
background: linear-gradient(var(--line), var(--line)) bottom center / calc(100% - 2 * var(--pad-x)) 1px no-repeat;
2068+
}
2069+
2070+
.hero h1,
2071+
.hero-lead,
2072+
.hero-search,
2073+
.hero .freshness-line {
2074+
margin-inline: auto;
2075+
}
2076+
2077+
/* One line per sentence, each balanced on its own, so a narrow screen
2078+
never strands the last word of the promise. */
2079+
.hero-line {
2080+
display: block;
2081+
text-wrap: balance;
2082+
}
2083+
2084+
.hero-actions {
2085+
justify-content: center;
2086+
}
2087+
2088+
.hero .freshness-line {
2089+
max-width: 40rem;
2090+
}
2091+
20602092
.filmstrip {
20612093
display: grid;
20622094
grid-template-columns: repeat(9, minmax(0, 1fr));

0 commit comments

Comments
 (0)