Skip to main content
Orbital Hero

Orbital Hero

Concentric rings with polar-snapped badges.

Hero
4/16

Infrastructure built for teams that ship daily.

Deterministic deployments, zero-config edge routing, and real-time telemetry in a single unified runtime.

  • Edge Runtime
  • Zero Cold Start
  • TypeScript
  • 99.99% SLA
  • Instant Rollback
  • Global Mesh

1. Install Dependencies

$npm install framer-motion lucide-react

2. Copy Component Code

components/ui/OrbitalHero.tsx
1"use client";
2
3import React, { useId } from "react";
4import { motion, useReducedMotion } from "framer-motion";
5import { ArrowRight, ArrowUpRight } from "lucide-react";
6
7const CENTER_Y = 20;
8
9const RINGS = [
10 { px: 100, cqw: 0, minPx: 100 },
11 { px: 82, cqw: 8, minPx: 140 },
12 { px: 60, cqw: 19, minPx: 192 },
13 { px: 32, cqw: 33, minPx: 256 },
14 { px: 0, cqw: 50, minPx: 320 },
15] as const;
16
17const HERO_COMETS = [
18 {
19 ringIndex: 1,
20 direction: 1 as const,
21 startDeg: 38,
22 duration: 10,
23 tailDeg: -24,
24 lightColor: "#059669",
25 darkColor: "#10B981",
26 corePx: 3.5,
27 haloPx: 9.5,
28 blurPx: 2.5,
29 },
30 {
31 ringIndex: 2,
32 direction: -1 as const,
33 startDeg: 140,
34 duration: 14,
35 tailDeg: 16,
36 lightColor: "#0284C7",
37 darkColor: "#38BDF8",
38 corePx: 2.75,
39 haloPx: 7.5,
40 blurPx: 2,
41 },
42 {
43 ringIndex: 3,
44 direction: 1 as const,
45 startDeg: 112,
46 duration: 18,
47 tailDeg: -13,
48 lightColor: "#7C3AED",
49 darkColor: "#A78BFA",
50 corePx: 2.25,
51 haloPx: 6,
52 blurPx: 1.75,
53 },
54] as const;
55
56const DEFAULT_BADGE_SLOTS = [
57 {
58 ringIndex: 2,
59 angleDeg: 171,
60 floatDuration: 5.4,
61 floatDelay: 0,
62 floatOffset: -4,
63 },
64 {
65 ringIndex: 1,
66 angleDeg: 8,
67 floatDuration: 6.2,
68 floatDelay: 0.4,
69 floatOffset: 4,
70 },
71 {
72 ringIndex: 3,
73 angleDeg: 20,
74 floatDuration: 5.8,
75 floatDelay: 0.8,
76 floatOffset: -4,
77 },
78 {
79 ringIndex: 4,
80 angleDeg: 40,
81 floatDuration: 6.4,
82 floatDelay: 0.2,
83 floatOffset: 4,
84 },
85 {
86 ringIndex: 3,
87 angleDeg: 148,
88 floatDuration: 5.6,
89 floatDelay: 0.6,
90 floatOffset: -3,
91 },
92 {
93 ringIndex: 4,
94 angleDeg: 134,
95 floatDuration: 6.0,
96 floatDelay: 1.0,
97 floatOffset: 4,
98 },
99] as const;
100
101const DEFAULT_BADGES = [
102 "Edge Runtime",
103 "Zero Cold Start",
104 "TypeScript",
105 "99.99% SLA",
106 "Instant Rollback",
107 "Global Mesh",
108] as const;
109
110function getCometGeometry(tailDeg: number) {
111 const rad = (tailDeg * Math.PI) / 180;
112 const x = Math.round((200 + 200 * Math.cos(rad)) * 100) / 100;
113 const y = Math.round((200 + 200 * Math.sin(rad)) * 100) / 100;
114 const sweepFlag = tailDeg < 0 ? 1 : 0;
115 return {
116 x,
117 y,
118 path: `M ${x} ${y} A 200 200 0 0 ${sweepFlag} 400 200`,
119 };
120}
121
122function getPolarCssPosition(ringIndex: number, angleDeg: number) {
123 const ring = RINGS[ringIndex];
124 const rad = (angleDeg * Math.PI) / 180;
125 const cos = Math.round(Math.cos(rad) * 10000) / 10000;
126 const sin = Math.round(Math.sin(rad) * 10000) / 10000;
127
128 const dxPx = Math.round(ring.px * cos * 100) / 100;
129 const dxCqw = Math.round(ring.cqw * cos * 1000) / 1000;
130 const yPx = Math.round((CENTER_Y + ring.px * sin) * 100) / 100;
131 const yCqw = Math.round(ring.cqw * sin * 1000) / 1000;
132
133 return {
134 left: `calc(50% + ${dxPx}px + ${dxCqw}cqw)`,
135 top: `calc(${yPx}px + ${yCqw}cqw)`,
136 };
137}
138
139export interface OrbitalHeroProps {
140 headline?: string;
141 subtitle?: string;
142 primaryCtaLabel?: string;
143 secondaryCtaLabel?: string;
144 badges?: readonly string[];
145 onPrimaryClick?: () => void;
146 onSecondaryClick?: () => void;
147 className?: string;
148}
149
150export function OrbitalHero({
151 headline = "Infrastructure built for teams that ship daily.",
152 subtitle = "Deterministic deployments, zero-config edge routing, and real-time telemetry in a single unified runtime.",
153 primaryCtaLabel = "Start Building",
154 secondaryCtaLabel = "Read Spec",
155 badges = DEFAULT_BADGES,
156 onPrimaryClick,
157 onSecondaryClick,
158 className = "",
159}: OrbitalHeroProps) {
160 const prefersReducedMotion = Boolean(useReducedMotion());
161 const rawUid = useId();
162 const uid = rawUid.replace(/:/g, "");
163
164 return (
165 <section
166 className={`relative isolate flex w-full flex-col items-center overflow-hidden rounded-[16px] pt-20 pb-12 text-center [container-type:inline-size] min-h-[440px] @min-[640px]:min-h-[500px] @min-[640px]:pt-28 @min-[640px]:pb-16 ${className}`}
167 >
168 <div
169 aria-hidden="true"
170 className="pointer-events-none absolute inset-x-0 top-0 -z-20 h-[340px] bg-[radial-gradient(ellipse_55%_48%_at_50%_0%,rgba(0,0,0,0.045),transparent_72%)] dark:bg-[radial-gradient(ellipse_55%_48%_at_50%_0%,rgba(255,255,255,0.08),transparent_72%)]"
171 />
172
173 <div
174 aria-hidden="true"
175 className="pointer-events-none absolute inset-0 -z-10 [mask-image:linear-gradient(to_bottom,transparent_0%,black_14%,black_78%,transparent_100%)]"
176 >
177 {RINGS.map((ring, idx) => {
178 const diameter =
179 ring.cqw === 0
180 ? `${ring.px * 2}px`
181 : `max(${ring.minPx * 2}px, calc(${ring.px * 2}px + ${ring.cqw * 2}cqw))`;
182 const comet = HERO_COMETS.find((c) => c.ringIndex === idx);
183 const gradLightId = `${uid}-comet-light-${idx}`;
184 const gradDarkId = `${uid}-comet-dark-${idx}`;
185 const geom = comet ? getCometGeometry(comet.tailDeg) : null;
186
187 return (
188 <div
189 key={idx}
190 style={{
191 left: "50%",
192 top: `${CENTER_Y}px`,
193 width: diameter,
194 height: diameter,
195 }}
196 className="absolute -translate-x-1/2 -translate-y-1/2 rounded-full border border-[rgba(0,0,0,0.10)] dark:border-[rgba(255,255,255,0.14)]"
197 >
198 {comet && geom && (
199 <motion.div
200 initial={
201 prefersReducedMotion ? false : { rotate: comet.startDeg }
202 }
203 animate={{
204 rotate: prefersReducedMotion
205 ? comet.startDeg
206 : comet.startDeg + comet.direction * 360,
207 }}
208 transition={
209 prefersReducedMotion
210 ? { duration: 0 }
211 : {
212 duration: comet.duration,
213 repeat: Infinity,
214 ease: "linear",
215 }
216 }
217 className="pointer-events-none absolute -inset-[0.5px] h-[calc(100%+1px)] w-[calc(100%+1px)]"
218 >
219 <svg
220 viewBox="0 0 400 400"
221 className="block h-full w-full overflow-visible opacity-90 dark:opacity-100"
222 >
223 <defs>
224 <linearGradient
225 id={gradLightId}
226 gradientUnits="userSpaceOnUse"
227 x1={geom.x}
228 y1={geom.y}
229 x2={400}
230 y2={200}
231 >
232 <stop
233 offset="0%"
234 stopColor={comet.lightColor}
235 stopOpacity="0"
236 />
237 <stop
238 offset="60%"
239 stopColor={comet.lightColor}
240 stopOpacity="0.45"
241 />
242 <stop
243 offset="100%"
244 stopColor={comet.lightColor}
245 stopOpacity="0.75"
246 />
247 </linearGradient>
248 <linearGradient
249 id={gradDarkId}
250 gradientUnits="userSpaceOnUse"
251 x1={geom.x}
252 y1={geom.y}
253 x2={400}
254 y2={200}
255 >
256 <stop
257 offset="0%"
258 stopColor={comet.darkColor}
259 stopOpacity="0"
260 />
261 <stop
262 offset="60%"
263 stopColor={comet.darkColor}
264 stopOpacity="0.55"
265 />
266 <stop
267 offset="100%"
268 stopColor={comet.darkColor}
269 stopOpacity="0.85"
270 />
271 </linearGradient>
272 </defs>
273
274 <path
275 d={geom.path}
276 fill="none"
277 stroke={`url(#${gradLightId})`}
278 strokeWidth={1.25}
279 strokeLinecap="round"
280 vectorEffect="non-scaling-stroke"
281 className="dark:hidden"
282 />
283 <path
284 d={geom.path}
285 fill="none"
286 stroke={`url(#${gradDarkId})`}
287 strokeWidth={1.1}
288 strokeLinecap="round"
289 vectorEffect="non-scaling-stroke"
290 className="hidden dark:inline"
291 />
292 </svg>
293
294 <span
295 style={{
296 width: `${comet.haloPx}px`,
297 height: `${comet.haloPx}px`,
298 backgroundColor: comet.lightColor,
299 filter: `blur(${comet.blurPx}px)`,
300 }}
301 className="absolute top-1/2 left-full -translate-x-1/2 -translate-y-1/2 rounded-full opacity-45 dark:hidden"
302 />
303 <span
304 style={{
305 width: `${comet.haloPx}px`,
306 height: `${comet.haloPx}px`,
307 backgroundColor: comet.darkColor,
308 filter: `blur(${comet.blurPx}px)`,
309 }}
310 className="absolute top-1/2 left-full hidden -translate-x-1/2 -translate-y-1/2 rounded-full opacity-80 dark:block"
311 />
312 <span
313 style={{
314 width: `${comet.corePx}px`,
315 height: `${comet.corePx}px`,
316 backgroundColor: comet.lightColor,
317 }}
318 className="absolute top-1/2 left-full -translate-x-1/2 -translate-y-1/2 rounded-full dark:hidden"
319 />
320 <span
321 style={{
322 width: `${comet.corePx}px`,
323 height: `${comet.corePx}px`,
324 }}
325 className="absolute top-1/2 left-full hidden -translate-x-1/2 -translate-y-1/2 rounded-full bg-white dark:block"
326 />
327 </motion.div>
328 )}
329 </div>
330 );
331 })}
332 </div>
333
334 <div
335 aria-hidden="true"
336 className="pointer-events-none absolute inset-0 hidden @min-[640px]:block"
337 >
338 {badges.slice(0, DEFAULT_BADGE_SLOTS.length).map((label, idx) => {
339 const slot = DEFAULT_BADGE_SLOTS[idx];
340 const pos = getPolarCssPosition(slot.ringIndex, slot.angleDeg);
341 return (
342 <div
343 key={label}
344 style={pos}
345 className="absolute -translate-x-1/2 -translate-y-1/2 opacity-90"
346 >
347 <motion.div
348 initial={
349 prefersReducedMotion ? false : { opacity: 0, scale: 0.96 }
350 }
351 animate={
352 prefersReducedMotion
353 ? { opacity: 1 }
354 : {
355 opacity: 1,
356 scale: 1,
357 y: [0, slot.floatOffset, 0],
358 }
359 }
360 transition={
361 prefersReducedMotion
362 ? { duration: 0 }
363 : {
364 opacity: {
365 duration: 0.6,
366 delay: slot.floatDelay * 0.2,
367 },
368 scale: {
369 duration: 0.6,
370 delay: slot.floatDelay * 0.2,
371 },
372 y: {
373 duration: slot.floatDuration,
374 repeat: Infinity,
375 ease: "easeInOut",
376 delay: slot.floatDelay,
377 },
378 }
379 }
380 className="inline-flex items-center justify-center whitespace-nowrap rounded-[8px] bg-white px-2.5 py-1 font-mono text-[11px] font-medium tracking-tight text-black/75 shadow-[0_2px_8px_rgba(0,0,0,0.04)] backdrop-blur-md dark:bg-[#111111] dark:text-white/85 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.06),0_4px_12px_rgba(0,0,0,0.4)]"
381 >
382 {label}
383 </motion.div>
384 </div>
385 );
386 })}
387 </div>
388
389 <div className="relative z-10 mx-auto flex w-full max-w-2xl flex-col items-center px-4 text-center sm:px-6">
390 <h1 className="max-w-lg text-[clamp(1.375rem,3cqw,2.25rem)] font-semibold tracking-[-0.03em] leading-[1.1] text-balance text-[#0A0A0A] dark:text-white">
391 {headline}
392 </h1>
393
394 <p className="mt-3 max-w-sm text-pretty text-xs leading-relaxed text-[#525252] dark:text-[#888888] @min-[640px]:text-sm @min-[768px]:max-w-md">
395 {subtitle}
396 </p>
397
398 <div className="mt-6 flex flex-wrap items-center justify-center gap-3">
399 <button
400 type="button"
401 onClick={onPrimaryClick}
402 className="inline-flex min-h-9 items-center justify-center gap-1.5 rounded-[8px] bg-[#0A0A0A] px-4 py-1.5 text-xs font-medium text-white shadow-[0_1px_2px_rgba(0,0,0,0.08)] transition-colors duration-200 hover:bg-[#1E1E1E] active:scale-[0.98] dark:bg-white dark:text-black dark:hover:bg-white/90"
403 >
404 <span>{primaryCtaLabel}</span>
405 <ArrowRight
406 className="h-3.5 w-3.5 shrink-0"
407 strokeWidth={1.75}
408 aria-hidden="true"
409 />
410 </button>
411
412 <button
413 type="button"
414 onClick={onSecondaryClick}
415 className="inline-flex min-h-9 items-center justify-center gap-1.5 rounded-[8px] bg-white px-4 py-1.5 text-xs font-medium text-[#0A0A0A] shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-colors duration-150 hover:bg-[#EFEFF2] active:scale-[0.98] dark:bg-[#111111] dark:text-white dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.06),0_4px_12px_rgba(0,0,0,0.4)] dark:hover:bg-[#161618]"
416 >
417 <span>{secondaryCtaLabel}</span>
418 <ArrowUpRight
419 className="h-3.5 w-3.5 shrink-0"
420 strokeWidth={1.75}
421 aria-hidden="true"
422 />
423 </button>
424 </div>
425
426 <ul
427 aria-label="Runtime highlights"
428 className="mt-6 flex flex-wrap items-center justify-center gap-1.5 @min-[640px]:hidden"
429 >
430 {badges.map((label) => (
431 <li
432 key={label}
433 className="inline-flex items-center justify-center rounded-[8px] bg-white px-2.5 py-1 font-mono text-[11px] font-medium text-black/75 shadow-[0_2px_8px_rgba(0,0,0,0.04)] dark:bg-[#111111] dark:text-white/85 dark:shadow-[inset_0_1px_0_rgba(255,255,255,0.06),0_4px_12px_rgba(0,0,0,0.4)]"
434 >
435 {label}
436 </li>
437 ))}
438 </ul>
439 </div>
440 </section>
441 );
442}

Usage Example

import { OrbitalHero } from "@/components/ui/OrbitalHero";
export default function HeroSection() {
return (
<OrbitalHero
headline="Infrastructure built for teams that ship daily."
subtitle="Deterministic deployments, zero-config edge routing, and real-time telemetry in a single unified runtime."
primaryCtaLabel="Start Building"
secondaryCtaLabel="Read Spec"
badges={[
"Edge Runtime",
"Zero Cold Start",
"TypeScript",
"99.99% SLA",
"Instant Rollback",
"Global Mesh",
]}
/>
);
}

3. Props Reference

Orbital Hero props API reference
PropTypeDefaultDescription
headlinestring"Minimalist UI Components..."Primary hero display heading rendered in the orbital center.
subtitlestring"Copy-paste Tailwind..."Concise supporting description beneath the main headline.
ctaLabelstring"Explore Components"Text label for the primary action pill button.
badgesstring[]["Next.js 16", ...]Stack highlight pills displayed around the orbital focal point.