Claude Embed Test Page
/
import React, { useState } from ‘react’; import { Sparkles, Video, TrendingUp, Zap, Copy, Download, RefreshCw, CheckCircle } from ‘lucide-react’; const ViralReelGenerator = () => { const [inputText, setInputText] = useState(”); const [niche, setNiche] = useState(”); const [goal, setGoal] = useState(‘follows’); const [loading, setLoading] = useState(false); const [scriptOutput, setScriptOutput] = useState(null); const [copied, setCopied] = useState(false); const niches = [ ‘Business’, ‘Finance’, ‘Leadership’, ‘Fitness’, ‘Running’, ‘Nutrition’, ‘Skincare’, ‘Dog Training’, ‘Travel’, ‘Beauty’, ‘Comedy’, ‘Education’, ‘Relationships’, ‘Tech’, ‘Fashion’, ‘Food’, ‘Productivity’, ‘Mental Health’, ‘Parenting’, ‘Real Estate’, ‘Marketing’ ]; const goals = [ { value: ‘follows’, label: ‘๐ Gain Followers’ }, { value: ‘leads’, label: ‘๐ฏ Generate Leads’ }, { value: ‘engagement’, label: ‘๐ฌ Boost Engagement’ }, { value: ‘sales’, label: ‘๐ฐ Drive Sales’ } ]; const generateScript = async () => { if (!inputText.trim()) { alert(‘Please enter your content idea!’); return; } setLoading(true); // Simulate script generation with realistic timing setTimeout(() => { const selectedNiche = niche || ‘General’; // Analyze input to extract key themes (in production, this would use Claude API) const inputLower = inputText.toLowerCase(); // Determine hook style based on content let hookVerbal = “Stop scrolling! This changed everything for me…”; let hookText = “YOU NEED TO SEE THIS ๐”; if (inputLower.includes(‘mistake’) || inputLower.includes(‘wrong’)) { hookVerbal = “Everyone’s doing this wrong… and it’s costing them everything.”; hookText = “STOP DOING THIS โ”; } else if (inputLower.includes(‘secret’) || inputLower.includes(‘nobody tells’)) { hookVerbal = “Nobody talks about this… but it’s the real game-changer.”; hookText = “THE SECRET NOBODY TELLS YOU ๐คซ”; } else if (inputLower.includes(‘ai’) || inputLower.includes(‘technology’)) { hookVerbal = “Everyone’s rushing to replace employees with AI… but the smartest CEOs are doing the OPPOSITE.”; hookText = “STOP REPLACING HUMANS โ”; } // Dynamic script generation based on input const mockScript = { topic: selectedNiche, hooks: { verbal: hookVerbal, written: hookText, visual: “Dramatic close-up with intense eye contact, slight lean in” }, structure: “Hook โ Problem Reveal โ 2-Step Solution โ Proof โ CTA”, format: “Talking head with strategic B-roll transitions”, value: “Actionable framework with real-world proof”, cta: goal === ‘leads’ ? “Comment ‘GUIDE’ and I’ll send you the complete breakdown” : `Follow for more ${selectedNiche.toLowerCase()} insights that actually work ๐ฅ`, script: [ { serial: 1, voiceover: hookVerbal, visual: “Close-up face shot, concerned/serious expression, direct eye contact, slight head shake”, onScreenText: hookText, imagePrompt: “Cinematic close-up portrait of professional looking concerned directly at camera, dramatic side lighting, shallow depth of field, professional attire, serious expression, high contrast, 4K quality, corporate photography style”, audio: “Record scratch sound effect + tension music begins” }, { serial: 2, voiceover: “After analyzing the data, I discovered something that completely changed my perspective…”, visual: “Quick cut to B-roll: reviewing documents, data on screen, or research materials”, onScreenText: “WHAT THE RESEARCH SHOWS ๐”, imagePrompt: “Professional analyzing data visualizations on large screen, modern office environment, focused expression, blue-toned lighting from screen, photorealistic, 4K quality, business analytics imagery”, audio: “Whoosh transition sound + subtle tech ambience” }, { serial: 3, voiceover: “Here’s the problem everyone’s missing: we’re solving for the wrong thing entirely.”, visual: “Person looking thoughtful, hand on chin, then shaking head with realization”, onScreenText: “THE REAL PROBLEM โ ๏ธ”, imagePrompt: “Professional having realization moment, hand on chin, thoughtful expression transitioning to concerned, natural office lighting, authentic emotion, candid corporate photography, warm tones, 4K”, audio: “Subtle tension music builds” }, { serial: 4, voiceover: “Solution Part 1: Focus on developing these specific human capabilities that AI simply cannot replicate.”, visual: “Demonstrating or gesturing toward key point, confident body language”, onScreenText: “STEP 1: BUILD IRREPLACEABLE SKILLS โ ”, imagePrompt: “Professional demonstrating concept with confident hand gestures, bright clean lighting, instructional photography style, shallow depth of field, hands and face in focus, vibrant colors, 4K quality”, audio: “Upbeat motivational music kicks in + positive chime” }, { serial: 5, voiceover: “Solution Part 2: Integrate AI as a co-pilot, not a replacement – this is where the magic happens.”, visual: “Showing collaboration between human and technology, working together”, onScreenText: “STEP 2: HUMANS + AI = UNSTOPPABLE ๐”, imagePrompt: “Split screen composition showing human professional collaborating with AI interface, harmonious integration, modern workspace, futuristic yet realistic, balanced blue and warm lighting, 4K quality”, audio: “Whoosh transition + inspiring tech sound” }, { serial: 6, voiceover: “And here’s the proof: Companies that excel on human capital metrics are 4X more likely to have superior financial performance.”, visual: “Showing impressive statistic or graph, pointing to key numbers”, onScreenText: “4X BETTER PERFORMANCE ๐”, imagePrompt: “Clean professional infographic showing upward trending graph with 4X highlighted, modern data visualization, bold colors, high contrast, minimal aesthetic, business success metrics, 4K quality”, audio: “Impactful ‘reveal’ sound + success chime” }, { serial: 7, voiceover: “The biggest mistake? Rushing to replace talent with AI. That’s completely backwards.”, visual: “Showing contrast: wrong approach vs. right approach, clear visual distinction”, onScreenText: “DON’T MAKE THIS MISTAKE โ”, imagePrompt: “Side-by-side comparison image, left showing wrong approach (replacing humans with AI), right showing correct approach (humans + AI collaboration), contrasting moods, dramatic lighting, 4K quality”, audio: “Warning/alert sound effect” }, { serial: 8, voiceover: “Why does this work? Because AI is copyable – but your unique business model and skilled humans aren’t.”, visual: “Direct eye contact, confident expression, emphatic gesture”, onScreenText: “YOUR REAL ADVANTAGE ๐”, imagePrompt: “Confident business leader making emphatic point, strong eye contact with camera, powerful hand gesture, dramatic lighting, professional attire, inspiring composition, 4K portrait photography”, audio: “Inspiring crescendo music builds” }, { serial: 9, voiceover: goal === ‘leads’ ? “Want the complete framework? Comment ‘GUIDE’ and I’ll send you the full breakdown.” : `Follow for more ${selectedNiche.toLowerCase()} strategies that actually move the needle.`, visual: “Friendly smile, pointing at camera then up to follow/comment, enthusiastic energy”, onScreenText: goal === ‘leads’ ? “COMMENT ‘GUIDE’ BELOW ๐” : “TAP FOLLOW โ ๐ฅ”, imagePrompt: “Close-up of enthusiastic professional pointing at camera then upward, genuine smile, call-to-action energy, bright natural lighting, shallow depth of field, approachable yet professional, 4K social media portrait”, audio: “Pop sound effect + upbeat music outro fade” } ], estimatedLength: “55-65 seconds”, retentionTips: [ “Hook grabs attention in first 1-2 seconds with pattern interrupt”, “Problem reveal creates curiosity gap at 5-10 second mark”, “Two-part solution keeps viewer engaged with clear structure”, “Proof point (4X stat) adds credibility and social proof”, “Strong CTA with specific action drives conversions” ] }; setScriptOutput(mockScript); setLoading(false); }, 2500); }; const copyToClipboard = () => { if (!scriptOutput) return; let textToCopy = `VIRAL REEL SCRIPT – ${scriptOutput.topic.toUpperCase()}\n\n`; textToCopy += `=== 6 PILLARS FRAMEWORK ===\n`; textToCopy += `Topic: ${scriptOutput.topic}\n`; textToCopy += `Structure: ${scriptOutput.structure}\n`; textToCopy += `Format: ${scriptOutput.format}\n`; textToCopy += `Value: ${scriptOutput.value}\n`; textToCopy += `CTA: ${scriptOutput.cta}\n\n`; textToCopy += `=== SCENE-BY-SCENE BREAKDOWN ===\n\n`; scriptOutput.script.forEach((scene) => { textToCopy += `— SCENE ${scene.serial} —\n`; textToCopy += `Voiceover: ${scene.voiceover}\n`; textToCopy += `Visual: ${scene.visual}\n`; textToCopy += `On-Screen Text: ${scene.onScreenText}\n`; textToCopy += `AI Image Prompt: ${scene.imagePrompt}\n`; textToCopy += `Audio: ${scene.audio}\n\n`; }); navigator.clipboard.writeText(textToCopy); setCopied(true); setTimeout(() => setCopied(false), 2000); }; const downloadScript = () => { if (!scriptOutput) return; let content = `VIRAL REEL SCRIPT – ${scriptOutput.topic.toUpperCase()}\n`; content += `Generated: ${new Date().toLocaleDateString()}\n\n`; content += `=== 6 PILLARS FRAMEWORK ===\n`; content += `Topic: ${scriptOutput.topic}\n`; content += `Hooks – Verbal: ${scriptOutput.hooks.verbal}\n`; content += `Structure: ${scriptOutput.structure}\n`; content += `Format: ${scriptOutput.format}\n`; content += `Value Proposition: ${scriptOutput.value}\n`; content += `Call-to-Action: ${scriptOutput.cta}\n`; content += `Estimated Length: ${scriptOutput.estimatedLength}\n\n`; content += `=== COMPLETE SCRIPT TABLE ===\n\n`; scriptOutput.script.forEach((scene) => { content += `SCENE ${scene.serial}\n`; content += `${‘=’.repeat(50)}\n`; content += `VOICEOVER:\n${scene.voiceover}\n\n`; content += `VISUAL DESCRIPTION:\n${scene.visual}\n\n`; content += `ON-SCREEN TEXT:\n${scene.onScreenText}\n\n`; content += `AI IMAGE PROMPT (for Midjourney/Ideogram):\n${scene.imagePrompt}\n\n`; content += `AUDIO/SOUND:\n${scene.audio}\n\n`; content += `${‘=’.repeat(50)}\n\n`; }); content += `=== RETENTION OPTIMIZATION TIPS ===\n`; scriptOutput.retentionTips.forEach((tip, i) => { content += `${i + 1}. ${tip}\n`; }); const blob = new Blob([content], { type: ‘text/plain’ }); const url = URL.createObjectURL(blob); const a = document.createElement(‘a’); a.href = url; a.download = `viral-reel-script-${Date.now()}.txt`; a.click(); URL.revokeObjectURL(url); }; return (
{/* Header */}
{/* Input Section */}
{/* Output Section */}
{scriptOutput && (
)}
Viral Reel Script Generator
Transform your ideas into viral Instagram Reels using the proven 6-Pillar Framework
โจ Powered by 1000+ Viral Hooks Database
Create Your Viral Script
{/* Input Paragraph */}
{/* Niche and Goal Selection */}
{/* Generate Button */}
{/* Header with Actions */}
{/* 6 Pillars Overview */}
{/* Script Table */}
{/* Retention Tips */}
)}
{/* Footer Info */}
{!scriptOutput && (
Your Viral Reel Script
๐ฏ 6-Pillar Framework Breakdown
๐ PILLAR #1: TOPIC
{scriptOutput.topic}
๐ฃ PILLAR #2: HOOKS
Verbal: {scriptOutput.hooks.verbal}
๐ PILLAR #3: STRUCTURE
{scriptOutput.structure}
๐ฅ PILLAR #4: FORMAT
{scriptOutput.format}
๐ PILLAR #5: VALUE
{scriptOutput.value}
๐ฏ PILLAR #6: CTA
{scriptOutput.cta}
๐ฌ Complete Scene-by-Scene Script
| # | Voiceover Script | Visual Description | On-Screen Text | AI Image Prompt (Midjourney/Ideogram) | Sound/Audio |
|---|---|---|---|---|---|
| {row.serial} |
{row.voiceover}
|
{row.visual}
|
{row.onScreenText}
|
๐จ
{row.imagePrompt}
|
{row.audio}
|
๐ก
Scroll horizontally to view all columns. Copy AI image prompts directly to Midjourney or Ideogram.
Retention Optimization Tips
-
{scriptOutput.retentionTips.map((tip, i) => (
- โ {tip} ))}
Estimated Length: {scriptOutput.estimatedLength}
โจ Leveraging 1000+ proven viral hooks
๐ Optimized for maximum reach, retention, and conversions
๐ฏ Based on analyzing thousands of viral reels

0 Comments