71 lines
3.1 KiB
TypeScript
71 lines
3.1 KiB
TypeScript
/**
|
|
* @ai-summary Step 3 of onboarding - Success screen
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Button } from '../../../shared-minimal/components/Button';
|
|
|
|
interface CompleteStepProps {
|
|
onComplete: () => void;
|
|
loading?: boolean;
|
|
}
|
|
|
|
export const CompleteStep: React.FC<CompleteStepProps> = ({ onComplete, loading }) => {
|
|
return (
|
|
<div className="space-y-6 text-center py-8">
|
|
<div className="mx-auto w-24 h-24 bg-green-100 dark:bg-green-900 rounded-full flex items-center justify-center animate-bounce">
|
|
<svg
|
|
className="w-12 h-12 text-green-600 dark:text-green-400"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
stroke="currentColor"
|
|
>
|
|
<path
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
strokeWidth={2}
|
|
d="M5 13l4 4L19 7"
|
|
/>
|
|
</svg>
|
|
</div>
|
|
|
|
<div>
|
|
<h2 className="text-2xl font-bold text-slate-800 dark:text-white mb-2">You're All Set!</h2>
|
|
<p className="text-slate-600 dark:text-gray-300 max-w-md mx-auto">
|
|
Welcome to MotoVault Pro. Your account is ready and you can now start tracking your vehicles.
|
|
</p>
|
|
</div>
|
|
|
|
<div className="bg-primary-50 dark:bg-primary-900 rounded-lg p-6 max-w-md mx-auto">
|
|
<h3 className="font-semibold text-primary-900 dark:text-primary-200 mb-2">What's Next?</h3>
|
|
<ul className="text-left space-y-2 text-sm text-primary-800 dark:text-primary-300">
|
|
<li className="flex items-start">
|
|
<svg className="w-5 h-5 text-primary-600 dark:text-primary-400 mr-2 flex-shrink-0 mt-0.5" fill="currentColor" viewBox="0 0 20 20">
|
|
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clipRule="evenodd" />
|
|
</svg>
|
|
<span>Add or manage your vehicles in the garage</span>
|
|
</li>
|
|
<li className="flex items-start">
|
|
<svg className="w-5 h-5 text-primary-600 dark:text-primary-400 mr-2 flex-shrink-0 mt-0.5" fill="currentColor" viewBox="0 0 20 20">
|
|
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clipRule="evenodd" />
|
|
</svg>
|
|
<span>Track fuel logs and maintenance records</span>
|
|
</li>
|
|
<li className="flex items-start">
|
|
<svg className="w-5 h-5 text-primary-600 dark:text-primary-400 mr-2 flex-shrink-0 mt-0.5" fill="currentColor" viewBox="0 0 20 20">
|
|
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clipRule="evenodd" />
|
|
</svg>
|
|
<span>Upload important vehicle documents</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div className="pt-6">
|
|
<Button onClick={onComplete} loading={loading} className="min-h-[44px] px-8">
|
|
Go to My Garage
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|