Hero
A two-tone statement and a green pill above a row of rounded object tiles that bleeds off the right edge and rises in at load.
Part of the style
Green Screen Darkroom
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/green-screen-darkroom/hero/figma.html?palette=a00a69e670901cbb
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/green-screen-darkroom/hero/figma.html?palette=a00a69e670901cbb and pass that whole HTML document to the html_to_figma tool, so the part "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
<style>
/* Goes after the pack's base.css */
:root {
--night: #030303;
--panel: #070707;
--tile: #100f0f;
--ink: #c5c4c9;
--ink-soft: #7a797c;
--ink-mute: #666563;
--ink-faint: #2a2a29;
--on-signal: #030303;
--signal: #6a77c3;
--signal-deep: #4e5891;
}
</style>
<section class="hero">
<div class="hero__copy">
<h1 class="hero__title">The quiet archive for staged objects,<br><span class="hero__soft">lit once and kept for good.</span></h1>
<a class="hero__button" href="#">Join</a>
</div>
<ul class="hero__rail" aria-label="Recently staged">
<li class="hero__tile" style="--slip-x: 58%; --slip-y: 62%; --slip-r: -8deg;">
<img class="hero__picture" src="assets/plum-vase.jpg" alt="A celadon vase with a narrow neck on a grey ground" width="533" height="800" loading="eager">
<span class="hero__slip" aria-hidden="true">Plinthe<br>Archive</span>
</li>
<li class="hero__tile" style="--slip-x: 12%; --slip-y: 18%; --slip-r: 6deg;">
<img class="hero__picture" src="assets/cap.jpg" alt="An old quilted linen cap with a braided band" width="800" height="762" loading="eager">
<span class="hero__slip" aria-hidden="true">Plinthe<br>Archive</span>
</li>
<li class="hero__tile" style="--slip-x: 60%; --slip-y: 10%; --slip-r: 90deg;">
<img class="hero__picture" src="assets/ewer.jpg" alt="A pale blue ewer with white relief figures" width="693" height="800" loading="eager">
<span class="hero__slip" aria-hidden="true">Plinthe<br>Archive</span>
</li>
<li class="hero__tile" style="--slip-x: 14%; --slip-y: 66%; --slip-r: -4deg;">
<img class="hero__picture" src="assets/tea-bowl.jpg" alt="A carved red lacquer tea bowl" width="800" height="533" loading="eager">
<span class="hero__slip" aria-hidden="true">Plinthe<br>Archive</span>
</li>
<li class="hero__tile" style="--slip-x: 52%; --slip-y: 58%; --slip-r: 12deg;">
<img class="hero__picture" src="assets/amphora.jpg" alt="A brown glazed flask with carved flowers" width="533" height="800" loading="eager">
<span class="hero__slip" aria-hidden="true">Plinthe<br>Archive</span>
</li>
</ul>
</section>
<style>
.hero {
display: grid;
grid-template-columns: minmax(0, 1fr);
align-content: end;
gap: var(--space-xl);
min-height: clamp(560px, 62vw, 860px);
padding: var(--space-xl) 0 var(--edge);
overflow: clip;
background: var(--night);
color: var(--ink);
}
.hero__copy {
padding: 0 var(--edge);
max-width: 40rem;
}
.hero__title {
margin: 0 0 var(--space-m);
font-size: var(--text-l);
font-weight: var(--weight-regular);
line-height: var(--leading-tight);
letter-spacing: -0.01em;
text-wrap: balance;
}
.hero__soft {
color: var(--ink-soft);
}
.hero__button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 128px;
min-height: var(--tap);
padding: 0 var(--space-l);
border-radius: var(--radius-field);
background: var(--signal);
color: var(--on-signal);
font-size: var(--text-xs);
font-weight: var(--weight-medium);
letter-spacing: var(--track-caps);
text-transform: uppercase;
text-decoration: none;
transition: background-color var(--time) var(--ease), color var(--time) var(--ease);
}
.hero__button:hover,
.hero__button:focus-visible {
background: var(--ink);
}
.hero__button:focus-visible {
outline: var(--rule) solid var(--signal);
outline-offset: 3px;
}
.hero__button:active {
background: var(--signal-deep);
}
.hero__rail {
display: flex;
gap: var(--gap);
margin: 0;
padding: 0 0 0 var(--edge);
list-style: none;
}
.hero__tile {
position: relative;
flex: 0 0 clamp(200px, 25vw, 380px);
aspect-ratio: 4 / 5;
overflow: hidden;
border-radius: var(--radius-card);
background: var(--tile);
opacity: 0;
translate: 0 40px;
transition: opacity var(--arrive) var(--ease-out), translate var(--arrive) var(--ease-out);
transition-delay: calc(var(--order, 0) * 90ms);
}
.hero.is-in .hero__tile {
opacity: 1;
translate: 0 0;
}
.hero__picture {
width: 100%;
height: 100%;
object-fit: cover;
filter: saturate(0.75) contrast(1.05);
}
.hero__slip {
position: absolute;
left: var(--slip-x);
top: var(--slip-y);
width: 22%;
aspect-ratio: 5 / 8;
padding: 6px;
border-radius: var(--radius-chip);
background: var(--signal);
color: var(--on-signal);
font-size: 9px;
font-weight: var(--weight-medium);
line-height: 1;
text-transform: uppercase;
rotate: var(--slip-r);
box-shadow: var(--shadow-slip);
}
@media (max-width: 40rem) {
.hero {
padding-top: calc(var(--space-xl) * 1.5);
}
.hero__copy {
justify-self: center;
text-align: center;
}
.hero__tile {
flex-basis: 58vw;
}
}
@media (prefers-reduced-motion: reduce) {
.hero__tile {
opacity: 1;
translate: none;
transition: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.hero')) {
root.querySelectorAll('.hero__tile').forEach((tile, order) => tile.style.setProperty('--order', order));
requestAnimationFrame(() => requestAnimationFrame(() => root.classList.add('is-in')));
}
})();
</script>