- Plan free resuelto en metering (sin fila Stripe): 20 min/mes para cuentas Google, período sintético de mes natural con reset automático - TRIAL_DAYS=0 para nuevos checkouts; trials en curso grandfathered - Watermark drawtext en clips free (pasada única post-render, sobrevive subtítulos/hooks); thumbnails IA solo de pago - Anti-abuso: 3 jobs/día por cuenta, 5 por IP, rate-limit de probes, contador mensual de GB de proxy con alerta Telegram a 100 GB - Clips free caducan a 7 días (purge_free_expired); purge_expired respeta a cancelados que ahora son free - Galería UGC pública pasa a opt-in (share_to_gallery, antes publicaba producto+guion de todos los usuarios sin permiso) - Emails: clips listos (con star-ask) y sin-minutos (cooldown 24h) - Frontend: card Free en pricing, copy sin trial (landing/legal/gates), StarBanner en resultados y TopUpModal, upsell de watermark
27 lines
1.5 KiB
JavaScript
27 lines
1.5 KiB
JavaScript
import React from 'react';
|
|
import { KeyRound, ArrowRight } from 'lucide-react';
|
|
|
|
// Banner for advanced tools (AI Shorts, AI Agent) that use fal.ai + ElevenLabs.
|
|
// These are BYOK: the plan covers the script/orchestration, the user brings their
|
|
// own keys for the premium generation. If they have no plan yet, also nudge trial.
|
|
export default function AdvancedBanner({ needsPlan, onKeys }) {
|
|
return (
|
|
<div className="card mx-6 mt-3 px-4 py-3 flex items-center justify-between gap-4 shrink-0 animate-fade">
|
|
<div className="flex items-center gap-3 text-sm">
|
|
<KeyRound size={16} className="shrink-0 text-warn" />
|
|
<div className="text-ink2 lowercase">
|
|
<span className="font-medium text-ink">Advanced tool.</span>{' '}
|
|
{needsPlan
|
|
? <>Sign in with <span className="font-medium text-ink">Google</span> to unlock free. This tool also uses your own <span className="font-medium text-ink normal-case">fal.ai + ElevenLabs</span> keys (you pay those providers).</>
|
|
: <>AI video & voice generation use your own <span className="font-medium text-ink normal-case">fal.ai + ElevenLabs</span> keys — add them in Settings. Script & orchestration are included in your plan.</>}
|
|
</div>
|
|
</div>
|
|
<button
|
|
onClick={needsPlan ? () => { window.location.hash = '#/pricing'; } : onKeys}
|
|
className="btn-quiet shrink-0 text-xs px-3 py-1.5"
|
|
>
|
|
{needsPlan ? <>See plans <ArrowRight size={14} /></> : 'Add keys'}
|
|
</button>
|
|
</div>
|
|
);
|
|
}
|