Skip to content

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

1.2 KB
Raw Blame
import { Card } from '../../../components/ui';
import WhatLeavesLink from '../../../features/privacy/WhatLeavesLink';
import { useT } from '../../../lib/i18n/I18nContext';
import OnboardingNextButton from '../components/OnboardingNextButton';

interface WelcomeStepProps {
  onNext: () => void;
}

const WelcomeStep = ({ onNext }: WelcomeStepProps) => {
  const { t } = useT();
  return (
    <Card
      padded
      divided={false}
      data-testid="onboarding-welcome-step"
      className="animate-fade-up p-6 shadow-soft sm:p-8">
      <div className="flex flex-col items-center text-center">
        <img src="/logo.png" alt="OpenHuman" className="w-20 h-20 rounded-2xl mb-5" />
        <h1 className="text-3xl font-title text-content mb-3 leading-tight">
          {t('onboarding.welcome')}
        </h1>
        <p className="text-content-muted text-sm leading-relaxed max-w-sm">
          {t('onboarding.welcomeDesc')}
        </p>
      </div>
      <div className="mt-8">
        <OnboardingNextButton label={t('onboarding.getStarted')} onClick={onNext} />
      </div>
      <div className="mt-4 flex justify-center">
        <WhatLeavesLink />
      </div>
    </Card>
  );
};

export default WelcomeStep;