From ceeb740ba53162f0d19bc7609d04888b18b76db3 Mon Sep 17 00:00:00 2001 From: Aj Wazzan Date: Fri, 9 May 2025 00:01:48 -0700 Subject: [PATCH] feat: update onboarding videos to use absolute URLs and add new hostname for asset loading --- apps/mail/components/onboarding.tsx | 19 ++++--------------- apps/mail/next.config.ts | 1 + 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/apps/mail/components/onboarding.tsx b/apps/mail/components/onboarding.tsx index bf14825a7..2e4afbe82 100644 --- a/apps/mail/components/onboarding.tsx +++ b/apps/mail/components/onboarding.tsx @@ -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); diff --git a/apps/mail/next.config.ts b/apps/mail/next.config.ts index 704e2f25b..b0ff41dc6 100644 --- a/apps/mail/next.config.ts +++ b/apps/mail/next.config.ts @@ -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: {