Spaces:
Running
Running
When I clicked the translate button, nothing was translated on the site. Please improve this error. - Initial Deployment
eda2738 verified Download index.html from betermaherbb/sparks: direct link, hf CLI and curl.
- Browser
- Download file 40.2 kB
-
https://huggingface.co/spaces/betermaherbb/sparks/resolve/main/index.html
- Command line
-
hf download hf://spaces/betermaherbb/sparks/index.html
-
curl -L -o index.html https://huggingface.co/spaces/betermaherbb/sparks/resolve/main/index.html
40.2 kB
| <html lang="en" dir="ltr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ViralSpark - AI-Powered Video Ideas</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <script> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#8B5CF6', | |
| secondary: '#EC4899', | |
| dark: '#1F2937', | |
| darker: '#111827' | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| transition: background-color 0.3s, color 0.3s; | |
| } | |
| .rtl { | |
| direction: rtl; | |
| } | |
| .floating-notification { | |
| animation: floatUp 0.5s ease-out, fadeOut 0.5s 2.5s forwards; | |
| } | |
| @keyframes floatUp { | |
| from { transform: translateY(100px); opacity: 0; } | |
| to { transform: translateY(0); opacity: 1; } | |
| } | |
| @keyframes fadeOut { | |
| from { opacity: 1; } | |
| to { opacity: 0; visibility: hidden; } | |
| } | |
| .idea-card { | |
| transition: transform 0.3s, box-shadow 0.3s; | |
| } | |
| .idea-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-in; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| .loading-dots { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .loading-dots span { | |
| width: 8px; | |
| height: 8px; | |
| margin: 0 3px; | |
| background-color: currentColor; | |
| border-radius: 50%; | |
| display: inline-block; | |
| animation: bounce 1.5s infinite ease-in-out both; | |
| } | |
| .loading-dots span:nth-child(1) { | |
| animation-delay: -0.32s; | |
| } | |
| .loading-dots span:nth-child(2) { | |
| animation-delay: -0.16s; | |
| } | |
| @keyframes bounce { | |
| 0%, 80%, 100% { transform: scale(0); } | |
| 40% { transform: scale(1); } | |
| } | |
| .tab-active { | |
| position: relative; | |
| } | |
| .tab-active::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -1px; | |
| left: 0; | |
| right: 0; | |
| height: 3px; | |
| background-color: #8B5CF6; | |
| border-radius: 3px; | |
| } | |
| .content-section { | |
| transition: max-height 0.3s ease-out; | |
| overflow: hidden; | |
| } | |
| .content-section.collapsed { | |
| max-height: 0; | |
| } | |
| .content-section.expanded { | |
| max-height: 1000px; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 text-gray-800 dark:bg-darker dark:text-gray-200"> | |
| <!-- Language toggle notification --> | |
| <div id="langNotification" class="floating-notification fixed bottom-4 right-4 bg-primary text-white px-4 py-3 rounded-lg shadow-lg z-50 hidden"> | |
| <span id="notificationText">Language changed successfully!</span> | |
| </div> | |
| <!-- AI Notification --> | |
| <div id="aiNotification" class="floating-notification fixed bottom-4 left-4 bg-secondary text-white px-4 py-3 rounded-lg shadow-lg z-50 hidden"> | |
| <i class="fas fa-robot mr-2"></i> This site is powered by advanced AI technology! | |
| </div> | |
| <!-- Header --> | |
| <header class="bg-white dark:bg-dark shadow-sm sticky top-0 z-30"> | |
| <div class="container mx-auto px-4 py-3 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="bg-gradient-to-r from-primary to-secondary w-10 h-10 rounded-lg flex items-center justify-center"> | |
| <i class="fas fa-bolt text-white text-xl"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold ml-3 bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent">ViralSpark</h1> | |
| </div> | |
| <div class="flex items-center space-x-3"> | |
| <button id="darkModeToggle" class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700"> | |
| <i class="fas fa-moon dark:hidden"></i> | |
| <i class="fas fa-sun hidden dark:block"></i> | |
| </button> | |
| <button id="langToggle" class="px-4 py-2 bg-gray-100 dark:bg-gray-700 rounded-lg flex items-center"> | |
| <i class="fas fa-language mr-2"></i> | |
| <span id="langText">EN</span> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 py-8"> | |
| <!-- Hero Section --> | |
| <section class="text-center mb-12"> | |
| <h2 class="text-4xl font-bold mb-4">Generate Viral Video Ideas in Seconds</h2> | |
| <p class="text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto"> | |
| Powered by advanced AI, ViralSpark creates engaging content ideas tailored for TikTok, YouTube Shorts, Instagram Reels and more! | |
| </p> | |
| </section> | |
| <!-- Tab Navigation --> | |
| <div class="flex border-b border-gray-200 dark:border-gray-700 mb-8"> | |
| <button id="generateTab" class="tab-active px-6 py-3 font-medium text-primary">Generate</button> | |
| <button id="historyTab" class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400 hover:text-primary">History</button> | |
| <button id="settingsTab" class="px-6 py-3 font-medium text-gray-500 dark:text-gray-400 hover:text-primary">Settings</button> | |
| </div> | |
| <!-- Generate Tab Content --> | |
| <div id="generateContent" class="fade-in"> | |
| <div class="bg-white dark:bg-dark rounded-xl shadow-lg p-6 mb-8"> | |
| <h3 class="text-xl font-semibold mb-4">Tell us about your content</h3> | |
| <form id="ideaForm"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-6"> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Platform</label> | |
| <select class="w-full px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-primary focus:border-primary"> | |
| <option>TikTok</option> | |
| <option>YouTube Shorts</option> | |
| <option>Instagram Reels</option> | |
| <option>Facebook Shorts</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Content Niche</label> | |
| <select class="w-full px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-primary focus:border-primary"> | |
| <option>Cooking</option> | |
| <option>Fitness</option> | |
| <option>Tech</option> | |
| <option>Beauty</option> | |
| <option>Gaming</option> | |
| <option>Travel</option> | |
| <option>Motivation</option> | |
| <option>Comedy</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Tone</label> | |
| <select class="w-full px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-primary focus:border-primary"> | |
| <option>Funny</option> | |
| <option>Serious</option> | |
| <option>Dramatic</option> | |
| <option>Educational</option> | |
| <option>Inspirational</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Target Audience</label> | |
| <select class="w-full px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-primary focus:border-primary"> | |
| <option>Gen Z</option> | |
| <option>Millennials</option> | |
| <option>Professionals</option> | |
| <option>Parents</option> | |
| <option>Teens</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Language</label> | |
| <select class="w-full px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-primary focus:border-primary"> | |
| <option>English</option> | |
| <option>Spanish</option> | |
| <option>French</option> | |
| <option>Arabic</option> | |
| <option>German</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Video Length</label> | |
| <select class="w-full px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-primary focus:border-primary"> | |
| <option>15-30 seconds</option> | |
| <option>30-60 seconds</option> | |
| <option>1-2 minutes</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-sm font-medium mb-2">Additional Context (Optional)</label> | |
| <textarea class="w-full px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-primary focus:border-primary" rows="3" placeholder="e.g. I want a video about vegan recipes for beginners..."></textarea> | |
| </div> | |
| <div class="flex justify-center"> | |
| <button type="submit" class="px-8 py-3 bg-gradient-to-r from-primary to-secondary text-white font-medium rounded-lg hover:opacity-90 transition-all flex items-center"> | |
| <i class="fas fa-bolt mr-2"></i> | |
| Generate Idea | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| <!-- Loading State --> | |
| <div id="loadingState" class="hidden flex-col items-center justify-center mb-8"> | |
| <div class="loading-dots text-primary text-2xl mb-4"> | |
| <span></span> | |
| <span></span> | |
| <span></span> | |
| </div> | |
| <p class="text-lg">Generating your viral video idea...</p> | |
| </div> | |
| <!-- Results Section --> | |
| <div id="resultsSection" class="hidden"> | |
| <div class="bg-gradient-to-br from-primary/10 to-secondary/10 dark:from-primary/20 dark:to-secondary/20 rounded-xl p-1 mb-8"> | |
| <div class="bg-white dark:bg-dark rounded-xl p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h3 class="text-2xl font-bold">Your Viral Video Idea</h3> | |
| <div class="flex space-x-2"> | |
| <button class="px-4 py-2 bg-gray-100 dark:bg-gray-700 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600"> | |
| <i class="fas fa-redo mr-2"></i>Regenerate | |
| </button> | |
| <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90"> | |
| <i class="fas fa-save mr-2"></i>Save | |
| </button> | |
| </div> | |
| </div> | |
| <div class="space-y-6"> | |
| <div class="content-section expanded"> | |
| <div class="flex justify-between items-center cursor-pointer mb-2"> | |
| <h4 class="text-lg font-semibold">Title</h4> | |
| <i class="fas fa-chevron-up"></i> | |
| </div> | |
| <p class="text-xl font-bold text-primary">Why My Pasta Hates Me 🍝😭 #CookingFails</p> | |
| </div> | |
| <div class="content-section expanded"> | |
| <div class="flex justify-between items-center cursor-pointer mb-2"> | |
| <h4 class="text-lg font-semibold">Description & Hashtags</h4> | |
| <i class="fas fa-chevron-up"></i> | |
| </div> | |
| <p>Ever tried cooking pasta and ended up with a gluey mess? Watch me fail spectacularly and learn what NOT to do! 😂</p> | |
| <div class="mt-2 flex flex-wrap gap-2"> | |
| <span class="px-3 py-1 bg-gray-100 dark:bg-gray-800 rounded-full text-sm">#TikTokCooking</span> | |
| <span class="px-3 py-1 bg-gray-100 dark:bg-gray-800 rounded-full text-sm">#LearnToCook</span> | |
| <span class="px-3 py-1 bg-gray-100 dark:bg-gray-800 rounded-full text-sm">#GenZFails</span> | |
| <span class="px-3 py-1 bg-gray-100 dark:bg-gray-800 rounded-full text-sm">#CookingFails</span> | |
| </div> | |
| </div> | |
| <div class="content-section expanded"> | |
| <div class="flex justify-between items-center cursor-pointer mb-2"> | |
| <h4 class="text-lg font-semibold">Script</h4> | |
| <i class="fas fa-chevron-up"></i> | |
| </div> | |
| <div class="bg-gray-50 dark:bg-gray-800 rounded-lg p-4"> | |
| <p class="mb-2"><strong>Scene:</strong> Kitchen chaos, flour on face</p> | |
| <p class="mb-2"><strong>Creator:</strong> Hey TikTok, today I'm making pasta... or at least trying to!</p> | |
| <p class="mb-2"><em>(Drops pot, exaggerated scream)</em></p> | |
| <p class="mb-2"><strong>Creator:</strong> Step 1: Boil water. Sounds easy, right? WRONG.</p> | |
| <p><em>(Cut to overboiled pasta sticking to pan)</em></p> | |
| <p class="mt-2"><strong>Creator:</strong> Send help! 😭</p> | |
| </div> | |
| </div> | |
| <div class="content-section expanded"> | |
| <div class="flex justify-between items-center cursor-pointer mb-2"> | |
| <h4 class="text-lg font-semibold">Thumbnail Idea</h4> | |
| <i class="fas fa-chevron-up"></i> | |
| </div> | |
| <div class="flex flex-col md:flex-row gap-6"> | |
| <div class="flex-1"> | |
| <p>Creator with a confused face, holding a pot of sticky pasta, bright red text: "COOKING GONE WRONG!"</p> | |
| </div> | |
| <div class="flex-1"> | |
| <div class="bg-gray-200 dark:bg-gray-700 border-2 border-dashed rounded-xl w-full h-48 flex items-center justify-center"> | |
| <span class="text-gray-500">AI-Generated Thumbnail Preview</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="text-center"> | |
| <button class="px-6 py-3 bg-gradient-to-r from-primary to-secondary text-white rounded-lg font-medium hover:opacity-90"> | |
| <i class="fas fa-share-alt mr-2"></i>Share Idea | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- History Tab Content --> | |
| <div id="historyContent" class="hidden fade-in"> | |
| <div class="mb-6 flex justify-between items-center"> | |
| <h3 class="text-xl font-semibold">Your Saved Ideas</h3> | |
| <div class="flex space-x-2"> | |
| <input type="text" placeholder="Search ideas..." class="px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg"> | |
| <button class="px-4 py-2 bg-gray-100 dark:bg-gray-700 rounded-lg"> | |
| <i class="fas fa-filter"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Idea Card 1 --> | |
| <div class="idea-card bg-white dark:bg-dark rounded-xl shadow-lg overflow-hidden"> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <div> | |
| <span class="inline-block px-2 py-1 bg-primary/10 text-primary text-xs rounded">TikTok</span> | |
| <span class="inline-block px-2 py-1 bg-secondary/10 text-secondary text-xs rounded ml-2">Cooking</span> | |
| </div> | |
| <button class="text-gray-400 hover:text-primary"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| <h4 class="font-bold text-lg mb-2">Why My Pasta Hates Me 🍝😭</h4> | |
| <p class="text-gray-600 dark:text-gray-400 text-sm mb-4">Ever tried cooking pasta and ended up with a gluey mess? Watch me fail spectacularly...</p> | |
| <div class="flex justify-between text-sm"> | |
| <span class="text-gray-500">2 days ago</span> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-500 hover:text-primary"> | |
| <i class="fas fa-share"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-red-500"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Idea Card 2 --> | |
| <div class="idea-card bg-white dark:bg-dark rounded-xl shadow-lg overflow-hidden"> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <div> | |
| <span class="inline-block px-2 py-1 bg-primary/10 text-primary text-xs rounded">YouTube</span> | |
| <span class="inline-block px-2 py-1 bg-secondary/10 text-secondary text-xs rounded ml-2">Tech</span> | |
| </div> | |
| <button class="text-gray-400 hover:text-primary"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| <h4 class="font-bold text-lg mb-2">5 Phone Hacks You NEED to Know! 📱</h4> | |
| <p class="text-gray-600 dark:text-gray-400 text-sm mb-4">Unlock hidden features on your smartphone with these simple tricks...</p> | |
| <div class="flex justify-between text-sm"> | |
| <span class="text-gray-500">1 week ago</span> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-500 hover:text-primary"> | |
| <i class="fas fa-share"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-red-500"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Idea Card 3 --> | |
| <div class="idea-card bg-white dark:bg-dark rounded-xl shadow-lg overflow-hidden"> | |
| <div class="p-5"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <div> | |
| <span class="inline-block px-2 py-1 bg-primary/10 text-primary text-xs rounded">Instagram</span> | |
| <span class="inline-block px-2 py-1 bg-secondary/10 text-secondary text-xs rounded ml-2">Fitness</span> | |
| </div> | |
| <button class="text-gray-400 hover:text-primary"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| <h4 class="font-bold text-lg mb-2">Morning Routine for Energy Boost! ☀️</h4> | |
| <p class="text-gray-600 dark:text-gray-400 text-sm mb-4">Start your day right with these 5 simple exercises that will energize you...</p> | |
| <div class="flex justify-between text-sm"> | |
| <span class="text-gray-500">3 weeks ago</span> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-500 hover:text-primary"> | |
| <i class="fas fa-share"></i> | |
| </button> | |
| <button class="text-gray-500 hover:text-red-500"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="text-center mt-8"> | |
| <button class="px-6 py-3 bg-gray-100 dark:bg-gray-800 rounded-lg font-medium hover:bg-gray-200 dark:hover:bg-gray-700"> | |
| Load More Ideas | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Settings Tab Content --> | |
| <div id="settingsContent" class="hidden fade-in"> | |
| <div class="bg-white dark:bg-dark rounded-xl shadow-lg p-6 mb-8"> | |
| <h3 class="text-xl font-semibold mb-6">Settings</h3> | |
| <div class="space-y-6"> | |
| <div> | |
| <h4 class="font-medium mb-3">Account Settings</h4> | |
| <div class="space-y-4"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium">Email Notifications</p> | |
| <p class="text-sm text-gray-500 dark:text-gray-400">Receive updates about new features</p> | |
| </div> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" class="sr-only peer" checked> | |
| <div class="w-11 h-6 bg-gray-200 peer-focus:ring-4 peer-focus:ring-primary/30 dark:peer-focus:ring-primary/50 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-primary"></div> | |
| </label> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="font-medium">Push Notifications</p> | |
| <p class="text-sm text-gray-500 dark:text-gray-400">Get alerts for new ideas</p> | |
| </div> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" class="sr-only peer" checked> | |
| <div class="w-11 h-6 bg-gray-200 peer-focus:ring-4 peer-focus:ring-primary/30 dark:peer-focus:ring-primary/50 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-primary"></div> | |
| </label> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="font-medium mb-3">AI Preferences</h4> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Default AI Model</label> | |
| <select class="w-full px-4 py-2 bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-primary focus:border-primary"> | |
| <option>SuperGrok (Recommended)</option> | |
| <option>GPT-4</option> | |
| <option>Claude 2</option> | |
| <option>LLaMA 2</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Creativity Level</label> | |
| <input type="range" min="0" max="100" value="75" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"> | |
| <div class="flex justify-between text-xs text-gray-500 dark:text-gray-400"> | |
| <span>More Predictable</span> | |
| <span>Balanced</span> | |
| <span>More Creative</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="font-medium mb-3">Danger Zone</h4> | |
| <div class="space-y-4"> | |
| <button class="w-full px-4 py-2 bg-red-500/10 text-red-500 rounded-lg hover:bg-red-500/20 flex items-center justify-center"> | |
| <i class="fas fa-trash mr-2"></i>Delete All Saved Ideas | |
| </button> | |
| <button class="w-full px-4 py-2 bg-red-500 text-white rounded-lg hover:bg-red-600 flex items-center justify-center"> | |
| <i class="fas fa-user-slash mr-2"></i>Delete Account | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-white dark:bg-dark border-t border-gray-200 dark:border-gray-700 mt-12"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <div class="flex items-center mb-4"> | |
| <div class="bg-gradient-to-r from-primary to-secondary w-8 h-8 rounded-lg flex items-center justify-center"> | |
| <i class="fas fa-bolt text-white"></i> | |
| </div> | |
| <h3 class="text-xl font-bold ml-2">ViralSpark</h3> | |
| </div> | |
| <p class="text-gray-600 dark:text-gray-400 mb-4">AI-powered video ideas for content creators.</p> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-gray-500 hover:text-primary"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-gray-500 hover:text-primary"><i class="fab fa-instagram"></i></a> | |
| <a href="#" class="text-gray-500 hover:text-primary"><i class="fab fa-tiktok"></i></a> | |
| <a href="#" class="text-gray-500 hover:text-primary"><i class="fab fa-youtube"></i></a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">Features</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Idea Generator</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Content Templates</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Trend Analysis</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Performance Predictor</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">Resources</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Blog</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Tutorials</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Documentation</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">API</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">Legal</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Privacy Policy</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Terms of Service</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">Cookie Policy</a></li> | |
| <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-primary">GDPR</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-200 dark:border-gray-700 mt-8 pt-6 text-center text-gray-600 dark:text-gray-400"> | |
| <p>© 2023 ViralSpark. All rights reserved. Powered by advanced AI technology.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // DOM Elements | |
| const darkModeToggle = document.getElementById('darkModeToggle'); | |
| const langToggle = document.getElementById('langToggle'); | |
| const langText = document.getElementById('langText'); | |
| const langNotification = document.getElementById('langNotification'); | |
| const notificationText = document.getElementById('notificationText'); | |
| const aiNotification = document.getElementById('aiNotification'); | |
| const generateTab = document.getElementById('generateTab'); | |
| const historyTab = document.getElementById('historyTab'); | |
| const settingsTab = document.getElementById('settingsTab'); | |
| const generateContent = document.getElementById('generateContent'); | |
| const historyContent = document.getElementById('historyContent'); | |
| const settingsContent = document.getElementById('settingsContent'); | |
| const ideaForm = document.getElementById('ideaForm'); | |
| const loadingState = document.getElementById('loadingState'); | |
| const resultsSection = document.getElementById('resultsSection'); | |
| const contentSections = document.querySelectorAll('.content-section'); | |
| // Dark Mode Toggle | |
| darkModeToggle.addEventListener('click', () => { | |
| document.documentElement.classList.toggle('dark'); | |
| localStorage.setItem('darkMode', document.documentElement.classList.contains('dark') ? 'enabled' : 'disabled'); | |
| }); | |
| // Check for saved dark mode preference | |
| if (localStorage.getItem('darkMode') === 'enabled') { | |
| document.documentElement.classList.add('dark'); | |
| } | |
| // Language Toggle | |
| let isArabic = false; | |
| langToggle.addEventListener('click', () => { | |
| isArabic = !isArabic; | |
| // Update UI for language change | |
| langText.textContent = isArabic ? 'AR' : 'EN'; | |
| document.documentElement.setAttribute('dir', isArabic ? 'rtl' : 'ltr'); | |
| document.documentElement.setAttribute('lang', isArabic ? 'ar' : 'en'); | |
| // Show notification | |
| notificationText.textContent = isArabic ? | |
| 'تم تغيير اللغة إلى العربية بنجاح!' : | |
| 'Language changed to English successfully!'; | |
| langNotification.classList.remove('hidden'); | |
| // Hide after delay | |
| setTimeout(() => { | |
| langNotification.classList.add('hidden'); | |
| }, 3000); | |
| }); | |
| // Show AI notification on page load | |
| setTimeout(() => { | |
| aiNotification.classList.remove('hidden'); | |
| setTimeout(() => { | |
| aiNotification.classList.add('hidden'); | |
| }, 3000); | |
| }, 2000); | |
| // Tab Navigation | |
| function activateTab(tab) { | |
| // Reset all tabs | |
| generateTab.classList.remove('tab-active', 'text-primary'); | |
| historyTab.classList.remove('tab-active', 'text-primary'); | |
| settingsTab.classList.remove('tab-active', 'text-primary'); | |
| generateTab.classList.add('text-gray-500', 'dark:text-gray-400'); | |
| historyTab.classList.add('text-gray-500', 'dark:text-gray-400'); | |
| settingsTab.classList.add('text-gray-500', 'dark:text-gray-400'); | |
| // Hide all content | |
| generateContent.classList.add('hidden'); | |
| historyContent.classList.add('hidden'); | |
| settingsContent.classList.add('hidden'); | |
| // Activate selected tab | |
| tab.classList.add('tab-active', 'text-primary'); | |
| tab.classList.remove('text-gray-500', 'dark:text-gray-400'); | |
| // Show corresponding content | |
| if (tab === generateTab) { | |
| generateContent.classList.remove('hidden'); | |
| } else if (tab === historyTab) { | |
| historyContent.classList.remove('hidden'); | |
| } else if (tab === settingsTab) { | |
| settingsContent.classList.remove('hidden'); | |
| } | |
| } | |
| generateTab.addEventListener('click', () => activateTab(generateTab)); | |
| historyTab.addEventListener('click', () => activateTab(historyTab)); | |
| settingsTab.addEventListener('click', () => activateTab(settingsTab)); | |
| // Form Submission | |
| ideaForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| // Show loading state | |
| loadingState.classList.remove('hidden'); | |
| // Hide results if visible | |
| resultsSection.classList.add('hidden'); | |
| // Simulate API call delay | |
| setTimeout(() => { | |
| loadingState.classList.add('hidden'); | |
| resultsSection.classList.remove('hidden'); | |
| // Scroll to results | |
| resultsSection.scrollIntoView({ behavior: 'smooth' }); | |
| }, 2000); | |
| }); | |
| // Collapsible sections | |
| contentSections.forEach(section => { | |
| const header = section.querySelector('.cursor-pointer'); | |
| const icon = section.querySelector('i'); | |
| header.addEventListener('click', () => { | |
| section.classList.toggle('expanded'); | |
| section.classList.toggle('collapsed'); | |
| // Toggle icon | |
| if (section.classList.contains('expanded')) { | |
| icon.classList.remove('fa-chevron-down'); | |
| icon.classList.add('fa-chevron-up'); | |
| } else { | |
| icon.classList.remove('fa-chevron-up'); | |
| icon.classList.add('fa-chevron-down'); | |
| } | |
| }); | |
| }); | |
| // Initialize tooltips | |
| document.querySelectorAll('.idea-card').forEach(card => { | |
| card.addEventListener('click', () => { | |
| // In a real app, this would navigate to the idea detail view | |
| activateTab(generateTab); | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=betermaherbb/sparks" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |