feat: update onboarding videos to use absolute URLs and add new hostname for asset loading

This commit is contained in:
Aj Wazzan
2025-05-09 00:01:48 -07:00
parent e522c93243
commit ceeb740ba5
2 changed files with 5 additions and 15 deletions

View File

@@ -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);

View File

@@ -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: {