feat(ui): support email, in-app pricing link, landing pricing section
- 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
This commit is contained in:
parent
6ec6935532
commit
0f8e19f119
2 changed files with 52 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { useState, useEffect } from 'react';
|
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 KeyInput from './components/KeyInput';
|
||||||
import MediaInput from './components/MediaInput';
|
import MediaInput from './components/MediaInput';
|
||||||
import ResultCard from './components/ResultCard';
|
import ResultCard from './components/ResultCard';
|
||||||
|
|
@ -529,6 +529,32 @@ function App() {
|
||||||
<p className="text-[10px] text-zinc-400 group-hover:text-zinc-300 transition-colors truncate">Free & Community Driven</p>
|
<p className="text-[10px] text-zinc-400 group-hover:text-zinc-300 transition-colors truncate">Free & Community Driven</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
{billingEnabled && (
|
||||||
|
<a
|
||||||
|
href="#/pricing"
|
||||||
|
className="flex items-center gap-2 p-3 bg-white/5 hover:bg-white/10 rounded-xl transition-colors group"
|
||||||
|
>
|
||||||
|
<div className="w-8 h-8 rounded-full bg-primary/20 text-primary flex items-center justify-center shrink-0">
|
||||||
|
<Sparkles size={16} />
|
||||||
|
</div>
|
||||||
|
<div className="hidden lg:block overflow-hidden">
|
||||||
|
<p className="text-sm font-bold text-white leading-none mb-0.5">Plans & Pricing</p>
|
||||||
|
<p className="text-[10px] text-zinc-400 group-hover:text-zinc-300 transition-colors truncate">View all plans</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
|
<a
|
||||||
|
href="mailto:info@openshorts.app"
|
||||||
|
className="flex items-center gap-2 p-3 bg-white/5 hover:bg-white/10 rounded-xl transition-colors group"
|
||||||
|
>
|
||||||
|
<div className="w-8 h-8 rounded-full bg-primary/20 text-primary flex items-center justify-center shrink-0">
|
||||||
|
<Mail size={16} />
|
||||||
|
</div>
|
||||||
|
<div className="hidden lg:block overflow-hidden">
|
||||||
|
<p className="text-sm font-bold text-white leading-none mb-0.5">Support</p>
|
||||||
|
<p className="text-[10px] text-zinc-400 group-hover:text-zinc-300 transition-colors truncate">info@openshorts.app</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
import React from 'react';
|
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 { 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 = "" }) => (
|
const TikTokIcon = ({ size = 16, className = "" }) => (
|
||||||
<svg width={size} height={size} viewBox="0 0 24 24" fill="currentColor" className={className}>
|
<svg width={size} height={size} viewBox="0 0 24 24" fill="currentColor" className={className}>
|
||||||
|
|
@ -56,6 +58,7 @@ const FAQItem = ({ question, answer, isOpen, onClick }) => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export default function Landing({ onLaunchApp }) {
|
export default function Landing({ onLaunchApp }) {
|
||||||
|
const { billingEnabled } = useAuth();
|
||||||
const [openFaq, setOpenFaq] = React.useState(null);
|
const [openFaq, setOpenFaq] = React.useState(null);
|
||||||
|
|
||||||
const features = [
|
const features = [
|
||||||
|
|
@ -199,6 +202,7 @@ export default function Landing({ onLaunchApp }) {
|
||||||
<div className="hidden md:flex items-center gap-8 text-sm text-zinc-400">
|
<div className="hidden md:flex items-center gap-8 text-sm text-zinc-400">
|
||||||
<a href="#features" className="hover:text-white transition-colors">Features</a>
|
<a href="#features" className="hover:text-white transition-colors">Features</a>
|
||||||
<a href="#how-it-works" className="hover:text-white transition-colors">How It Works</a>
|
<a href="#how-it-works" className="hover:text-white transition-colors">How It Works</a>
|
||||||
|
{billingEnabled && <a href="#pricing" className="hover:text-white transition-colors">Pricing</a>}
|
||||||
<a href="#comparison" className="hover:text-white transition-colors">Comparison</a>
|
<a href="#comparison" className="hover:text-white transition-colors">Comparison</a>
|
||||||
<a href="#faq" className="hover:text-white transition-colors">FAQ</a>
|
<a href="#faq" className="hover:text-white transition-colors">FAQ</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -336,17 +340,34 @@ export default function Landing({ onLaunchApp }) {
|
||||||
<span className="text-[10px] bg-primary/10 border border-primary/30 px-2 py-0.5 rounded text-primary uppercase tracking-wider">From $12/mo</span>
|
<span className="text-[10px] bg-primary/10 border border-primary/30 px-2 py-0.5 rounded text-primary uppercase tracking-wider">From $12/mo</span>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-zinc-400 text-sm leading-relaxed mb-5 flex-1">
|
<p className="text-zinc-400 text-sm leading-relaxed mb-5 flex-1">
|
||||||
Zero setup, no API keys, we run all the AI and compute for you. <b>3-day free trial</b>, then a plan
|
Zero setup, no API keys — we run all the AI and compute for you, and every clip you make is saved
|
||||||
from $12/mo (100 min). Best if you just want to make clips without any technical hassle.
|
to your private library. Sign in with email or Google. <b>3-day free trial</b>, then a plan from
|
||||||
|
$12/mo (100 min). Best if you just want to make clips without any technical hassle.
|
||||||
</p>
|
</p>
|
||||||
<button onClick={() => { window.location.hash = '#/pricing'; }}
|
<a href="#pricing"
|
||||||
className="inline-flex items-center justify-center gap-2 bg-primary hover:bg-blue-600 text-white px-5 py-3 rounded-xl font-medium transition-all">
|
className="inline-flex items-center justify-center gap-2 bg-primary hover:bg-blue-600 text-white px-5 py-3 rounded-xl font-medium transition-all">
|
||||||
See plans <ArrowRight size={18} />
|
See plans <ArrowRight size={18} />
|
||||||
</button>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
{/* Pricing Section — hosted plans (self-host stays free) */}
|
||||||
|
{billingEnabled && (
|
||||||
|
<section id="pricing" className="py-20 px-6 bg-surface/20">
|
||||||
|
<div className="max-w-6xl mx-auto">
|
||||||
|
<div className="text-center mb-12">
|
||||||
|
<h2 className="text-3xl md:text-4xl font-bold mb-4">Simple, transparent pricing</h2>
|
||||||
|
<p className="text-zinc-400 max-w-2xl mx-auto">
|
||||||
|
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.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<PricingSection onRequireLogin={() => { window.location.hash = '#/pricing'; }} />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* 3 Tools in 1 Section */}
|
{/* 3 Tools in 1 Section */}
|
||||||
<section className="py-20 px-6">
|
<section className="py-20 px-6">
|
||||||
<div className="max-w-6xl mx-auto">
|
<div className="max-w-6xl mx-auto">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue