From 0f8e19f1199a7924167d7a2f70cd6c78baa506f7 Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Thu, 16 Jul 2026 17:43:28 +0200 Subject: [PATCH] feat(ui): support email, in-app pricing link, landing pricing section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - App sidebar: Support card (mailto:info@openshorts.app) + "Plans & Pricing" link (billing-gated) - Landing: embedded 3-tier pricing section (live from Stripe), Pricing nav link, hosted card mentions the saved video library — all gated on billingEnabled so self-host shows nothing broken --- dashboard/src/App.jsx | 28 +++++++++++++++++++++++++++- dashboard/src/Landing.jsx | 29 +++++++++++++++++++++++++---- 2 files changed, 52 insertions(+), 5 deletions(-) diff --git a/dashboard/src/App.jsx b/dashboard/src/App.jsx index 284431d..78df909 100644 --- a/dashboard/src/App.jsx +++ b/dashboard/src/App.jsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { Upload, FileVideo, Sparkles, Youtube, Instagram, Share2, LogOut, ChevronDown, Check, Activity, LayoutDashboard, Settings, PlusCircle, History, Menu, X, Terminal, Shield, LayoutGrid, Image, Globe, RotateCcw, Calendar, AlertTriangle, KeyRound, Bot, Users, Smartphone, ExternalLink, Copy, CheckCircle2 } from 'lucide-react'; +import { Upload, FileVideo, Sparkles, Youtube, Instagram, Share2, LogOut, ChevronDown, Check, Activity, LayoutDashboard, Settings, PlusCircle, History, Menu, X, Terminal, Shield, LayoutGrid, Image, Globe, RotateCcw, Calendar, AlertTriangle, KeyRound, Bot, Users, Smartphone, ExternalLink, Copy, CheckCircle2, Mail } from 'lucide-react'; import KeyInput from './components/KeyInput'; import MediaInput from './components/MediaInput'; import ResultCard from './components/ResultCard'; @@ -529,6 +529,32 @@ function App() {

Free & Community Driven

+ {billingEnabled && ( + +
+ +
+
+

Plans & Pricing

+

View all plans

+
+
+ )} + +
+ +
+
+

Support

+

info@openshorts.app

+
+
); diff --git a/dashboard/src/Landing.jsx b/dashboard/src/Landing.jsx index 0789c94..23f7a79 100644 --- a/dashboard/src/Landing.jsx +++ b/dashboard/src/Landing.jsx @@ -1,5 +1,7 @@ import React from 'react'; import { Sparkles, Zap, Globe, FileVideo, Subtitles, Youtube, Instagram, Shield, Github, ArrowRight, Play, Check, ChevronDown, Monitor, Cpu, Languages, Type, Upload, Scissors } from 'lucide-react'; +import PricingSection from './components/PricingSection'; +import { useAuth } from './contexts/AuthContext'; const TikTokIcon = ({ size = 16, className = "" }) => ( @@ -56,6 +58,7 @@ const FAQItem = ({ question, answer, isOpen, onClick }) => ( ); export default function Landing({ onLaunchApp }) { + const { billingEnabled } = useAuth(); const [openFaq, setOpenFaq] = React.useState(null); const features = [ @@ -199,6 +202,7 @@ export default function Landing({ onLaunchApp }) {
Features How It Works + {billingEnabled && Pricing} Comparison FAQ
@@ -336,17 +340,34 @@ export default function Landing({ onLaunchApp }) { From $12/mo

- Zero setup, no API keys, we run all the AI and compute for you. 3-day free trial, then a plan - from $12/mo (100 min). Best if you just want to make clips without any technical hassle. + Zero setup, no API keys — we run all the AI and compute for you, and every clip you make is saved + to your private library. Sign in with email or Google. 3-day free trial, then a plan from + $12/mo (100 min). Best if you just want to make clips without any technical hassle.

- + + {/* Pricing Section — hosted plans (self-host stays free) */} + {billingEnabled && ( +
+
+
+

Simple, transparent pricing

+

+ Same features on every plan — you only pay for volume. Start with a 3-day free trial (card required, + 20 free minutes), cancel anytime. Prefer to self-host? It stays free forever. +

+
+ { window.location.hash = '#/pricing'; }} /> +
+
+ )} + {/* 3 Tools in 1 Section */}