presenton/electron/servers/nextjs/components/OnBoarding/FinalStep.tsx
sudipnext fc1bad2d7c feat: add new image assets and update presentation generation state
- Added new image assets: image_mode.png, logo-with-bg.png, image-provider.png, and openai.png.
- Enhanced presentation generation state to include theme property.
- Introduced updateTheme action in presentation generation slice.
- Updated user configuration with default LLM and image provider settings.
- Modified Tailwind CSS configuration to include new font families.
- Improved API utility functions for better handling of URLs in Electron environment.
- Adjusted PPTX model utility for border radius handling.
- Expanded provider constants to include URLs and icons for LLM providers.
- Updated provider utility functions for consistent API URL usage.
- Added new quality options for image generation providers.
- Updated package-lock.json to include new dependencies for react-colorful and scheduler.
2026-03-20 11:41:50 +05:45

31 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { ArrowRight } from 'lucide-react'
import { usePathname, useRouter } from 'next/navigation'
import React from 'react'
import { trackEvent, MixpanelEvent } from "@/utils/mixpanel";
const FinalStep = () => {
const router = useRouter()
const pathname = usePathname()
const handleGoToDashboard = () => {
trackEvent(MixpanelEvent.Navigation, { from: pathname, to: "/dashboard" });
router.push('/dashboard')
}
const handleGoToUpload = () => {
trackEvent(MixpanelEvent.Navigation, { from: pathname, to: "/upload" });
router.push('/upload')
}
return (
<div className='fixed top-0 left-0 w-full h-full flex flex-col items-center justify-center'>
<div className='flex flex-col items-center justify-center'>
<img src="/final_onboarding.png" alt="presenton" className='w-[118px] h-[98px] object-contain' />
<h1 className='text-black text-[30px] font-normal font-unbounded py-2.5'>Welcome on board!</h1>
<p className='text-[#000000CC] text-xl font-normal font-syne'>Your AI workspace is ready. Lets create your first presentation.</p>
<button onClick={handleGoToUpload} className='bg-[#7C51F8] px-[23px] mt-14 py-[15px] rounded-[70px] text-white text-lg font-syne font-semibold'>My First Presentation</button>
</div>
<button onClick={handleGoToDashboard} className='absolute bottom-20 text-[#7A5AF8] flex items-center gap-2 right-10 text-xs font-normal font-syne'>Go to your dashboard <ArrowRight className='w-4 h-4 text-[#7A5AF8]' /></button>
</div>
)
}
export default FinalStep