Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(layout): restore welcome page component

Steven Enamakel28a9782b8693
diff --git a/app/src/components/layout/PageWelcome.tsx b/app/src/components/layout/PageWelcome.tsx
index ee3043df28..c3c4efed8e 100644
--- a/app/src/components/layout/PageWelcome.tsx
+++ b/app/src/components/layout/PageWelcome.tsx
@@ -59,6 +59,8 @@ interface PageWelcomeProps {
/** Benefit cards. */
features?: WelcomeFeature[];
accent?: PageWelcomeAccent;
+ /** Pitch column width. Defaults to `'md'` — today's hardcoded `max-w-2xl`. */
+ width?: ContentWidth;
testId?: string;
}
@@ -71,6 +73,7 @@ export default function PageWelcome({
featuresHeading,
features,
accent = 'ocean',
+ width = 'md',
testId,
}: PageWelcomeProps) {
const tile = ACCENT_TILE[accent];
@@ -81,7 +84,12 @@ export default function PageWelcome({
// scroll takes over and the top stays reachable (min-h-full, not h-full).
<div className="h-full overflow-y-auto">
<div className="flex min-h-full items-center">
- <div data-testid={testId} className="mx-auto w-full max-w-2xl animate-fade-up px-6 py-10">
+ <div
+ data-testid={testId}
+ className={cn(
+ 'mx-auto w-full animate-fade-up px-6 py-10',
+ contentWidthVariants({ width })
+ )}>
<div
aria-hidden
className={`mb-5 flex items-center justify-center rounded-2xl text-3xl ${tile}`}