Cast-in hero
A full-bleed dimmed photograph under one huge serif line in mixed case and capitals, with a two-line place caption; it opens black and lets the picture fade in after the title.
Part of the style
Inscribed Glyph Night
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/inscribed-glyph-night/hero/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/inscribed-glyph-night/hero/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Cast-in hero" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<section class="hero" aria-label="Corvid, cast in bronze">
<div class="hero__frame">
<img class="hero__photo" src="assets/bells-workshop.jpg" alt="Fresh cast church bells lying on a foundry floor under a hanging bell" width="1200" height="878">
</div>
<h1 class="hero__title">
<span class="hero__line">Corvid,</span>
<span class="hero__line hero__line--caps">cast in bronze</span>
</h1>
<p class="hero__caption">
<span class="hero__place">BELLHOUSE ROW, Ashby</span>
<span class="hero__sub">Forty years of letters poured around a bell</span>
</p>
</section>
<style>
.hero {
position: relative;
display: grid;
align-items: center;
min-height: clamp(560px, 56vw, 900px);
padding: var(--space-xl) var(--edge);
overflow: hidden;
background: var(--paper);
color: var(--ink);
}
.hero__frame {
position: absolute;
inset: 0;
opacity: 0;
transform: scale(1.06);
transition: opacity var(--slow) var(--ease) 900ms, transform var(--slow) var(--ease) 900ms;
}
.hero__frame::after {
content: "";
position: absolute;
inset: 0;
background: var(--shade);
}
.hero__photo {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(0.35) contrast(1.1) brightness(0.8);
}
.hero__title {
position: relative;
margin: 0;
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 400;
line-height: 1.05;
letter-spacing: -0.01em;
opacity: 0;
transition: opacity var(--fade) var(--ease) 200ms;
}
.hero__line {
display: inline;
}
.hero__line--caps {
text-transform: uppercase;
letter-spacing: -0.005em;
}
.hero__caption {
position: absolute;
left: var(--edge);
bottom: var(--space-l);
display: grid;
margin: 0;
font-size: var(--text-s);
line-height: 1.5;
opacity: 0;
transition: opacity var(--fade) var(--ease) 1400ms;
}
.hero__sub {
color: var(--ink-mid);
}
.hero.is-ready .hero__frame {
opacity: 1;
transform: none;
}
.hero.is-ready .hero__title,
.hero.is-ready .hero__caption {
opacity: 1;
}
@media (max-width: 48rem) {
.hero {
align-items: end;
padding-bottom: calc(var(--space-xl) * 2);
}
.hero__line {
display: block;
}
}
@media (prefers-reduced-motion: reduce) {
.hero__frame,
.hero__title,
.hero__caption {
opacity: 1;
transform: none;
transition: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.hero')) {
requestAnimationFrame(() => requestAnimationFrame(() => root.classList.add('is-ready')));
}
})();
</script>