diff --git a/dashboard/src/Landing.jsx b/dashboard/src/Landing.jsx index 63eef1c..eec72aa 100644 --- a/dashboard/src/Landing.jsx +++ b/dashboard/src/Landing.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Sparkles, Zap, Globe, FileVideo, Subtitles, Youtube, Instagram, Shield, Github, ArrowRight, Check, ChevronDown, Monitor, Cpu, Languages, Type, Upload, Scissors } from 'lucide-react'; +import { Sparkles, Zap, Globe, FileVideo, Subtitles, Youtube, Instagram, Shield, Github, ArrowRight, Check, ChevronDown, Monitor, Cpu, Languages, Type, Upload, Scissors, Link2 } from 'lucide-react'; import PricingSection from './components/PricingSection'; import { useAuth } from './contexts/AuthContext'; import './landing.css'; @@ -76,6 +76,18 @@ const FAQItem = ({ question, answer, isOpen, onClick }) => ( export default function Landing({ onLaunchApp }) { const { billingEnabled } = useAuth(); const [openFaq, setOpenFaq] = React.useState(null); + const [heroUrl, setHeroUrl] = React.useState(''); + + // Hand the pasted link to the app: MediaInput picks it up on mount, so the + // user lands with their own video ready instead of on a pricing page. + const handleHeroSubmit = (e) => { + e.preventDefault(); + const url = heroUrl.trim(); + if (url) { + try { localStorage.setItem('os_pending_url', url); } catch { /* ignore */ } + } + onLaunchApp(); + }; const features = [ { @@ -254,23 +266,33 @@ export default function Landing({ onLaunchApp }) { turn long videos into viral 9:16 shorts, or generate ugc marketing videos with ai actors. online, in the cloud, zero setup.

+ {/* The hero CTA is the product itself: paste a link and land in the + app with it loaded. Sign-in is asked for at generate time, not + before the user has seen anything. */} +
+
+
+ + setHeroUrl(e.target.value)} + placeholder="paste a youtube link" + className="input-field pl-11" + aria-label="YouTube video link" + /> +
+ +
+
+
- {billingEnabled ? ( - - start free - - - ) : ( - - )} - {billingEnabled && ( - - )} +

diff --git a/dashboard/src/components/MediaInput.jsx b/dashboard/src/components/MediaInput.jsx index 545e41c..41f71fe 100644 --- a/dashboard/src/components/MediaInput.jsx +++ b/dashboard/src/components/MediaInput.jsx @@ -40,6 +40,21 @@ export default function MediaInput({ onProcess, isProcessing }) { .catch(() => {}); }, []); + // A link pasted in the landing hero: preload it here so the user picks up + // where they left off. Not auto-submitted — the rights attestation below + // has to be ticked by the user. + useEffect(() => { + let pending = null; + try { + pending = localStorage.getItem('os_pending_url'); + if (pending) localStorage.removeItem('os_pending_url'); + } catch { /* ignore */ } + if (pending) { + setMode('url'); + setUrl(pending); + } + }, []); + const handleSubmit = (e) => { e.preventDefault(); if (!acknowledged) return;