From e0b43dee83380feb10549e8779975a3316c68d46 Mon Sep 17 00:00:00 2001
From: "juancarlos.cavero"
Date: Mon, 20 Jul 2026 19:14:17 +0200
Subject: [PATCH] =?UTF-8?q?feat(landing):=20input=20de=20URL=20en=20el=20h?=
=?UTF-8?q?ero=20=E2=80=94=20la=20landing=20arranca=20el=20producto,=20no?=
=?UTF-8?q?=20la=20p=C3=A1gina=20de=20precios?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
El CTA del hero mandaba a #pricing: pedía plantearse pagar antes de ver
nada, justo el muro que el plan free venía a quitar (7.7% de los registros
pasaban). Ahora el hero acepta un enlace, lo guarda y abre la app con la
URL ya cargada en MediaInput; el login se pide al generar, no antes.
No se auto-envía: la casilla de derechos sobre el vídeo la marca el usuario.
---
dashboard/src/Landing.jsx | 56 +++++++++++++++++--------
dashboard/src/components/MediaInput.jsx | 15 +++++++
2 files changed, 54 insertions(+), 17 deletions(-)
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. */}
+
+
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;