Public roadmap
A horizontal product roadmap by quarter with a 'today' marker, status filters, and cards you can upvote, all in a sideways-scrolling track.
"use client";
import { useState, type CSSProperties } from "react";
import "./roadmap.css";
type Status = "shipped" | "building" | "planned";
type Item = {
id: string;
title: string;
text: string;
status: Status;
votes: number;
};
const QUARTERS: { label: string; now?: number; items: Item[] }[] = [
{
label: "Q1 2026",
items: [
{
id: "a",
title: "Dark mode",
text: "Every screen, every chart, with a system setting.",
status: "shipped",
votes: 812,
},
{
id: "b",
title: "CSV export",
text: "Export any table in one click.",
status: "shipped",
votes: 341,
},
],
},
{
label: "Q2 2026",
items: [
{
id: "c",
title: "Shared workspaces",
text: "Invite your team and keep projects in one place.",
status: "shipped",
votes: 1204,
},
{
id: "d",
title: "Faster search",
text: "Results while you type, across all projects.",
status: "shipped",
votes: 530,
},
],
},
{
label: "Q3 2026",
items: [
{
id: "e",
title: "Comments on anything",
text: "Pin a comment to a cell, a frame or a line of text.",
status: "shipped",
votes: 655,
},
{
id: "f",
title: "iPad app",
text: "Full editing with Pencil support.",
status: "building",
votes: 977,
},
],
},
{
label: "Q4 2026",
now: 0.62, // position of "today" inside this quarter (0–1)
items: [
{
id: "g",
title: "Offline mode",
text: "Keep working on a plane; sync when you land.",
status: "building",
votes: 1460,
},
{
id: "h",
title: "Custom domains for shared pages",
text: "Publish pages on your own address.",
status: "planned",
votes: 388,
},
],
},
{
label: "Q1 2027",
items: [
{
id: "i",
title: "Public API",
text: "Read and write everything with a simple REST API.",
status: "planned",
votes: 1102,
},
{
id: "j",
title: "Templates gallery",
text: "Start from 100+ community templates.",
status: "planned",
votes: 296,
},
],
},
];
const FILTERS: (Status | "all")[] = ["all", "shipped", "building", "planned"];
const LABEL: Record<Status | "all", string> = {
all: "Everything",
shipped: "Shipped",
building: "In progress",
planned: "Planned",
};
/**
* Roadmap
* - Quarters are columns in a horizontal scroll-snap track.
* - Votes are local state here; persist them however you like.
*/
export function Roadmap({ theme = "light" }: { theme?: "light" | "dark" }) {
const [filter, setFilter] = useState<Status | "all">("all");
const [voted, setVoted] = useState<Record<string, boolean>>({});
return (
<section className="gu-road" data-theme={theme}>
<header>
<h2>Roadmap</h2>
<p>
What we shipped, what we're building, and what's next. Vote
for what matters to you.
</p>
<div
className="gu-road__filters"
role="group"
aria-label="Filter by status"
>
{FILTERS.map((f) => (
<button
key={f}
type="button"
aria-pressed={filter === f}
data-status={f}
onClick={() => setFilter(f)}
>
{f !== "all" && <i aria-hidden="true" />}
{LABEL[f]}
</button>
))}
</div>
</header>
<ol className="gu-road__track" data-lenis-prevent>
{QUARTERS.map((q) => {
const items = q.items.filter(
(it) => filter === "all" || it.status === filter,
);
return (
<li
key={q.label}
className="gu-road__quarter"
data-now={q.now !== undefined ? "" : undefined}
style={
q.now !== undefined
? ({ "--now-at": q.now } as CSSProperties)
: undefined
}
>
<h3>
{q.label}
{q.now !== undefined && (
<span className="gu-road__today">Today</span>
)}
</h3>
<ul key={filter}>
{items.map((it, i) => (
<li
key={it.id}
className="gu-road__card"
data-status={it.status}
style={{ "--i": i } as CSSProperties}
>
<span className="gu-road__status">
<i aria-hidden="true" />
{LABEL[it.status]}
</span>
<b>{it.title}</b>
<p>{it.text}</p>
<button
type="button"
className="gu-road__vote"
aria-pressed={!!voted[it.id]}
aria-label={`Upvote ${it.title}, ${it.votes + (voted[it.id] ? 1 : 0)} votes`}
onClick={() =>
setVoted((v) => ({ ...v, [it.id]: !v[it.id] }))
}
>
▲{" "}
{(it.votes + (voted[it.id] ? 1 : 0)).toLocaleString(
"en-US",
)}
</button>
</li>
))}
{!items.length && (
<li className="gu-road__none">
Nothing {LABEL[filter as Status].toLowerCase()} here.
</li>
)}
</ul>
</li>
);
})}
</ol>
</section>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Public roadmap
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A public product roadmap section: a giant "Roadmap" title, status filter pills, and a sideways-scrolling row of quarter columns (Q1 2026 … Q1 2027) with feature cards. An orange "Today" marker sits inside the current quarter. Every card can be upvoted.
## Layout and look
- Section on Cream (dark Ink). Title clamp 42–96px, weight 900, tracking -0.055em; muted intro; filter pills (Everything, Shipped, In progress, Planned) with colored dots; the active pill is Ink.
- Track: columns clamp(260px, 30cqi, 320px), dashed left borders, scroll-snap; quarter headings bold.
- Today: a 2px orange vertical line positioned inside the current quarter and a pulsing orange "Today" chip next to its heading.
- Cards: radius 16px, a 4px left border in the status color (green shipped, orange in progress, blue planned), status label with dot, bold title, muted text, and a pill vote button "▲ 1,460" that turns orange and bumps when pressed.
## Behavior and motion
1. Filtering re-mounts each column's list, so cards pop in again with a 70ms stagger (translateY 10px, scale 0.98).
2. Votes toggle +1. Empty columns show a dashed "Nothing planned here." note.
## Touch
Native horizontal scroll with snap.
## Accessibility
- Filters use aria-pressed; vote buttons use aria-pressed and a label with the title and count.
- prefers-reduced-motion: no pop or pulse.
## Props
theme. Edit QUARTERS (set now on the current quarter, 0–1).
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### Roadmap.tsx
```tsx
"use client";
import { useState, type CSSProperties } from "react";
import "./roadmap.css";
type Status = "shipped" | "building" | "planned";
type Item = {
id: string;
title: string;
text: string;
status: Status;
votes: number;
};
const QUARTERS: { label: string; now?: number; items: Item[] }[] = [
{
label: "Q1 2026",
items: [
{
id: "a",
title: "Dark mode",
text: "Every screen, every chart, with a system setting.",
status: "shipped",
votes: 812,
},
{
id: "b",
title: "CSV export",
text: "Export any table in one click.",
status: "shipped",
votes: 341,
},
],
},
{
label: "Q2 2026",
items: [
{
id: "c",
title: "Shared workspaces",
text: "Invite your team and keep projects in one place.",
status: "shipped",
votes: 1204,
},
{
id: "d",
title: "Faster search",
text: "Results while you type, across all projects.",
status: "shipped",
votes: 530,
},
],
},
{
label: "Q3 2026",
items: [
{
id: "e",
title: "Comments on anything",
text: "Pin a comment to a cell, a frame or a line of text.",
status: "shipped",
votes: 655,
},
{
id: "f",
title: "iPad app",
text: "Full editing with Pencil support.",
status: "building",
votes: 977,
},
],
},
{
label: "Q4 2026",
now: 0.62, // position of "today" inside this quarter (0–1)
items: [
{
id: "g",
title: "Offline mode",
text: "Keep working on a plane; sync when you land.",
status: "building",
votes: 1460,
},
{
id: "h",
title: "Custom domains for shared pages",
text: "Publish pages on your own address.",
status: "planned",
votes: 388,
},
],
},
{
label: "Q1 2027",
items: [
{
id: "i",
title: "Public API",
text: "Read and write everything with a simple REST API.",
status: "planned",
votes: 1102,
},
{
id: "j",
title: "Templates gallery",
text: "Start from 100+ community templates.",
status: "planned",
votes: 296,
},
],
},
];
const FILTERS: (Status | "all")[] = ["all", "shipped", "building", "planned"];
const LABEL: Record<Status | "all", string> = {
all: "Everything",
shipped: "Shipped",
building: "In progress",
planned: "Planned",
};
/**
* Roadmap
* - Quarters are columns in a horizontal scroll-snap track.
* - Votes are local state here; persist them however you like.
*/
export function Roadmap({ theme = "light" }: { theme?: "light" | "dark" }) {
const [filter, setFilter] = useState<Status | "all">("all");
const [voted, setVoted] = useState<Record<string, boolean>>({});
return (
<section className="gu-road" data-theme={theme}>
<header>
<h2>Roadmap</h2>
<p>
What we shipped, what we're building, and what's next. Vote
for what matters to you.
</p>
<div
className="gu-road__filters"
role="group"
aria-label="Filter by status"
>
{FILTERS.map((f) => (
<button
key={f}
type="button"
aria-pressed={filter === f}
data-status={f}
onClick={() => setFilter(f)}
>
{f !== "all" && <i aria-hidden="true" />}
{LABEL[f]}
</button>
))}
</div>
</header>
<ol className="gu-road__track" data-lenis-prevent>
{QUARTERS.map((q) => {
const items = q.items.filter(
(it) => filter === "all" || it.status === filter,
);
return (
<li
key={q.label}
className="gu-road__quarter"
data-now={q.now !== undefined ? "" : undefined}
style={
q.now !== undefined
? ({ "--now-at": q.now } as CSSProperties)
: undefined
}
>
<h3>
{q.label}
{q.now !== undefined && (
<span className="gu-road__today">Today</span>
)}
</h3>
<ul key={filter}>
{items.map((it, i) => (
<li
key={it.id}
className="gu-road__card"
data-status={it.status}
style={{ "--i": i } as CSSProperties}
>
<span className="gu-road__status">
<i aria-hidden="true" />
{LABEL[it.status]}
</span>
<b>{it.title}</b>
<p>{it.text}</p>
<button
type="button"
className="gu-road__vote"
aria-pressed={!!voted[it.id]}
aria-label={`Upvote ${it.title}, ${it.votes + (voted[it.id] ? 1 : 0)} votes`}
onClick={() =>
setVoted((v) => ({ ...v, [it.id]: !v[it.id] }))
}
>
▲{" "}
{(it.votes + (voted[it.id] ? 1 : 0)).toLocaleString(
"en-US",
)}
</button>
</li>
))}
{!items.length && (
<li className="gu-road__none">
Nothing {LABEL[filter as Status].toLowerCase()} here.
</li>
)}
</ul>
</li>
);
})}
</ol>
</section>
);
}
```
### roadmap.css
```css
/* Roadmap: change these colors to match your brand. */
.gu-road {
--bg: #f3eee3;
--card: #fbf8f2;
--text: #0e0e10;
--muted: #57534b;
--line: rgb(14 14 16 / 0.12);
--shipped: #16a34a;
--building: #ff5a1f;
--planned: #2b35ff;
--now: #ff5a1f;
--focus: #2b35ff;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
container-type: inline-size;
padding: clamp(40px, 7%, 96px) 0;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
.gu-road[data-theme="dark"] {
--bg: #0e0e10;
--card: #18181b;
--text: #f3eee3;
--muted: #aea89c;
--line: rgb(243 238 227 / 0.12);
--shipped: #4ade80;
--planned: #8b93ff;
--focus: #d7ff3a;
}
.gu-road header {
max-width: 1200px;
margin: 0 auto 32px;
padding: 0 clamp(16px, 4cqi, 48px);
}
.gu-road h2 {
margin: 0;
font-size: clamp(2.6rem, 9cqi, 6rem);
font-weight: 900;
letter-spacing: -0.055em;
line-height: 0.9;
}
.gu-road header p {
max-width: 46ch;
margin: 12px 0 22px;
color: var(--muted);
font-size: 1.05rem;
}
.gu-road__filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.gu-road__filters button {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 42px;
padding: 0 16px;
border: 1.5px solid var(--line);
border-radius: 999px;
background: none;
color: inherit;
font: inherit;
font-weight: 700;
cursor: pointer;
}
.gu-road__filters [aria-pressed="true"] {
border-color: var(--text);
background: var(--text);
color: var(--bg);
}
.gu-road button:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 2px;
}
.gu-road i {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--c);
}
.gu-road [data-status="shipped"] {
--c: var(--shipped);
}
.gu-road [data-status="building"] {
--c: var(--building);
}
.gu-road [data-status="planned"] {
--c: var(--planned);
}
.gu-road__track {
display: grid;
grid-auto-flow: column;
grid-auto-columns: clamp(260px, 30cqi, 320px);
margin: 0;
padding: 0 clamp(16px, 4cqi, 48px) 8px;
overflow-x: auto;
list-style: none;
scroll-snap-type: x mandatory;
scroll-padding-inline: clamp(16px, 4cqi, 48px);
scrollbar-width: thin;
}
.gu-road__quarter {
position: relative;
padding: 0 12px;
border-left: 1px dashed var(--line);
scroll-snap-align: start;
}
.gu-road__quarter h3 {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 14px;
padding-top: 8px;
font-size: 1rem;
font-weight: 900;
}
/* "Today" marker: a vertical orange line positioned inside the current quarter */
.gu-road__quarter[data-now]::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: calc(var(--now-at) * 100%);
width: 2px;
background: var(--now);
opacity: 0.6;
}
.gu-road__today {
padding: 2px 8px;
border-radius: 999px;
background: var(--now);
color: #0e0e10;
font-size: 0.72rem;
animation: gu-road-pulse 2s infinite;
}
@keyframes gu-road-pulse {
50% {
box-shadow: 0 0 0 6px color-mix(in srgb, var(--now) 25%, transparent);
}
}
.gu-road__quarter ul {
position: relative;
display: grid;
gap: 10px;
margin: 0;
padding: 0;
list-style: none;
}
.gu-road__card {
display: grid;
gap: 6px;
padding: 16px;
border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line));
border-radius: 16px;
background: var(--card);
animation: gu-road-in 0.45s calc(var(--i) * 70ms) var(--ease) backwards;
}
@keyframes gu-road-in {
from {
opacity: 0;
transform: translateY(10px) scale(0.98);
}
}
.gu-road__status {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--muted);
font-size: 0.75rem;
font-weight: 700;
}
.gu-road__card b {
font-size: 1.02rem;
font-weight: 800;
}
.gu-road__card p {
margin: 0;
color: var(--muted);
font-size: 0.88rem;
line-height: 1.45;
}
.gu-road__vote {
justify-self: start;
min-height: 36px;
margin-top: 4px;
padding: 0 12px;
border: 1.5px solid var(--line);
border-radius: 999px;
background: none;
color: inherit;
font: inherit;
font-size: 0.82rem;
font-weight: 800;
font-variant-numeric: tabular-nums;
cursor: pointer;
transition:
background-color 0.2s,
border-color 0.2s,
transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gu-road__vote:hover {
border-color: var(--text);
}
.gu-road__vote[aria-pressed="true"] {
border-color: var(--building);
background: var(--building);
color: #0e0e10;
transform: scale(1.06);
}
.gu-road__none {
padding: 16px;
border: 1.5px dashed var(--line);
border-radius: 16px;
color: var(--muted);
font-size: 0.88rem;
}
@media (prefers-reduced-motion: reduce) {
.gu-road__card,
.gu-road__today {
animation: none;
}
.gu-road__vote {
transition: none;
}
}
```
You might also want
Next piece: Quote slider with portraitsPricing section
Templates, intermediate
Bento features grid
Templates, intermediate
Changelog timeline
Templates, intermediate