Corner frame hero
The frame: serif letters at the corners and along the bottom, a tiny statement and nav on top, one tall picture in the centre column; on phones a full-bleed picture with big letters and a Menu sheet.
Part of the style
Corner Serif Frame
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/corner-serif-frame/hero/figma.html?palette=ff98fce80da04497
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/corner-serif-frame/hero/figma.html?palette=ff98fce80da04497 and pass that whole HTML document to the html_to_figma tool, so the part "Corner frame 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 {
--ink: #fff2f1;
--ink-soft: #f0b2b0;
--paper: #334493;
--veil: rgba(51, 68, 147, 0.3);
--wash: #3d4f9b;
}
</style>
<header class="hero">
<img class="hero__picture" src="assets/entrance-hall.jpg" alt="A stair hall in miniature: a curved staircase, painted landscape walls and a glass lantern" width="800" height="772">
<div class="hero__veil" aria-hidden="true"></div>
<p class="hero__word">Nauve</p>
<div class="hero__bar">
<p class="hero__statement">Nauve is a small workshop that builds period rooms at one twelfth of their size. We cut every chair, hang every curtain and wire every lamp by hand, so a room can be held, turned and looked into.</p>
<button class="hero__menu" type="button" aria-expanded="false" aria-controls="hero-links">Menu</button>
<nav class="hero__nav" id="hero-links" aria-label="Main">
<a class="hero__link is-current" href="#" aria-current="page">Home</a>
<a class="hero__link" href="#">Rooms</a>
<a class="hero__link" href="#">Press</a>
<a class="hero__link" href="#">Awards</a>
<a class="hero__link" href="#">Workshop</a>
<a class="hero__link hero__link--contact" href="#">Contact</a>
</nav>
<a class="hero__contact" href="#">Contact</a>
</div>
</header>
<style>
.hero {
position: relative;
height: clamp(600px, 62vw, 900px);
overflow: hidden;
background: var(--paper);
color: var(--ink);
}
.hero__picture {
position: absolute;
top: 0;
left: 50%;
width: var(--column);
height: 100%;
translate: -50% 0;
object-fit: cover;
object-position: 50% 60%;
background: var(--wash);
filter: var(--tint);
}
.hero__veil {
display: none;
}
.hero__word {
position: absolute;
inset: 0;
margin: 0;
font-family: var(--font-letter);
font-size: var(--letter);
font-weight: 400;
line-height: 1;
text-transform: uppercase;
pointer-events: none;
}
.hero__letter {
position: absolute;
left: calc(var(--edge) + var(--u) * (100% - 2 * var(--edge)));
top: calc(var(--edge) + var(--v) * (100% - 2 * var(--edge)));
translate: calc(var(--u) * -100%) calc(var(--v) * -100%);
}
.hero__bar {
position: relative;
display: grid;
grid-template-columns: minmax(0, 34em) 1fr;
align-items: start;
gap: var(--gap);
padding: var(--edge) calc(var(--edge) + 1.6 * var(--letter));
font-size: var(--text-s);
line-height: var(--leading);
}
.hero__statement {
margin: 0;
font-weight: 500;
}
.hero__nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0 var(--space-s);
}
.hero__link,
.hero__contact,
.hero__menu {
color: inherit;
font: inherit;
font-weight: 500;
text-decoration: none;
}
.hero__link {
display: inline-flex;
align-items: start;
min-height: 44px;
min-width: 44px;
transition: opacity var(--quick) var(--ease-fade);
}
.hero__nav:hover .hero__link {
opacity: 0.35;
}
.hero__nav .hero__link:hover,
.hero__link:focus-visible {
opacity: 1;
}
.hero__link.is-current::before {
content: "";
width: 5px;
height: 5px;
margin: 4px 4px 0 0;
border-radius: 50%;
background: currentColor;
}
.hero__link:focus-visible,
.hero__contact:focus-visible,
.hero__menu:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: 2px;
}
.hero__menu,
.hero__contact {
display: none;
}
@media (max-width: 720px) {
.hero {
height: clamp(640px, 190vw, 820px);
}
.hero__picture {
left: 0;
width: 100%;
translate: none;
}
.hero__veil {
display: block;
position: absolute;
inset: 0;
background: var(--veil);
}
.hero__word {
inset: 46% 0 18%;
font-size: var(--letter-l);
}
.hero__bar {
grid-template-columns: 1fr auto;
padding: var(--space-s) var(--edge);
font-size: var(--text-m);
}
.hero__statement {
display: none;
}
.hero__menu,
.hero__contact {
display: inline-flex;
align-items: center;
min-height: 44px;
min-width: 44px;
padding: 0;
border: 0;
background: none;
cursor: pointer;
}
.hero__contact {
justify-content: end;
}
.hero__nav {
position: absolute;
top: calc(44px + var(--space-s));
left: var(--edge);
right: var(--edge);
display: grid;
justify-content: start;
gap: 0;
padding: var(--space-s) var(--space-m);
background: var(--paper);
opacity: 0;
translate: 0 -8px;
visibility: hidden;
transition: opacity var(--time) var(--ease), translate var(--time) var(--ease), visibility 0s linear var(--time);
}
.hero.is-open .hero__nav {
opacity: 1;
translate: 0 0;
visibility: visible;
transition-delay: 0s;
}
.hero__link {
align-items: center;
font-size: var(--text-m);
}
.hero__link.is-current::before {
margin-top: 0;
}
.hero__link--contact {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.hero__nav,
.hero__link {
transition: none;
}
}
</style>
<script>
(() => {
// Split the word into letters: the first two go to the top corners, the rest spread along the bottom.
const spread = (el) => {
const word = el.textContent.trim();
const chars = [...word].filter((c) => c.trim());
el.setAttribute('aria-label', word);
el.textContent = '';
const n = chars.length;
chars.forEach((c, i) => {
let u = 0;
let v = 0;
if (n === 1) u = 0.5;
else if (i < 2) u = i;
else {
const m = n - 2;
u = m > 1 ? (i - 2) / (m - 1) : 0.5;
v = 1;
}
const span = document.createElement('span');
span.className = 'hero__letter';
span.setAttribute('aria-hidden', 'true');
span.textContent = c;
span.style.cssText = `--u:${u};--v:${v}`;
el.append(span);
});
};
document.querySelectorAll('.hero').forEach((root) => {
const word = root.querySelector('.hero__word');
if (word) spread(word);
const button = root.querySelector('.hero__menu');
if (!button) return;
const close = () => {
root.classList.remove('is-open');
button.setAttribute('aria-expanded', 'false');
};
button.addEventListener('click', () => {
const open = !root.classList.contains('is-open');
root.classList.toggle('is-open', open);
button.setAttribute('aria-expanded', String(open));
button.textContent = open ? 'Close' : 'Menu';
if (!open) close();
});
root.addEventListener('keydown', (event) => {
if (event.key === 'Escape' && root.classList.contains('is-open')) {
close();
button.textContent = 'Menu';
button.focus();
}
});
});
})();
</script>