mirror of
https://github.com/Mail-0/Zero.git
synced 2026-06-29 15:26:42 +00:00
feat: update onboarding videos to use absolute URLs and add new hostname for asset loading
This commit is contained in:
@@ -10,22 +10,22 @@ const steps = [
|
||||
{
|
||||
title: 'Welcome to Zero Email!',
|
||||
description: 'Your new intelligent email experience starts here.',
|
||||
video: '/onboarding/get-started.png',
|
||||
video: 'https://assets.0.email/get-started.png',
|
||||
},
|
||||
{
|
||||
title: 'Chat with your inbox',
|
||||
description: 'Zero allows you to chat with your inbox and do tasks on your behalf.',
|
||||
video: '/onboarding/step2.gif',
|
||||
video: 'https://assets.0.email/step2.gif',
|
||||
},
|
||||
{
|
||||
title: 'AI Compose & Reply',
|
||||
description: 'Our AI assistant allows you to write emails with a single click.',
|
||||
video: '/onboarding/step1.gif',
|
||||
video: 'https://assets.0.email/step1.gif',
|
||||
},
|
||||
{
|
||||
title: 'Label your emails',
|
||||
description: 'Zero helps you label your emails and helps you focus on what matters.',
|
||||
video: '/onboarding/step3.gif',
|
||||
video: 'https://assets.0.email/step3.gif',
|
||||
},
|
||||
{
|
||||
title: 'Coming Soon',
|
||||
@@ -70,17 +70,6 @@ export function OnboardingDialog({
|
||||
}
|
||||
}, [currentStep]);
|
||||
|
||||
useEffect(() => {
|
||||
const handleKeyDown = (e: KeyboardEvent) => {
|
||||
if (e.key === 'Enter' && !e.shiftKey) {
|
||||
handleNext();
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener('keydown', handleKeyDown);
|
||||
return () => window.removeEventListener('keydown', handleKeyDown);
|
||||
}, [currentStep]);
|
||||
|
||||
const handleNext = () => {
|
||||
if (currentStep < steps.length - 1) {
|
||||
setCurrentStep(currentStep + 1);
|
||||
|
||||
@@ -16,6 +16,7 @@ const nextConfig: NextConfig = {
|
||||
{ protocol: 'https', hostname: 'lh3.googleusercontent.com' },
|
||||
{ protocol: 'https', hostname: '0.email' },
|
||||
{ protocol: 'https', hostname: 'avatars.githubusercontent.com' },
|
||||
{ protocol: 'https', hostname: 'assets.0.email' },
|
||||
],
|
||||
},
|
||||
typescript: {
|
||||
|
||||
Reference in New Issue
Block a user