Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ba7353f
fix: migrate to new facelift
christopherkindl Apr 9, 2026
e83ca81
add: max-w- for footer
christopherkindl Apr 9, 2026
8e69ff0
update
christopherkindl Apr 9, 2026
4512766
DCO Remediation Commit for christopherkindl <53372002+christopherkind…
christopherkindl Apr 9, 2026
5af95fe
Fix: Mobile menu's "close on route change" useEffect has empty depend…
vercel[bot] Apr 9, 2026
f2c4af9
Merge branch 'main' into ck/navbar-update
christopherkindl Apr 10, 2026
7747873
fix(docs): use ds-gray-900 token for muted-foreground color
christopherkindl Apr 10, 2026
7b4b6ce
fix(docs): update world component colors to use 900-level tokens
christopherkindl Apr 10, 2026
c9b86b1
fix(docs): update world page colors and align hero layout with TOC grid
christopherkindl Apr 10, 2026
22abc8e
polish: /worlds page
christopherkindl Apr 10, 2026
b01af1a
feat(docs): add filterable world cards with section grouping
christopherkindl Apr 10, 2026
7a937a1
fix(docs): use radix checkbox with SSR placeholder to prevent layout …
christopherkindl Apr 10, 2026
1b8c0f6
fix(docs): use badge tabs for world filters instead of checkboxes
christopherkindl Apr 10, 2026
c1b1d01
fix: add PATH export to husky pre-commit hook for pnpm resolution
christopherkindl Apr 13, 2026
1b8bba8
revert: restore .husky/pre-commit from main
christopherkindl Apr 13, 2026
4b463bb
fix(docs): improve benchmark history chart UI and API performance
christopherkindl Apr 13, 2026
c27f4f2
fix(docs): add missing geist tokens and utilities from homepage-visuals
christopherkindl Apr 13, 2026
46be669
[DO NOT MERGE][home] Adds vercel-com workflow visuals (#1674)
christopherkindl Apr 13, 2026
d4c63eb
fix(docs): add mobile docs bar to cookbook pages
christopherkindl Apr 13, 2026
6fd286b
fix(docs): add mobile docs bar to cookbook pages
christopherkindl Apr 13, 2026
f777c16
Merge branch 'ck/navbar-update' of https://github.com/vercel/workflow…
christopherkindl Apr 13, 2026
2a0d9b9
fix(docs): increase hero section vertical spacing
christopherkindl Apr 13, 2026
352180f
chore(docs): remove recharts React 19 type shim
christopherkindl Apr 13, 2026
756721e
fix(docs): hoist useTransform calls to top level of components
christopherkindl Apr 13, 2026
b79b89c
fix(docs): add optional chaining for world.features access
christopherkindl Apr 13, 2026
5ac13aa
fix(docs): log warning when benchmark pagination cap is hit
christopherkindl Apr 13, 2026
ca1e320
fix(docs): make filter badges keyboard accessible
christopherkindl Apr 13, 2026
f0288ac
fix(docs): clean up setTimeout on unmount in globe path components
christopherkindl Apr 13, 2026
0a3c37d
feat(docs): add full-width frameworks section to homepage
christopherkindl Apr 13, 2026
7d7e49d
feat(docs): update navbar logo and add framework logos from geist sym…
christopherkindl Apr 13, 2026
a3df2fa
docs: add comment noting timestamp semantic change in benchmark API
christopherkindl Apr 13, 2026
3db3c6a
fix(docs): move frameworks section after effortless setup on homepage
christopherkindl Apr 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
247 changes: 117 additions & 130 deletions docs/app/[lang]/(home)/components/frameworks.tsx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/app/[lang]/(home)/components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Hero = ({ title, description }: HeroProps) => {
const Icon = copied ? CheckIcon : CopyIcon;

return (
<section className="mt-[var(--fd-nav-height)] space-y-6 px-4 pt-16 sm:pt-24 pb-16 text-center">
<section className="mt-[var(--fd-nav-height)] space-y-6 px-4 pt-24 sm:pt-32 pb-32 text-center">
<div className="mx-auto w-full max-w-4xl space-y-5">
<h1 className="text-center font-semibold text-4xl leading-[1.1] tracking-tight lg:font-semibold sm:text-5xl! xl:text-6xl! text-balance">
{title}
Expand Down
2 changes: 1 addition & 1 deletion docs/app/[lang]/(home)/components/tweet-wall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function InlineCode({ children }: { children: ReactNode }) {
}

function InlineLink({ children }: { children: ReactNode }) {
return <span className="text-blue-500">{children}</span>;
return <span className="text-blue-700">{children}</span>;
}

function VerifiedBadge() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
'use client';

import type { JSX } from 'react';
import {
motion,
useMotionValue,
useTransform,
animate,
useInView,
useReducedMotion,
} from 'motion/react';
import { useEffect, useRef, useState, useCallback } from 'react';
import { cn } from '@/lib/utils';

const ANIMATION_CONFIG = {
STAGGER_DELAY: 200,
ANIMATION_DURATION: 1500,
GRADIENT_FADE_DELAY: 300,
FADE_OUT_DELAY: 800,
FADE_OUT_DURATION: 500,
PAUSE_DURATION: 1000,
TOTAL_CYCLE_TIME: 4800,
COLOR_CHANGE_THRESHOLD: { RED: 60, GREEN: 80 },
} as const;

const ANIMATION_LINES = Array.from({ length: 7 }, (_, index) => ({
id: `line-${index}`,
delay: index * ANIMATION_CONFIG.STAGGER_DELAY,
}));

export function AgentsVisual(): JSX.Element {
const ref = useRef<HTMLDivElement>(null);
const isInView = useInView(ref);
const shouldReduceMotion = useReducedMotion();
const [animationKey, setAnimationKey] = useState(0);

const startAnimationCycle = useCallback(() => {
if (shouldReduceMotion) return;

setAnimationKey((prev) => prev + 1);
}, [shouldReduceMotion]);

useEffect(() => {
if (!isInView || shouldReduceMotion) return;

let intervalId: NodeJS.Timeout;

const scheduleNextCycle = () => {
intervalId = setTimeout(() => {
if (isInView && !shouldReduceMotion) {
startAnimationCycle();
scheduleNextCycle();
}
}, ANIMATION_CONFIG.TOTAL_CYCLE_TIME);
};

startAnimationCycle();
scheduleNextCycle();

return () => {
clearTimeout(intervalId);
};
}, [isInView, shouldReduceMotion, startAnimationCycle]);

return (
<div
ref={ref}
className="aspect-[444/264] w-full max-w-[444px] mx-auto relative overflow-hidden"
role="img"
aria-label="Animated workflow visualization showing progressive completion of tasks"
>
<div className="w-[calc(100%-10px)] h-full flex flex-col justify-between py-[5px]">
{ANIMATION_LINES.map((line) => (
<AnimatedLine
key={line.id}
delay={line.delay}
animationKey={animationKey}
shouldReduceMotion={shouldReduceMotion}
/>
))}
</div>
<div className="w-[35%] h-full absolute top-0 left-0 bg-gradient-to-r from-background-200 to-transparent pointer-events-none" />
</div>
);
}

interface AnimatedLineProps {
delay: number;
animationKey: number;
shouldReduceMotion: boolean | null;
}

function AnimatedLine({
delay,
animationKey,
shouldReduceMotion,
}: AnimatedLineProps): JSX.Element {
const width = useMotionValue(0);
const widthPct = useTransform(width, (v) => `${v}%`);
const opacity = useMotionValue(1);
const [hideGradient, setHideGradient] = useState(false);
const [gradientColor, setGradientColor] = useState<'red' | 'green'>('green');

useEffect(() => {
if (shouldReduceMotion) {
width.set(100);
opacity.set(1);
setHideGradient(true);
setGradientColor('green');
return;
}

setHideGradient(false);
width.set(0);
opacity.set(1);

const widthControls = animate(width, 100, {
duration: ANIMATION_CONFIG.ANIMATION_DURATION / 1000,
delay: delay / 1000,
ease: [0.4, 0.04, 0.04, 1],
});

const timeoutIds: NodeJS.Timeout[] = [];

const unsubscribe = width.on('change', (latest) => {
if (
latest > ANIMATION_CONFIG.COLOR_CHANGE_THRESHOLD.RED &&
latest < ANIMATION_CONFIG.COLOR_CHANGE_THRESHOLD.GREEN
) {
setGradientColor('red');
}
if (latest >= ANIMATION_CONFIG.COLOR_CHANGE_THRESHOLD.GREEN) {
setGradientColor('green');
}
});

void widthControls.finished.then(() => {
const timeout1 = setTimeout(
() => setHideGradient(true),
ANIMATION_CONFIG.GRADIENT_FADE_DELAY
);
const timeout2 = setTimeout(
() => setGradientColor('green'),
ANIMATION_CONFIG.GRADIENT_FADE_DELAY * 2
);

timeoutIds.push(timeout1, timeout2);

animate(opacity, 0, {
duration: ANIMATION_CONFIG.FADE_OUT_DURATION / 1000,
delay: ANIMATION_CONFIG.FADE_OUT_DELAY / 1000,
ease: [0.4, 0.04, 0.04, 1],
});
});

return () => {
widthControls.stop();
unsubscribe();
timeoutIds.forEach(clearTimeout);
};
}, [animationKey, width, opacity, delay, shouldReduceMotion]);

return (
<div className="w-full relative text-gray-600">
<DashedLine />
<motion.div
style={{
width: widthPct,
opacity: opacity,
}}
className="absolute top-0 left-0 overflow-hidden"
>
<div className="w-full">
<SolidLine />
<GradientLine color={gradientColor} hideGradient={hideGradient} />
</div>
</motion.div>
<Arrow />
</div>
);
}

function SolidLine(): JSX.Element {
return <div className="w-full h-0.5 bg-gray-600" />;
}

function DashedLine(): JSX.Element {
return (
<svg
className="w-full block"
height="2"
fill="none"
viewBox="0 0 432 2"
aria-hidden="true"
>
<path
stroke="currentColor"
strokeDasharray="4 4"
strokeWidth="2"
d="M432 1H0"
/>
</svg>
);
}

interface GradientLineProps {
hideGradient: boolean;
color?: 'green' | 'red';
}

function GradientLine({
hideGradient,
color = 'red',
}: GradientLineProps): JSX.Element {
return (
<div
className={cn(
'absolute top-0 right-0 w-12 h-0.5 transition-all duration-300',
hideGradient && 'opacity-0',
color === 'green' &&
'bg-gradient-to-r from-gray-600 via-green-700 to-gray-600',
color === 'red' &&
'bg-gradient-to-r from-gray-600 via-red-700 to-gray-600'
)}
/>
);
}

function Arrow(): JSX.Element {
return (
<svg
className="absolute top-1/2 -right-2.5 -translate-y-1/2"
width="10"
height="12"
viewBox="0 0 10 12"
fill="none"
aria-hidden="true"
>
<path fill="currentColor" d="m0 12 10-6L0 0z" />
</svg>
);
}
Loading
Loading