Footer
Gold footer with the motto on one line, half solid and half outlined, a sign-up field joined to its button in one tab outline that validates in place, four link columns, and the drawn wordmark as wide as the page standing up letter by letter.
Part of the style
Rollerdrome Colour Block
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/rollerdrome-colour-block/footer/figma.html?palette=1a6f66823777e8e6
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/rollerdrome-colour-block/footer/figma.html?palette=1a6f66823777e8e6 and pass that whole HTML document to the html_to_figma tool, so the part "Footer" 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 {
--page: #111314;
--ink: #fff3e3;
--paper: #000000;
--pink: #7b644f;
--gold: #7f624b;
--cobalt: #ffefe1;
--frame: #7f624b;
--red: #87705a;
--orange: #796655;
}
</style>
<footer class="footer">
<p class="footer__motto">
<span class="footer__solid">Roll like</span>
<span class="footer__dash" aria-hidden="true"></span>
<span class="footer__open">Nobody brakes</span>
</p>
<div class="footer__cols">
<form class="footer__signup" novalidate>
<h2 class="footer__title">First on the floor</h2>
<p class="footer__note">One email a month. New sessions, never spam.</p>
<div class="footer__field">
<input class="footer__input" type="email" name="email" placeholder="you@example.com" aria-label="Email address" autocomplete="email" required>
<button class="footer__submit" type="submit">Count me in <svg class="footer__arrow" viewBox="0 0 20 14" aria-hidden="true"><path d="M0 7H16M10 1.5 16 7 10 12.5"/></svg></button>
</div>
<p class="footer__status" role="status"></p>
</form>
<nav class="footer__group" aria-label="Skate">
<h3 class="footer__heading">Skate</h3>
<a class="footer__link" href="#">Sessions</a>
<a class="footer__link" href="#">Lessons</a>
<a class="footer__link" href="#">Skate hire</a>
</nav>
<nav class="footer__group" aria-label="The Depot">
<h3 class="footer__heading">The Depot</h3>
<a class="footer__link" href="#">Find us</a>
<a class="footer__link" href="#">Snack bar</a>
</nav>
<nav class="footer__group" aria-label="Groups">
<h3 class="footer__heading">Groups</h3>
<a class="footer__link" href="#">Parties</a>
<a class="footer__link" href="#">Schools</a>
<a class="footer__link" href="#">Hire the hall</a>
</nav>
<nav class="footer__group" aria-label="Follow">
<h3 class="footer__heading">Follow</h3>
<a class="footer__link" href="#">Photos</a>
<a class="footer__link" href="#">Playlists</a>
<a class="footer__link" href="#">Newsletter</a>
</nav>
</div>
<svg class="footer__mark" viewBox="0 0 390 100" role="img" aria-label="Otto">
<path class="footer__letter" fill-rule="evenodd" d="M0 0H55A45 45 0 0 1 100 45V55A45 45 0 0 1 55 100H45A45 45 0 0 1 0 55ZM50 30A16 16 0 0 1 66 46V54A16 16 0 0 1 34 54V46A16 16 0 0 1 50 30Z"/>
<path class="footer__letter" d="M106 0H192V32H166V84A16 16 0 0 1 150 100H134V32H106Z"/>
<path class="footer__letter" d="M198 0H284V32H256V100H240A16 16 0 0 1 224 84V32H198Z"/>
<path class="footer__letter" fill-rule="evenodd" d="M390 0H335A45 45 0 0 0 290 45V55A45 45 0 0 0 335 100H345A45 45 0 0 0 390 55ZM340 30A16 16 0 0 1 356 46V54A16 16 0 0 1 324 54V46A16 16 0 0 1 340 30Z"/>
</svg>
<p class="footer__small">hello@otto.example · Depot 9, Canal Street</p>
</footer>
<style>
.footer {
container-type: inline-size;
overflow: hidden;
padding: 5cqw var(--gutter) var(--space-m);
background: var(--gold);
}
/* The motto on one line: half solid, a dash, half outlined. */
.footer__motto {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.06em 0.22em;
margin: 0 0 5cqw;
font-size: 9.7cqw;
font-weight: var(--display-weight);
font-stretch: var(--display-width);
line-height: 0.86;
letter-spacing: var(--tracking-title);
text-transform: uppercase;
white-space: nowrap;
}
.footer__dash {
width: 0.34em;
height: 0.05em;
background: var(--ink);
}
.footer__open {
color: transparent;
-webkit-text-stroke: calc(var(--outline) * 1.3) var(--ink);
}
.footer__cols {
display: grid;
grid-template-columns: minmax(0, 4.2fr) repeat(4, minmax(0, 1fr));
gap: var(--space-l) var(--space-m);
margin-bottom: 5.4cqw;
}
.footer__signup {
max-width: 35rem;
padding-right: 4cqw;
}
.footer__title,
.footer__submit {
font-weight: var(--display-weight);
font-stretch: var(--display-width);
text-transform: uppercase;
}
.footer__title {
margin: 0 0 var(--space-xs);
font-size: var(--title-m);
line-height: var(--leading-title);
letter-spacing: var(--tracking-title);
}
.footer__note {
margin: 0 0 var(--space-m);
}
/* Field and button share one tab-shaped outline. */
.footer__field {
display: flex;
overflow: hidden;
border: 3px solid var(--ink);
border-radius: 0 1.875rem 1.875rem 0.875rem;
}
.footer__input {
flex: 1;
min-width: 0;
min-height: 3.25rem;
padding: 0 var(--space-s);
border: 0;
background: transparent;
color: var(--ink);
font: inherit;
}
.footer__input::placeholder {
color: var(--ink);
opacity: 0.6;
}
.footer__input:focus-visible {
outline: 0;
background: var(--paper);
}
.footer__submit {
display: inline-flex;
align-items: center;
gap: 0.5em;
padding: 0 var(--space-m) 0 var(--space-s);
border: 0;
background: var(--ink);
color: var(--gold);
font-family: inherit;
font-size: var(--title-xs);
letter-spacing: var(--tracking-button);
white-space: nowrap;
cursor: pointer;
transition: gap var(--time-fast) var(--ease-out), color var(--time-fast) var(--ease-out);
}
.footer__submit:hover,
.footer__submit:focus-visible {
gap: 0.9em;
color: var(--paper);
}
.footer__submit:focus-visible {
outline: 3px solid var(--paper);
outline-offset: -6px;
}
.footer__arrow {
width: 1.1em;
height: 0.77em;
fill: none;
stroke: currentColor;
stroke-width: 3;
}
.footer__status {
min-height: 1.3em;
margin: var(--space-xs) 0 0;
font-size: var(--text-s);
font-weight: var(--label-weight);
}
.footer.is-invalid .footer__field {
border-color: var(--red);
}
.footer.is-invalid .footer__status {
color: var(--red);
}
.footer.is-done .footer__field {
display: none;
}
.footer.is-done .footer__status {
font-size: var(--text-l);
}
.footer__group {
display: grid;
align-content: start;
}
.footer__heading {
margin: 0 0 var(--space-xs);
font-size: var(--text-xs);
font-weight: var(--label-weight);
letter-spacing: var(--tracking-label);
text-transform: uppercase;
}
.footer__link {
display: flex;
align-items: center;
min-height: var(--tap);
color: var(--ink);
text-decoration: underline 2px transparent;
text-underline-offset: 0.3em;
transition: text-decoration-color var(--time-fast) var(--ease-out);
}
.footer__link:hover,
.footer__link:focus-visible {
text-decoration-color: currentColor;
}
.footer__link:focus-visible {
outline: 3px solid var(--ink);
outline-offset: 2px;
}
/* The wordmark, drawn from tabs and bars, as wide as the page. Its letters stand up one by one. */
.footer__mark {
display: block;
width: 100%;
fill: var(--ink);
}
@keyframes footer-stand {
from {
translate: 0 110px;
}
}
@media (prefers-reduced-motion: no-preference) {
.footer.is-seen .footer__letter {
animation: footer-stand var(--time-intro) var(--ease) backwards;
}
.footer.is-seen .footer__letter:nth-child(2) {
animation-delay: var(--stagger);
}
.footer.is-seen .footer__letter:nth-child(3) {
animation-delay: calc(var(--stagger) * 2);
}
.footer.is-seen .footer__letter:nth-child(4) {
animation-delay: calc(var(--stagger) * 3);
}
}
.footer__small {
margin: var(--space-l) 0 0;
font-size: var(--text-s);
text-align: center;
}
@media (max-width: 56rem) {
.footer__cols {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.footer__signup {
grid-column: 1 / -1;
padding-right: 0;
}
}
@media (max-width: 40rem) {
.footer {
padding-top: 9cqw;
}
.footer__motto {
margin-bottom: 9cqw;
font-size: 16.4cqw;
}
.footer__submit {
padding-inline: 0.75rem 1rem;
}
.footer__dash {
display: none;
}
.footer__cols {
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-bottom: 10cqw;
}
}
@media (prefers-reduced-motion: reduce) {
.footer__submit,
.footer__link {
transition-duration: 0s;
}
}
</style>
<script>
(() => {
const MESSAGES = {
invalid: "That address looks wobbly. Check it and try again.",
done: "You are on the list. See you on the floor.",
};
const setUpSignup = (footer) => {
const form = footer.querySelector(".footer__signup");
const input = footer.querySelector(".footer__input");
const status = footer.querySelector(".footer__status");
const show = (state) => {
footer.classList.toggle("is-invalid", state === "invalid");
footer.classList.toggle("is-done", state === "done");
status.textContent = MESSAGES[state] ?? "";
};
form.addEventListener("submit", (event) => {
event.preventDefault();
show(input.checkValidity() ? "done" : "invalid");
});
input.addEventListener("input", () => show("editing"));
};
const isOnScreen = (element) => {
const box = element.getBoundingClientRect();
return box.top < window.innerHeight && box.bottom > 0;
};
const markSeen = (footer) => footer.classList.add("is-seen");
const markSeenOnArrival = (footer) => {
const mark = footer.querySelector(".footer__mark");
if (isOnScreen(mark) || !("IntersectionObserver" in window)) return markSeen(footer);
const watcher = new IntersectionObserver((entries) => {
if (!entries.some((entry) => entry.isIntersecting)) return;
markSeen(footer);
watcher.disconnect();
});
watcher.observe(mark);
};
document.querySelectorAll(".footer").forEach((footer) => {
setUpSignup(footer);
markSeenOnArrival(footer);
});
})();
</script>