Integrations orbit
A 'works with your tools' section as a small solar system: app tiles circle your product on three rings, stop when you hover one to explain it, and glow by group.
"use client";
import { useState, type CSSProperties } from "react";
import "./integrations-orbit.css";
export type App = {
name: string;
/** One or two letters drawn as the app's mark. */
mark: string;
color: string;
group: string;
does: string;
};
/**
* IntegrationsOrbit: "works with the tools you use", as a small solar system.
* - Apps circle the product on three rings at different speeds; the tiles stay upright as they travel.
* - Hover or focus a tile: everything slows to a stop, the tile lifts and a card explains what it does.
* - Pick a group and the matching apps glow while the others fade back.
*/
export function IntegrationsOrbit({
title,
text,
product,
apps,
theme = "dark",
}: {
title: string;
text: string;
product: string;
apps: App[];
theme?: "light" | "dark";
}) {
const groups = ["All", ...Array.from(new Set(apps.map((a) => a.group)))];
const [group, setGroup] = useState("All");
const [hot, setHot] = useState<number | null>(null);
const rings = [apps.slice(0, 4), apps.slice(4, 10), apps.slice(10)];
return (
<section
className="gu-orbit"
data-theme={theme}
aria-labelledby="gu-orbit-title"
>
<div className="gu-orbit__copy">
<h2 id="gu-orbit-title">{title}</h2>
<p>{text}</p>
<div
className="gu-orbit__groups"
role="group"
aria-label="Show apps for"
>
{groups.map((g) => (
<button
key={g}
type="button"
aria-pressed={group === g}
onClick={() => setGroup(g)}
>
{g}
</button>
))}
</div>
<p className="gu-orbit__count" aria-live="polite">
{group === "All"
? apps.length
: apps.filter((a) => a.group === group).length}{" "}
apps
{group === "All" ? "" : ` for ${group.toLowerCase()}`}
</p>
</div>
<div className="gu-orbit__space" data-paused={hot !== null}>
<div className="gu-orbit__sun">
<span className="gu-orbit__glow" aria-hidden="true" />
<strong>{product}</strong>
</div>
{rings.map((ring, r) => (
<div
key={r}
className="gu-orbit__ring"
data-rev={r === 1}
style={{ "--r": r, "--n": ring.length } as CSSProperties}
>
{ring.map((a, i) => {
const idx = r === 0 ? i : r === 1 ? 4 + i : 10 + i;
const dim = group !== "All" && a.group !== group;
return (
<div
key={a.name}
className="gu-orbit__slot"
style={{ "--i": i } as CSSProperties}
>
<button
type="button"
className="gu-orbit__app"
data-dim={dim}
data-hot={hot === idx}
style={{ "--c": a.color } as CSSProperties}
onPointerEnter={() => setHot(idx)}
onPointerLeave={() => setHot(null)}
onFocus={() => setHot(idx)}
onBlur={() => setHot(null)}
aria-label={`${a.name}: ${a.does}`}
>
<span className="gu-orbit__face" aria-hidden="true">
{a.mark}
{hot === idx && (
<span className="gu-orbit__card">
<strong>{a.name}</strong>
{a.does}
</span>
)}
</span>
</button>
</div>
);
})}
</div>
))}
</div>
</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: Integrations orbit
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 "works with the tools you already use" section drawn as a small solar system. The product sits in the middle as a glowing orange tile; app tiles circle it on three rings at different speeds and directions, staying upright as they travel. Hovering or focusing a tile stops all the rings, lifts that tile and shows a card explaining what the integration does. Group chips (Files, Calls, Money, Mail) make matching apps glow while the rest fade to grey.
## Layout and look
- Dark #0e0e10 (light: #f3eee3), text cream/ink, hairlines at 12%. Two columns: copy on the left (headline 36–64px weight 900, 18px text, chips, a live count "14 apps"), orbit on the right (square, min(560px, 88vw)). One column under 860px.
- Sun: orange #ff5a1f rounded square (radius 30%) covering the middle 26%, product name in ink weight 900, a halo and orange glow, breathing slowly.
- Rings: 46%, 73% and 100% of the box, drawn as 1px hairline circles. 4, 6 and 4 tiles evenly spaced (offset 20° per ring).
- Tiles: 44–60px rounded squares (radius 28%) in the app colour, a two-letter mark in white weight 900, drop shadow and a top highlight.
- Card: 200px, cream background (ink on light pages), app name 15px bold plus a one-line description, appearing above the tile with a spring.
## Behavior and motion
1. Each ring rotates 360° in 40s, 58s and 76s (the middle one in reverse). One registered @property angle (--a) is animated on each ring; the ring uses rotate: var(--a) and each tile uses rotate: −(slot angle) − var(--a), so tiles and cards stay upright and never drift out of sync.
2. Hover/focus a tile: animation-play-state paused on every ring and face, the tile scales to 1.25 with a coloured ring and glow.
3. Chips: aria-pressed toggles; non-matching tiles go to 25% opacity, grayscale and 0.85 scale; the count updates (aria-live).
## Accessibility
- Every tile is a real button with aria-label "Name: what it does", so keyboard and screen reader users get the card text. Chips are toggle buttons with a visible focus ring.
- prefers-reduced-motion: rings, faces and the sun stop moving; everything else works.
## Props
title, text, product (name in the centre), apps ({ name, mark, color, group, does }[]; the first 4 go on the inner ring, the next 6 on the middle, the rest outside), theme.
## 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.
### IntegrationsOrbit.tsx
```tsx
"use client";
import { useState, type CSSProperties } from "react";
import "./integrations-orbit.css";
export type App = {
name: string;
/** One or two letters drawn as the app's mark. */
mark: string;
color: string;
group: string;
does: string;
};
/**
* IntegrationsOrbit: "works with the tools you use", as a small solar system.
* - Apps circle the product on three rings at different speeds; the tiles stay upright as they travel.
* - Hover or focus a tile: everything slows to a stop, the tile lifts and a card explains what it does.
* - Pick a group and the matching apps glow while the others fade back.
*/
export function IntegrationsOrbit({
title,
text,
product,
apps,
theme = "dark",
}: {
title: string;
text: string;
product: string;
apps: App[];
theme?: "light" | "dark";
}) {
const groups = ["All", ...Array.from(new Set(apps.map((a) => a.group)))];
const [group, setGroup] = useState("All");
const [hot, setHot] = useState<number | null>(null);
const rings = [apps.slice(0, 4), apps.slice(4, 10), apps.slice(10)];
return (
<section
className="gu-orbit"
data-theme={theme}
aria-labelledby="gu-orbit-title"
>
<div className="gu-orbit__copy">
<h2 id="gu-orbit-title">{title}</h2>
<p>{text}</p>
<div
className="gu-orbit__groups"
role="group"
aria-label="Show apps for"
>
{groups.map((g) => (
<button
key={g}
type="button"
aria-pressed={group === g}
onClick={() => setGroup(g)}
>
{g}
</button>
))}
</div>
<p className="gu-orbit__count" aria-live="polite">
{group === "All"
? apps.length
: apps.filter((a) => a.group === group).length}{" "}
apps
{group === "All" ? "" : ` for ${group.toLowerCase()}`}
</p>
</div>
<div className="gu-orbit__space" data-paused={hot !== null}>
<div className="gu-orbit__sun">
<span className="gu-orbit__glow" aria-hidden="true" />
<strong>{product}</strong>
</div>
{rings.map((ring, r) => (
<div
key={r}
className="gu-orbit__ring"
data-rev={r === 1}
style={{ "--r": r, "--n": ring.length } as CSSProperties}
>
{ring.map((a, i) => {
const idx = r === 0 ? i : r === 1 ? 4 + i : 10 + i;
const dim = group !== "All" && a.group !== group;
return (
<div
key={a.name}
className="gu-orbit__slot"
style={{ "--i": i } as CSSProperties}
>
<button
type="button"
className="gu-orbit__app"
data-dim={dim}
data-hot={hot === idx}
style={{ "--c": a.color } as CSSProperties}
onPointerEnter={() => setHot(idx)}
onPointerLeave={() => setHot(null)}
onFocus={() => setHot(idx)}
onBlur={() => setHot(null)}
aria-label={`${a.name}: ${a.does}`}
>
<span className="gu-orbit__face" aria-hidden="true">
{a.mark}
{hot === idx && (
<span className="gu-orbit__card">
<strong>{a.name}</strong>
{a.does}
</span>
)}
</span>
</button>
</div>
);
})}
</div>
))}
</div>
</section>
);
}
```
### integrations-orbit.css
```css
/* One animated angle drives both the ring and the counter-turn of its tiles, so they never drift apart. */
@property --gu-orbit-a {
syntax: "<angle>";
inherits: true;
initial-value: 0deg;
}
.gu-orbit {
--bg: #0e0e10;
--fg: #f3eee3;
--line: rgb(243 238 227 / 0.12);
--accent: #ff5a1f;
--size: min(560px, 88vw);
--ease: cubic-bezier(0.16, 1, 0.3, 1);
--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
display: grid;
grid-template-columns: minmax(0, 0.9fr) auto;
align-items: center;
gap: clamp(24px, 5vw, 72px);
padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px);
background: var(--bg);
color: var(--fg);
font-family: ui-sans-serif, system-ui, sans-serif;
overflow: hidden;
}
.gu-orbit[data-theme="light"] {
--bg: #f3eee3;
--fg: #0e0e10;
--line: rgb(14 14 16 / 0.12);
}
.gu-orbit__copy h2 {
margin: 0;
font-size: clamp(36px, 5.4vw, 64px);
font-weight: 900;
letter-spacing: -0.045em;
line-height: 0.98;
}
.gu-orbit__copy > p:first-of-type {
margin: 16px 0 0;
max-width: 42ch;
font-size: 18px;
line-height: 1.5;
opacity: 0.75;
}
.gu-orbit__groups {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 26px;
}
.gu-orbit__groups button {
min-height: 40px;
padding: 0 16px;
border: 0;
border-radius: 999px;
background: none;
box-shadow: inset 0 0 0 1.5px var(--line);
color: inherit;
font-family: inherit;
font-size: 14px;
font-weight: 700;
cursor: pointer;
transition:
background-color 0.3s,
color 0.3s,
box-shadow 0.3s,
scale 0.3s var(--spring);
}
.gu-orbit__groups button:hover {
box-shadow: inset 0 0 0 1.5px var(--fg);
}
.gu-orbit__groups button:active {
scale: 0.95;
}
.gu-orbit__groups button[aria-pressed="true"] {
background: var(--accent);
color: #0e0e10;
box-shadow: none;
}
.gu-orbit__groups button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.gu-orbit__count {
margin: 14px 0 0;
font-size: 14px;
font-weight: 600;
opacity: 0.55;
}
/* ---------- The solar system ---------- */
.gu-orbit__space {
position: relative;
width: var(--size);
aspect-ratio: 1;
}
.gu-orbit__sun {
position: absolute;
inset: 37%;
display: grid;
place-items: center;
border-radius: 30%;
background: var(--accent);
color: #0e0e10;
box-shadow:
0 0 0 10px rgb(255 90 31 / 0.15),
0 20px 50px -10px rgb(255 90 31 / 0.6);
z-index: 2;
animation: gu-orbit-breathe 4s ease-in-out infinite;
}
.gu-orbit__sun strong {
position: relative;
font-size: clamp(14px, 2.4vw, 20px);
font-weight: 900;
letter-spacing: -0.03em;
}
.gu-orbit__glow {
position: absolute;
inset: -60%;
border-radius: 50%;
background: radial-gradient(circle, rgb(255 90 31 / 0.35), transparent 60%);
z-index: -1;
}
@keyframes gu-orbit-breathe {
50% {
scale: 1.05;
}
}
.gu-orbit__ring {
--r: 0;
--n: 4;
--d: calc(46% + var(--r) * 27%);
position: absolute;
left: 50%;
top: 50%;
width: var(--d);
aspect-ratio: 1;
translate: -50% -50%;
border-radius: 50%;
box-shadow: inset 0 0 0 1px var(--line);
rotate: var(--gu-orbit-a);
animation: gu-orbit-spin calc(40s + var(--r) * 18s) linear infinite;
}
.gu-orbit__ring[data-rev="true"] {
animation-direction: reverse;
}
.gu-orbit__space[data-paused="true"] .gu-orbit__ring {
animation-play-state: paused;
}
@keyframes gu-orbit-spin {
to {
--gu-orbit-a: 360deg;
}
}
.gu-orbit__slot {
position: absolute;
inset: 0;
rotate: calc(360deg / var(--n) * var(--i) + var(--r) * 20deg);
pointer-events: none;
}
.gu-orbit__app {
--c: #2b35ff;
position: absolute;
left: 50%;
top: 0;
width: clamp(44px, 8vw, 60px);
aspect-ratio: 1;
translate: -50% -50%;
padding: 0;
border: 0;
border-radius: 28%;
background: var(--c);
color: #fff;
font-family: inherit;
font-weight: 900;
font-size: clamp(15px, 2.4vw, 20px);
letter-spacing: -0.04em;
box-shadow:
0 10px 22px -8px rgb(0 0 0 / 0.5),
inset 0 1px 0 rgb(255 255 255 / 0.35);
cursor: pointer;
pointer-events: auto;
rotate: calc(
-360deg / var(--n) * var(--i) - var(--r) * 20deg - var(--gu-orbit-a)
);
transition:
scale 0.45s var(--spring),
opacity 0.4s,
filter 0.4s,
box-shadow 0.4s;
}
/* The tile counter-rotates (above) so it and its card stay upright while the ring turns. */
.gu-orbit__face {
position: absolute;
inset: 0;
display: grid;
place-items: center;
}
.gu-orbit__app[data-dim="true"] {
opacity: 0.25;
filter: grayscale(1);
scale: 0.85;
}
.gu-orbit__app[data-dim="false"] {
box-shadow:
0 10px 22px -8px rgb(0 0 0 / 0.5),
inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.gu-orbit__app[data-hot="true"] {
scale: 1.25;
z-index: 5;
box-shadow:
0 0 0 4px var(--bg),
0 0 0 6px var(--c),
0 16px 30px -8px var(--c);
}
.gu-orbit__app:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 4px;
}
.gu-orbit__card {
position: absolute;
left: 50%;
bottom: calc(100% + 12px);
width: 200px;
padding: 12px 14px;
border-radius: 14px;
background: var(--fg);
color: var(--bg);
font-size: 13px;
font-weight: 500;
letter-spacing: 0;
line-height: 1.4;
text-align: left;
translate: -50% 0;
pointer-events: none;
animation: gu-orbit-card 0.4s var(--spring);
}
.gu-orbit__card strong {
display: block;
font-size: 15px;
font-weight: 800;
margin-bottom: 2px;
}
@keyframes gu-orbit-card {
from {
opacity: 0;
translate: -50% 10px;
scale: 0.9;
}
}
@media (max-width: 860px) {
.gu-orbit {
grid-template-columns: 1fr;
justify-items: center;
text-align: center;
}
.gu-orbit__copy > p:first-of-type {
margin-inline: auto;
}
.gu-orbit__groups {
justify-content: center;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-orbit__ring,
.gu-orbit__sun {
animation: none;
}
.gu-orbit__card {
animation: none;
}
}
```
You might also want
Next piece: Letter scatter headlineBento features grid
Templates, intermediate
Changelog timeline
Templates, intermediate
404 page section
Templates, intermediate