build me a website where users can generate videos and images, make sure users must have a account, and none subscribing members only get 120 points to generate a video or a image, users with member ship get from 2500 to 10000 points they can use to generate videos or images. if users are not members there images are public for people to see at the home page. users need accounts, members with no member ship get 120 points every 24 hours and if they already have 120 points it will stay like that until they use it or have a membership, this website will be awesome.
31ed7e3 verified Download dashboard.html from ReaperXrvbbet/visionforge-studio: direct link, hf CLI and curl.
- Browser
- Download file 12.4 kB
-
https://huggingface.co/spaces/ReaperXrvbbet/visionforge-studio/resolve/main/dashboard.html
- Command line
-
hf download hf://spaces/ReaperXrvbbet/visionforge-studio/dashboard.html
-
curl -L -o dashboard.html https://huggingface.co/spaces/ReaperXrvbbet/visionforge-studio/resolve/main/dashboard.html
12.4 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Dashboard - VisionForge Studio</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#8B5CF6', | |
| secondary: '#F59E0B' | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-900 text-white"> | |
| <!-- Navigation --> | |
| <nav class="bg-gray-800 border-b border-gray-700"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <a href="index.html" class="flex-shrink-0 flex items-center"> | |
| <i data-feather="video" class="h-8 w-8 text-primary"></i> | |
| <span class="ml-2 text-xl font-bold">VisionForge Studio</span> | |
| </a> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <a href="index.html" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Home</a> | |
| <button onclick="logout()" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Logout</button> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Dashboard Content --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <!-- Points Display --> | |
| <div class="bg-gray-800 rounded-xl p-6 mb-8 border border-gray-700"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h2 class="text-2xl font-bold">Your Creative Power</h2> | |
| <p class="text-gray-400">Points refresh every 24 hours for free members</p> | |
| </div> | |
| <div class="text-right"> | |
| <div id="points-display" class="text-4xl font-bold text-secondary"></div> | |
| <div id="membership-status" class="text-sm text-gray-400"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Generation Tools --> | |
| <div class="grid md:grid-cols-2 gap-8 mb-8"> | |
| <!-- Image Generation --> | |
| <div class="bg-gray-800 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex items-center mb-4"> | |
| <i data-feather="image" class="h-6 w-6 text-green-400 mr-3"></i> | |
| <h3 class="text-xl font-bold">Generate Image</h3> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-300 mb-2">Prompt</label> | |
| <textarea id="image-prompt" | |
| class="w-full h-32 px-3 py-2 border border-gray-600 bg-gray-700 rounded-md placeholder-gray-500 text-white focus:outline-none focus:ring-primary focus:border-primary" | |
| placeholder="Describe the image you want to create..."></textarea> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-300 mb-2">Style</label> | |
| <select class="w-full px-3 py-2 border border-gray-600 bg-gray-700 rounded-md text-white focus:outline-none focus:ring-primary focus:border-primary"> | |
| <option>Realistic</option> | |
| <option>Artistic</option> | |
| <option>Abstract</option> | |
| <option>Minimal</option> | |
| </select> | |
| </div> | |
| <button onclick="generateImage()" | |
| class="w-full bg-green-600 text-white py-3 rounded-lg font-semibold hover:bg-green-700 transition duration-300"> | |
| Generate Image (50 points) | |
| </button> | |
| </div> | |
| <!-- Video Generation --> | |
| <div class="bg-gray-800 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex items-center mb-4"> | |
| <i data-feather="video" class="h-6 w-6 text-blue-400 mr-3"></i> | |
| <h3 class="text-xl font-bold">Generate Video</h3> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-300 mb-2">Prompt</label> | |
| <textarea id="video-prompt" | |
| class="w-full h-32 px-3 py-2 border border-gray-600 bg-gray-700 rounded-md placeholder-gray-500 text-white focus:outline-none focus:ring-primary focus:border-primary" | |
| placeholder="Describe the video you want to create..."></textarea> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-300 mb-2">Duration</label> | |
| <select class="w-full px-3 py-2 border border-gray-600 bg-gray-700 rounded-md text-white focus:outline-none focus:ring-primary focus:border-primary"> | |
| <option>10 seconds</option> | |
| <option>20 seconds</option> | |
| <option>30 seconds</option> | |
| </select> | |
| </div> | |
| <button onclick="generateVideo()" | |
| class="w-full bg-blue-600 text-white py-3 rounded-lg font-semibold hover:bg-blue-700 transition duration-300"> | |
| Generate Video (100 points) | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Upgrade Banner --> | |
| <div id="upgrade-banner" class="bg-gradient-to-r from-primary to-purple-600 rounded-xl p-6 mb-8 border border-purple-500"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h3 class="text-xl font-bold">Unlock Unlimited Creativity!</h3> | |
| <p class="text-purple-200">Get 2500-10000 points and premium features</div> | |
| <button onclick="upgradeMembership()" | |
| class="bg-secondary text-gray-900 px-6 py-3 rounded-lg font-semibold hover:bg-yellow-500 transition duration-300"> | |
| Upgrade Now | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Generated Content --> | |
| <div class="bg-gray-800 rounded-xl p-6 border border-gray-700"> | |
| <h3 class="text-xl font-bold mb-4">Your Creations</h3> | |
| <div id="user-creations" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| feather.replace(); | |
| // Check if user is logged in | |
| const user = JSON.parse(localStorage.getItem('user')); | |
| if (!user) { | |
| window.location.href = 'login.html'; | |
| } | |
| // Update points display | |
| function updatePointsDisplay() { | |
| const pointsDisplay = document.getElementById('points-display'); | |
| const membershipStatus = document.getElementById('membership-status'); | |
| if (user.isPremium) { | |
| pointsDisplay.textContent = user.points; | |
| pointsDisplay.className = 'text-4xl font-bold text-yellow-300'; | |
| membershipStatus.textContent = 'Premium Member'; | |
| } else { | |
| // Check if points need refresh | |
| const lastRefresh = new Date(user.lastRefresh); | |
| const now = new Date(); | |
| const hoursDiff = (now - lastRefresh) / (1000 * 60 * 60); | |
| if (hoursDiff >= 24 && user.points < 120) { | |
| user.points = 120; | |
| user.lastRefresh = now.toISOString(); | |
| localStorage.setItem('user', JSON.stringify(user)); | |
| } | |
| pointsDisplay.textContent = user.points; | |
| membershipStatus.textContent = 'Free Member - Next refresh in 24h'; | |
| } | |
| // Generate image function | |
| function generateImage() { | |
| const prompt = document.getElementById('image-prompt').value; | |
| if (!prompt) { | |
| alert('Please enter a prompt!'); | |
| return; | |
| } | |
| if (user.points < 50) { | |
| alert('Not enough points! Free members get 120 points every 24 hours.'); | |
| return; | |
| } | |
| user.points -= 50; | |
| localStorage.setItem('user', JSON.stringify(user)); | |
| updatePointsDisplay(); | |
| // Simulate image generation | |
| alert(`Generating image: "${prompt}"\n50 points deducted. Remaining: ${user.points}`); | |
| // Add to user creations | |
| const userCreations = document.getElementById('user-creations'); | |
| const creationId = Date.now(); | |
| const creation = ` | |
| <div class="bg-gray-700 rounded-lg overflow-hidden" id="creation-${creationId}"> | |
| <img src="http://static.photos/abstract/320x240/${creationId}" | |
| alt="Generated Image" | |
| class="w-full h-32 object-cover"> | |
| <div class="p-3"> | |
| <p class="text-sm text-gray-300 truncate">${prompt}</p> | |
| <p class="text-xs text-gray-500">Image - 50 points</p> | |
| </div> | |
| </div> | |
| `; | |
| userCreations.innerHTML += creation; | |
| } | |
| // Generate video function | |
| function generateVideo() { | |
| const prompt = document.getElementById('video-prompt').value; | |
| if (!prompt) { | |
| alert('Please enter a prompt!'); | |
| return; | |
| } | |
| if (user.points < 100) { | |
| alert('Not enough points! Free members get 120 points every 24 hours.'); | |
| return; | |
| } | |
| user.points -= 100; | |
| localStorage.setItem('user', JSON.stringify(user)); | |
| updatePointsDisplay(); | |
| // Simulate video generation | |
| alert(`Generating video: "${prompt}"\n100 points deducted. Remaining: ${user.points}`); | |
| // Add to user creations | |
| const userCreations = document.getElementById('user-creations'); | |
| const creationId = Date.now(); | |
| const creation = ` | |
| <div class="bg-gray-700 rounded-lg overflow-hidden" id="creation-${creationId}"> | |
| <div class="w-full h-32 bg-gradient-to-r from-blue-600 to-purple-600 flex items-center justify-center"> | |
| <i data-feather="play" class="h-8 w-8 text-white"></i> | |
| </div> | |
| <div class="p-3"> | |
| <p class="text-sm text-gray-300 truncate">${prompt}</p> | |
| <p class="text-xs text-gray-500">Video - 100 points</p> | |
| </div> | |
| </div> | |
| `; | |
| userCreations.innerHTML += creation; | |
| } | |
| // Upgrade membership | |
| function upgradeMembership() { | |
| const points = Math.floor(Math.random() * (10000 - 2500 + 1)) + 2500; | |
| user.points = points; | |
| user.isPremium = true; | |
| localStorage.setItem('user', JSON.stringify(user)); | |
| updatePointsDisplay(); | |
| alert(`Congratulations! You're now a Premium Member with ${points} points!`); | |
| } | |
| // Logout function | |
| function logout() { | |
| localStorage.removeItem('user'); | |
| window.location.href = 'index.html'; | |
| } | |
| // Initialize dashboard | |
| updatePointsDisplay(); | |
| // Hide upgrade banner for premium users | |
| if (user.isPremium) { | |
| document.getElementById('upgrade-banner').style.display = 'none'; | |
| } | |
| </script> | |
| </body> | |
| </html> |