Venue
Green section with a large pink disc carrying the building's name drawn in one thin line, which draws itself when seen. Beside it a heading, a paragraph, a list ruled in black, an address label and a black tab button that swaps to pink.
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/venue/figma.html?palette=ffd602dbfc89ae89
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/rollerdrome-colour-block/venue/figma.html?palette=ffd602dbfc89ae89 and pass that whole HTML document to the html_to_figma tool, so the part "Venue" 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: #253b6d;
--ink: #f8fafc;
--paper: #010937;
--pink: #586b94;
--gold: #5870a5;
--cobalt: #ecf3ff;
--frame: #586b94;
--red: #5870a5;
--orange: #5e729d;
}
</style>
<section class="venue">
<p class="venue__label">The Depot · Canal Street</p>
<div class="venue__disc">
<svg class="venue__sign" viewBox="-8 -8 826 256" role="img" aria-label="Depot">
<path class="venue__stroke" pathLength="1" d="M6 6H42A114 114 0 0 1 42 234H6Z"/>
<path class="venue__stroke" pathLength="1" d="M276 6H186V234H276M186 120H256"/>
<path class="venue__stroke" pathLength="1" d="M306 234V6H352A57 57 0 0 1 352 120H306"/>
<circle class="venue__stroke" pathLength="1" cx="553" cy="120" r="114"/>
<path class="venue__stroke" pathLength="1" d="M697 6H803M750 6V234"/>
</svg>
</div>
<div class="venue__text">
<h2 class="venue__title">Where we roll</h2>
<p class="venue__copy">A 1912 tram depot on Canal Street with the rails still in the floor of the lobby. We kept the roof lights, sprung the maple and turned the inspection pit into a snack bar.</p>
<dl class="venue__list">
<div class="venue__row">
<dt class="venue__name">The floor</dt>
<dd class="venue__detail">1,100 m² sprung maple</dd>
</div>
<div class="venue__row">
<dt class="venue__name">The hire desk</dt>
<dd class="venue__detail">400 pairs to borrow</dd>
</div>
<div class="venue__row">
<dt class="venue__name">The pit</dt>
<dd class="venue__detail">Chips, slush, coffee</dd>
</div>
<div class="venue__row">
<dt class="venue__name">The bench</dt>
<dd class="venue__detail">Catch your breath</dd>
</div>
</dl>
<p class="venue__address">Depot 9, Canal Street<br>Open Tuesday to Sunday</p>
<a class="venue__button" href="#">Plan your visit <svg class="venue__arrow" viewBox="0 0 20 14" aria-hidden="true"><path d="M0 7H16M10 1.5 16 7 10 12.5"/></svg></a>
</div>
</section>
<style>
.venue {
position: relative;
container-type: inline-size;
display: grid;
grid-template-columns: 57cqw minmax(0, 1fr);
align-items: center;
column-gap: 5cqw;
padding: 5.6cqw var(--gutter) 5.6cqw 4.6cqw;
background: var(--frame);
}
.venue__label {
position: absolute;
top: 3.4cqw;
left: var(--gutter);
margin: 0;
font-size: var(--text-xs);
font-weight: var(--label-weight);
letter-spacing: var(--tracking-label);
text-transform: uppercase;
}
/* One flat disc with the building's name drawn in a single thin line. */
.venue__disc {
display: grid;
place-items: center;
aspect-ratio: 1;
border-radius: 50%;
background: var(--pink);
}
.venue__sign {
width: 80%;
overflow: visible;
}
.venue__stroke {
fill: none;
stroke: var(--ink);
stroke-width: 15;
}
@keyframes venue-draw {
from {
stroke-dashoffset: 1;
}
}
@media (prefers-reduced-motion: no-preference) {
.venue.is-seen .venue__stroke {
stroke-dasharray: 1;
animation: venue-draw calc(var(--time-intro) * 2) var(--ease) backwards;
}
.venue.is-seen .venue__stroke:nth-child(2) {
animation-delay: var(--stagger);
}
.venue.is-seen .venue__stroke:nth-child(3) {
animation-delay: calc(var(--stagger) * 2);
}
.venue.is-seen .venue__stroke:nth-child(4) {
animation-delay: calc(var(--stagger) * 3);
}
.venue.is-seen .venue__stroke:nth-child(5) {
animation-delay: calc(var(--stagger) * 4);
}
}
.venue__title,
.venue__name,
.venue__button {
font-weight: var(--display-weight);
font-stretch: var(--display-width);
text-transform: uppercase;
}
.venue__title {
margin: 0 0 var(--space-s);
font-size: var(--title-m);
line-height: var(--leading-title);
letter-spacing: var(--tracking-title);
}
.venue__copy {
margin: 0 0 var(--space-m);
font-size: var(--text-l);
text-wrap: pretty;
}
.venue__list {
margin: 0 0 var(--space-m);
border-bottom: var(--rule) solid var(--ink);
}
.venue__row {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
column-gap: var(--space-s);
padding: 0.7rem 0 0.6rem;
border-top: var(--rule) solid var(--ink);
}
.venue__name {
font-size: var(--title-s);
line-height: 1;
}
.venue__detail {
margin: 0;
font-size: var(--text-s);
text-align: right;
}
.venue__address {
margin: 0 0 var(--space-m);
font-size: var(--text-xs);
font-weight: var(--label-weight);
line-height: 1.6;
letter-spacing: var(--tracking-label);
text-transform: uppercase;
}
.venue__button {
display: inline-flex;
align-items: center;
gap: 0.5em;
min-height: 3.25rem;
padding: 0 var(--space-m);
border-radius: 0 1.625rem 1.625rem 0.8rem;
background: var(--ink);
color: var(--pink);
font-size: var(--title-s);
letter-spacing: var(--tracking-button);
white-space: nowrap;
text-decoration: none;
transition: gap var(--time-fast) var(--ease-out), background-color var(--time-fast) var(--ease-out), color var(--time-fast) var(--ease-out);
}
.venue__button:hover,
.venue__button:focus-visible {
gap: 0.9em;
background: var(--pink);
color: var(--ink);
}
.venue__button:focus-visible {
outline: 3px solid var(--ink);
outline-offset: 3px;
}
.venue__arrow {
width: 1.1em;
height: 0.77em;
fill: none;
stroke: currentColor;
stroke-width: 3;
}
@media (max-width: 52rem) {
.venue {
grid-template-columns: minmax(0, 1fr);
row-gap: var(--space-l);
padding: 14cqw var(--gutter) var(--space-xl);
}
.venue__label {
top: 5cqw;
}
.venue__disc {
width: min(100%, 30rem);
justify-self: center;
}
}
@media (prefers-reduced-motion: reduce) {
.venue__button {
transition-duration: 0s;
}
}
</style>
<script>
(() => {
const isOnScreen = (element) => {
const box = element.getBoundingClientRect();
return box.top < window.innerHeight && box.bottom > 0;
};
const markSeen = (venue) => venue.classList.add("is-seen");
const markSeenOnArrival = (venue) => {
const sign = venue.querySelector(".venue__sign");
if (isOnScreen(sign) || !("IntersectionObserver" in window)) return markSeen(venue);
const watcher = new IntersectionObserver((entries) => {
if (!entries.some((entry) => entry.isIntersecting)) return;
markSeen(venue);
watcher.disconnect();
});
watcher.observe(sign);
};
document.querySelectorAll(".venue").forEach(markSeenOnArrival);
})();
</script>