Huge line over a photograph
The hero line set huge and tight, a full-width photograph that settles in scale, a large intro sentence and a black plus button.
Part of the style
Black Bar Grotesk
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/black-bar-grotesk/hero/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/black-bar-grotesk/hero/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Huge line over a photograph" 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">
<h1 class="hero__title">We make public green.</h1>
<figure class="hero__frame">
<img class="hero__photo" src="assets/pergola.jpg" alt="A long pergola of climbing roses over a straight garden path" width="1200" height="800" loading="eager">
</figure>
<div class="hero__foot">
<p class="hero__lead">Moraine is a small studio of landscape architects in Lyon, Basel and Turin, with one plain aim: parks, squares and courtyards that people actually stay in.</p>
<a class="hero__cta" href="#">See the parks <span class="hero__plus" aria-hidden="true">+</span></a>
</div>
</section>
<style>
.hero {
padding: var(--space-l) var(--edge) var(--section-space);
}
.hero__title {
margin: 0 0 var(--space-l);
font-family: var(--font-display);
font-size: var(--display-l);
font-weight: 400;
letter-spacing: var(--track-tight);
line-height: var(--lead-display);
text-align: center;
text-wrap: balance;
}
.hero__frame {
margin: 0;
overflow: hidden;
aspect-ratio: 16 / 7;
}
.hero__photo {
width: 100%;
height: 100%;
object-fit: cover;
transform: scale(1.08);
transition: transform 1.6s var(--ease);
}
.hero.is-seen .hero__photo {
transform: scale(1);
}
.hero__foot {
display: grid;
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
align-items: end;
gap: var(--gap);
margin-top: var(--space-l);
}
.hero__lead {
margin: 0;
font-size: var(--text-l);
letter-spacing: -0.03em;
line-height: 1.15;
}
.hero__cta {
justify-self: end;
display: inline-flex;
align-items: center;
gap: 0.3em;
min-height: var(--tap);
padding: 0 var(--space-s);
border-radius: var(--radius-s);
background: var(--ink);
color: var(--paper);
font-size: var(--text-s);
font-weight: 700;
text-decoration: none;
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.hero__plus {
display: inline-block;
transition: transform var(--quick) var(--ease);
}
.hero__cta:hover,
.hero__cta:focus-visible {
background: var(--paper);
color: var(--ink);
box-shadow: inset 0 0 0 var(--rule) var(--ink);
}
.hero__cta:hover .hero__plus,
.hero__cta:focus-visible .hero__plus {
transform: rotate(90deg);
}
@media (max-width: 40rem) {
.hero__title { text-align: left; }
.hero__frame { aspect-ratio: 4 / 5; }
.hero__foot { grid-template-columns: 1fr; }
.hero__cta { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
.hero__photo { transform: none; transition: none; }
}
</style>
<script>
(() => {
const roots = document.querySelectorAll('.hero');
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
entry.target.classList.add('is-seen');
seen.unobserve(entry.target);
}
}, { threshold: 0.05 });
for (const root of roots) seen.observe(root);
})();
</script>