test / index.html
sagelii's picture
still charater, history, pricing page not build - Follow Up Deployment
7541246 verified
Raw History Blame Contribute Delete
46.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Fantasy Generator | 18+ Only</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">
<style>
.age-gate {
backdrop-filter: blur(10px);
}
.prompt-textarea {
min-height: 100px;
resize: none;
}
.extension-chip {
transition: all 0.2s ease;
}
.extension-chip:hover {
transform: translateY(-2px);
}
.result-card {
transition: all 0.3s ease;
}
.result-card:hover {
transform: scale(1.02);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.loading-pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
</style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
<!-- Age Verification Modal -->
<div id="ageGate" class="fixed inset-0 z-50 flex items-center justify-center age-gate bg-black bg-opacity-90">
<div class="bg-gray-800 rounded-xl p-8 max-w-md w-full mx-4">
<div class="text-center mb-6">
<h2 class="text-2xl font-bold text-pink-500 mb-2">Age Verification</h2>
<p class="text-gray-300">This website contains adult content and is only suitable for those who are 18 years or older.</p>
</div>
<div class="mb-6">
<label class="flex items-center">
<input type="checkbox" id="ageConfirm" class="form-checkbox h-5 w-5 text-pink-500">
<span class="ml-2 text-gray-300">I confirm that I am at least 18 years old</span>
</label>
<label class="flex items-center mt-3">
<input type="checkbox" id="termsConfirm" class="form-checkbox h-5 w-5 text-pink-500">
<span class="ml-2 text-gray-300">I accept the <a href="#" class="text-pink-400 hover:underline">Terms of Service</a></span>
</label>
</div>
<div class="flex flex-col space-y-3">
<button id="verifyBtn" class="bg-pink-600 hover:bg-pink-700 text-white font-bold py-3 px-4 rounded-lg transition">
Enter Site
</button>
<button id="exitBtn" class="bg-gray-700 hover:bg-gray-600 text-white py-3 px-4 rounded-lg transition">
Exit
</button>
</div>
</div>
</div>
<!-- Main App (hidden until age verification) -->
<div id="mainApp" class="hidden">
<!-- Header -->
<header class="bg-gray-800 border-b border-gray-700 sticky top-0 z-40">
<div class="container mx-auto px-4 py-3 flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 bg-pink-500 rounded-full"></div>
<h1 class="text-xl font-bold">FantasyAI</h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="index.html" class="text-pink-400 font-medium">Create</a>
<a href="#characters" class="text-gray-300 hover:text-pink-400">Characters</a>
<a href="#history" class="text-gray-300 hover:text-pink-400">History</a>
<a href="#pricing" class="text-gray-300 hover:text-pink-400">Pricing</a>
</nav>
<div class="flex items-center space-x-4">
<div class="hidden md:flex items-center space-x-2 bg-gray-700 px-3 py-1 rounded-full">
<span class="text-sm">Credits:</span>
<span class="font-bold text-pink-400">150</span>
</div>
<div class="w-8 h-8 rounded-full bg-gray-600 flex items-center justify-center cursor-pointer">
<i class="fas fa-user text-sm"></i>
</div>
<button class="md:hidden text-gray-300">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
<!-- Left Sidebar - Generation Controls -->
<div class="lg:col-span-1 bg-gray-800 rounded-xl p-6 h-fit sticky top-24">
<h2 class="text-xl font-bold mb-6">Create Fantasy</h2>
<!-- Model Selection -->
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Model Style</label>
<div class="grid grid-cols-2 gap-2">
<button class="model-btn active bg-pink-600 text-white py-2 px-4 rounded-lg" data-model="realistic">
Realistic
</button>
<button class="model-btn bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg" data-model="anime">
Anime
</button>
</div>
</div>
<!-- Media Type -->
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Media Type</label>
<div class="grid grid-cols-2 gap-2">
<button class="media-btn active bg-pink-600 text-white py-2 px-4 rounded-lg" data-type="image">
Image
</button>
<button class="media-btn bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg" data-type="video">
Video
</button>
</div>
</div>
<!-- Video Length (hidden by default) -->
<div id="videoLengthGroup" class="mb-6 hidden">
<label class="block text-sm font-medium mb-2">Video Length</label>
<div class="grid grid-cols-3 gap-2">
<button class="length-btn bg-pink-600 text-white py-2 px-4 rounded-lg" data-length="3">
3s
</button>
<button class="length-btn bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg" data-length="6">
6s
</button>
<button class="length-btn bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg" data-length="10">
10s
</button>
</div>
</div>
<!-- Aspect Ratio -->
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Aspect Ratio</label>
<div class="grid grid-cols-3 gap-2">
<button class="aspect-btn active bg-pink-600 text-white py-2 px-4 rounded-lg" data-ratio="1:1">
1:1
</button>
<button class="aspect-btn bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg" data-ratio="3:4">
3:4
</button>
<button class="aspect-btn bg-gray-700 hover:bg-gray-600 text-white py-2 px-4 rounded-lg" data-ratio="9:16">
9:16
</button>
</div>
</div>
<!-- Prompt Input -->
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Prompt</label>
<textarea
id="promptInput"
class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-3 prompt-textarea focus:ring-2 focus:ring-pink-500 focus:border-transparent"
placeholder="Describe your fantasy in detail..."
></textarea>
</div>
<!-- Negative Prompt -->
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Negative Prompt</label>
<textarea
id="negativePrompt"
class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-3 prompt-textarea focus:ring-2 focus:ring-pink-500 focus:border-transparent"
placeholder="Things you don't want to see..."
></textarea>
</div>
<!-- Advanced Options -->
<div class="mb-6">
<div class="flex items-center justify-between cursor-pointer" id="advancedToggle">
<label class="block text-sm font-medium">Advanced Options</label>
<i class="fas fa-chevron-down text-xs"></i>
</div>
<div id="advancedOptions" class="mt-3 hidden space-y-4">
<!-- CFG Scale -->
<div>
<label class="block text-xs font-medium mb-1">CFG Scale (7)</label>
<input type="range" min="1" max="20" value="7" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer">
</div>
<!-- Steps -->
<div>
<label class="block text-xs font-medium mb-1">Steps (28)</label>
<input type="range" min="10" max="50" value="28" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer">
</div>
<!-- Seed -->
<div>
<label class="block text-xs font-medium mb-1">Seed</label>
<div class="flex space-x-2">
<input type="number" id="seedInput" class="w-full bg-gray-700 border border-gray-600 rounded-lg px-3 py-2 text-sm" placeholder="Random">
<button class="bg-gray-600 hover:bg-gray-500 px-3 rounded-lg">
<i class="fas fa-dice"></i>
</button>
</div>
</div>
</div>
</div>
<!-- Generate Button -->
<button id="generateBtn" class="w-full bg-gradient-to-r from-pink-500 to-purple-600 hover:from-pink-600 hover:to-purple-700 text-white font-bold py-3 px-4 rounded-lg transition flex items-center justify-center space-x-2">
<i class="fas fa-magic"></i>
<span>Generate (6 credits)</span>
</button>
</div>
<!-- Main Content Area -->
<div class="lg:col-span-3 space-y-8">
<!-- Characters Section -->
<div id="characters" class="hidden bg-gray-800 rounded-xl p-6">
<h2 class="text-xl font-bold mb-6">Your Characters</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4">
<!-- Character cards will be loaded here -->
<div class="text-center text-gray-400 py-8 col-span-full">
<i class="fas fa-users text-4xl mb-2"></i>
<p>No characters created yet</p>
</div>
</div>
</div>
<!-- History Section -->
<div id="history" class="hidden bg-gray-800 rounded-xl p-6">
<h2 class="text-xl font-bold mb-6">Generation History</h2>
<div class="space-y-4">
<!-- History items will be loaded here -->
<div class="text-center text-gray-400 py-8">
<i class="fas fa-history text-4xl mb-2"></i>
<p>No generation history yet</p>
</div>
</div>
</div>
<!-- Pricing Section -->
<div id="pricing" class="hidden bg-gray-800 rounded-xl p-6">
<h2 class="text-xl font-bold mb-6">Pricing Plans</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-gray-700 rounded-xl p-6">
<h3 class="font-bold text-lg mb-2">Basic</h3>
<p class="text-pink-400 text-2xl font-bold mb-4">$9.99<span class="text-gray-400 text-sm">/month</span></p>
<ul class="space-y-2 text-sm text-gray-300">
<li><i class="fas fa-check text-pink-400 mr-2"></i> 100 credits/month</li>
<li><i class="fas fa-check text-pink-400 mr-2"></i> Standard generation</li>
<li><i class="fas fa-times text-gray-500 mr-2"></i> No video generation</li>
</ul>
<button class="w-full mt-6 bg-pink-600 hover:bg-pink-700 text-white py-2 px-4 rounded-lg">Subscribe</button>
</div>
<div class="bg-gray-700 rounded-xl p-6 border-2 border-pink-500">
<div class="absolute top-0 right-0 bg-pink-500 text-white text-xs font-bold px-2 py-1 rounded-bl-lg">POPULAR</div>
<h3 class="font-bold text-lg mb-2">Pro</h3>
<p class="text-pink-400 text-2xl font-bold mb-4">$19.99<span class="text-gray-400 text-sm">/month</span></p>
<ul class="space-y-2 text-sm text-gray-300">
<li><i class="fas fa-check text-pink-400 mr-2"></i> 300 credits/month</li>
<li><i class="fas fa-check text-pink-400 mr-2"></i> Priority generation</li>
<li><i class="fas fa-check text-pink-400 mr-2"></i> Video generation</li>
</ul>
<button class="w-full mt-6 bg-pink-600 hover:bg-pink-700 text-white py-2 px-4 rounded-lg">Subscribe</button>
</div>
<div class="bg-gray-700 rounded-xl p-6">
<h3 class="font-bold text-lg mb-2">Ultimate</h3>
<p class="text-pink-400 text-2xl font-bold mb-4">$29.99<span class="text-gray-400 text-sm">/month</span></p>
<ul class="space-y-2 text-sm text-gray-300">
<li><i class="fas fa-check text-pink-400 mr-2"></i> 1000 credits/month</li>
<li><i class="fas fa-check text-pink-400 mr-2"></i> Highest priority</li>
<li><i class="fas fa-check text-pink-400 mr-2"></i> All features</li>
</ul>
<button class="w-full mt-6 bg-pink-600 hover:bg-pink-700 text-white py-2 px-4 rounded-lg">Subscribe</button>
</div>
</div>
</div>
<!-- Extensions Panel -->
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-bold">Extensions</h3>
<span class="text-sm text-gray-400">Max 8 extensions</span>
</div>
<!-- Selected Extensions Chips -->
<div id="selectedExtensions" class="flex flex-wrap gap-2 mb-4">
<!-- Chips will be added here dynamically -->
</div>
<!-- Extension Categories -->
<div class="space-y-4">
<!-- Lighting Category -->
<div>
<div class="flex items-center space-x-2 mb-2 cursor-pointer category-toggle" data-category="lighting">
<i class="fas fa-chevron-down text-xs"></i>
<span class="font-medium">Lighting</span>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 category-content" data-category="lighting">
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="cinematic">
<span>Cinematic</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+2cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="softbox">
<span>Softbox</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+1cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="neon">
<span>Neon</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+3cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="golden">
<span>Golden</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+2cr</span>
</button>
</div>
</div>
<!-- Style Category -->
<div>
<div class="flex items-center space-x-2 mb-2 cursor-pointer category-toggle" data-category="style">
<i class="fas fa-chevron-down text-xs"></i>
<span class="font-medium">Style</span>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 category-content hidden" data-category="style">
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="photoreal">
<span>Photoreal</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+3cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="cel-shade">
<span>Cel-Shade</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+4cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="vintage">
<span>Vintage</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+2cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="hdr">
<span>HDR</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+3cr</span>
</button>
</div>
</div>
<!-- Appearance Category -->
<div>
<div class="flex items-center space-x-2 mb-2 cursor-pointer category-toggle" data-category="appearance">
<i class="fas fa-chevron-down text-xs"></i>
<span class="font-medium">Appearance</span>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 category-content hidden" data-category="appearance">
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="glossy">
<span>Glossy</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+2cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="latex">
<span>Latex</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+3cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="lingerie">
<span>Lingerie</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+2cr</span>
</button>
<button class="extension-btn bg-gray-700 hover:bg-gray-600 py-2 px-3 rounded-lg text-sm flex items-center justify-between" data-extension="cosplay">
<span>Cosplay</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded">+4cr</span>
</button>
</div>
</div>
</div>
</div>
<!-- Results Section -->
<div class="bg-gray-800 rounded-xl p-6">
<div class="flex items-center justify-between mb-6">
<h3 class="font-bold">Your Creations</h3>
<div class="flex space-x-2">
<button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded-lg text-sm">
<i class="fas fa-filter mr-1"></i> Filter
</button>
<button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded-lg text-sm">
<i class="fas fa-sort mr-1"></i> Sort
</button>
</div>
</div>
<!-- Results Grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4" id="resultsGrid">
<!-- Loading State -->
<div id="loadingState" class="col-span-3 py-12 flex flex-col items-center justify-center text-gray-400">
<div class="w-16 h-16 border-4 border-pink-500 border-t-transparent rounded-full animate-spin mb-4"></div>
<p>Your generated content will appear here</p>
</div>
<!-- Sample Results (hidden by default) -->
<div class="result-card bg-gray-700 rounded-xl overflow-hidden hidden">
<div class="relative group">
<img src="https://via.placeholder.com/512x512/333/666?text=NSFW+Content" alt="Generated image" class="w-full h-auto nsfw-blur">
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent opacity-0 group-hover:opacity-70 transition-opacity flex items-end p-4">
<div class="w-full space-y-2">
<div class="flex justify-between">
<button class="bg-pink-600 hover:bg-pink-700 text-white p-2 rounded-full">
<i class="fas fa-expand"></i>
</button>
<button class="bg-gray-800 hover:bg-gray-700 text-white p-2 rounded-full">
<i class="fas fa-heart"></i>
</button>
</div>
<button class="w-full bg-pink-600 hover:bg-pink-700 text-white py-2 px-4 rounded-lg text-sm">
Upscale (3cr)
</button>
</div>
</div>
</div>
<div class="p-3">
<p class="text-sm line-clamp-2 mb-2">Beautiful woman in cinematic lighting with glossy skin wearing lingerie</p>
<div class="flex justify-between items-center text-xs text-gray-400">
<span>Realistic</span>
<span>2 min ago</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 border-t 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>
<h4 class="font-bold mb-4">FantasyAI</h4>
<p class="text-sm text-gray-400">Create your wildest fantasies with AI. 18+ only.</p>
</div>
<div>
<h4 class="font-bold mb-4">Legal</h4>
<ul class="space-y-2 text-sm text-gray-400">
<li><a href="#" class="hover:text-pink-400">Terms of Service</a></li>
<li><a href="#" class="hover:text-pink-400">Privacy Policy</a></li>
<li><a href="#" class="hover:text-pink-400">Content Policy</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Support</h4>
<ul class="space-y-2 text-sm text-gray-400">
<li><a href="#" class="hover:text-pink-400">Help Center</a></li>
<li><a href="#" class="hover:text-pink-400">Report Content</a></li>
<li><a href="#" class="hover:text-pink-400">Contact Us</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Connect</h4>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-pink-400"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-pink-400"><i class="fab fa-discord"></i></a>
<a href="#" class="text-gray-400 hover:text-pink-400"><i class="fab fa-reddit"></i></a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-sm text-gray-500">
<p>© 2023 FantasyAI. All rights reserved. This site is for adults only.</p>
</div>
</div>
</footer>
</div>
<script>
// Age Verification
document.addEventListener('DOMContentLoaded', function() {
const ageGate = document.getElementById('ageGate');
const mainApp = document.getElementById('mainApp');
const verifyBtn = document.getElementById('verifyBtn');
const exitBtn = document.getElementById('exitBtn');
const ageConfirm = document.getElementById('ageConfirm');
const termsConfirm = document.getElementById('termsConfirm');
// Check if already verified
if(localStorage.getItem('ageVerified') === 'true') {
ageGate.style.display = 'none';
mainApp.classList.remove('hidden');
}
verifyBtn.addEventListener('click', function() {
if(ageConfirm.checked && termsConfirm.checked) {
localStorage.setItem('ageVerified', 'true');
ageGate.style.display = 'none';
mainApp.classList.remove('hidden');
} else {
alert('Please confirm you are 18+ and accept the Terms of Service');
}
});
exitBtn.addEventListener('click', function() {
window.location.href = 'https://www.google.com';
});
// Model Selection
const modelBtns = document.querySelectorAll('.model-btn');
modelBtns.forEach(btn => {
btn.addEventListener('click', function() {
modelBtns.forEach(b => b.classList.remove('active', 'bg-pink-600'));
modelBtns.forEach(b => b.classList.add('bg-gray-700'));
this.classList.add('active', 'bg-pink-600');
this.classList.remove('bg-gray-700');
updateCreditCost();
});
});
// Media Type Selection
const mediaBtns = document.querySelectorAll('.media-btn');
const videoLengthGroup = document.getElementById('videoLengthGroup');
mediaBtns.forEach(btn => {
btn.addEventListener('click', function() {
mediaBtns.forEach(b => b.classList.remove('active', 'bg-pink-600'));
mediaBtns.forEach(b => b.classList.add('bg-gray-700'));
this.classList.add('active', 'bg-pink-600');
this.classList.remove('bg-gray-700');
if(this.dataset.type === 'video') {
videoLengthGroup.classList.remove('hidden');
} else {
videoLengthGroup.classList.add('hidden');
}
updateCreditCost();
});
});
// Video Length Selection
const lengthBtns = document.querySelectorAll('.length-btn');
lengthBtns.forEach(btn => {
btn.addEventListener('click', function() {
lengthBtns.forEach(b => b.classList.remove('bg-pink-600'));
lengthBtns.forEach(b => b.classList.add('bg-gray-700'));
this.classList.add('bg-pink-600');
this.classList.remove('bg-gray-700');
updateCreditCost();
});
});
// Aspect Ratio Selection
const aspectBtns = document.querySelectorAll('.aspect-btn');
aspectBtns.forEach(btn => {
btn.addEventListener('click', function() {
aspectBtns.forEach(b => b.classList.remove('active', 'bg-pink-600'));
aspectBtns.forEach(b => b.classList.add('bg-gray-700'));
this.classList.add('active', 'bg-pink-600');
this.classList.remove('bg-gray-700');
});
});
// Advanced Options Toggle
const advancedToggle = document.getElementById('advancedToggle');
const advancedOptions = document.getElementById('advancedOptions');
advancedToggle.addEventListener('click', function() {
const icon = this.querySelector('i');
advancedOptions.classList.toggle('hidden');
if(advancedOptions.classList.contains('hidden')) {
icon.classList.remove('fa-chevron-up');
icon.classList.add('fa-chevron-down');
} else {
icon.classList.remove('fa-chevron-down');
icon.classList.add('fa-chevron-up');
}
});
// Extension Selection
const extensionBtns = document.querySelectorAll('.extension-btn');
const selectedExtensions = document.getElementById('selectedExtensions');
let selectedExts = [];
extensionBtns.forEach(btn => {
btn.addEventListener('click', function() {
const ext = this.dataset.extension;
if(selectedExts.includes(ext)) {
// Remove extension
selectedExts = selectedExts.filter(e => e !== ext);
this.classList.remove('bg-pink-600');
this.classList.add('bg-gray-700');
} else {
// Add extension (if under limit)
if(selectedExts.length < 8) {
selectedExts.push(ext);
this.classList.add('bg-pink-600');
this.classList.remove('bg-gray-700');
} else {
alert('Maximum of 8 extensions allowed');
}
}
updateSelectedExtensions();
updateCreditCost();
});
});
function updateSelectedExtensions() {
selectedExtensions.innerHTML = '';
selectedExts.forEach(ext => {
const chip = document.createElement('div');
chip.className = 'extension-chip bg-pink-600 text-white py-1 px-3 rounded-full text-sm flex items-center';
chip.innerHTML = `
<span>${ext}</span>
<button class="ml-2" data-extension="${ext}">
<i class="fas fa-times text-xs"></i>
</button>
`;
selectedExtensions.appendChild(chip);
// Add remove event
chip.querySelector('button').addEventListener('click', function(e) {
e.stopPropagation();
const extToRemove = this.dataset.extension;
selectedExts = selectedExts.filter(e => e !== extToRemove);
updateSelectedExtensions();
// Update the original button state
extensionBtns.forEach(btn => {
if(btn.dataset.extension === extToRemove) {
btn.classList.remove('bg-pink-600');
btn.classList.add('bg-gray-700');
}
});
updateCreditCost();
});
});
}
// Category Toggles
const categoryToggles = document.querySelectorAll('.category-toggle');
categoryToggles.forEach(toggle => {
toggle.addEventListener('click', function() {
const category = this.dataset.category;
const content = document.querySelector(`.category-content[data-category="${category}"]`);
const icon = this.querySelector('i');
content.classList.toggle('hidden');
if(content.classList.contains('hidden')) {
icon.classList.remove('fa-chevron-up');
icon.classList.add('fa-chevron-down');
} else {
icon.classList.remove('fa-chevron-down');
icon.classList.add('fa-chevron-up');
}
});
});
// Navigation
const navLinks = document.querySelectorAll('nav a');
const sections = {
'index.html': document.querySelector('.lg\\:col-span-3 > div:first-child'),
'#characters': document.getElementById('characters'),
'#history': document.getElementById('history'),
'#pricing': document.getElementById('pricing')
};
navLinks.forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
const target = this.getAttribute('href');
// Hide all sections
Object.values(sections).forEach(section => {
if(section) section.classList.add('hidden');
});
// Show target section
if(sections[target]) {
sections[target].classList.remove('hidden');
}
// Update active nav link
navLinks.forEach(l => l.classList.remove('text-pink-400'));
navLinks.forEach(l => l.classList.add('text-gray-300'));
this.classList.remove('text-gray-300');
this.classList.add('text-pink-400');
});
});
// Generate Button
const generateBtn = document.getElementById('generateBtn');
const promptInput = document.getElementById('promptInput');
const negativePrompt = document.getElementById('negativePrompt');
const resultsGrid = document.getElementById('resultsGrid');
const loadingState = document.getElementById('loadingState');
generateBtn.addEventListener('click', function() {
if(!promptInput.value.trim()) {
alert('Please enter a prompt');
return;
}
// Show loading state
loadingState.classList.remove('hidden');
// Hide any existing results
document.querySelectorAll('.result-card').forEach(card => {
card.classList.add('hidden');
});
// Simulate generation with NSFW content
setTimeout(() => {
loadingState.classList.add('hidden');
// Clear previous results
resultsGrid.querySelectorAll('.result-card').forEach(card => card.remove());
// Create and show 3 new NSFW result cards
for(let i = 0; i < 3; i++) {
const card = document.createElement('div');
card.className = 'result-card bg-gray-700 rounded-xl overflow-hidden';
card.innerHTML = `
<div class="relative group">
<img src="https://source.unsplash.com/random/512x512/?nsfw,${promptInput.value.split(' ').join(',')},${i}"
alt="Generated image" class="w-full h-auto">
<div class="absolute inset-0 bg-gradient-to-t from-black to-transparent opacity-0 group-hover:opacity-70 transition-opacity flex items-end p-4">
<div class="w-full space-y-2">
<div class="flex justify-between">
<button class="bg-pink-600 hover:bg-pink-700 text-white p-2 rounded-full">
<i class="fas fa-expand"></i>
</button>
<button class="bg-gray-800 hover:bg-gray-700 text-white p-2 rounded-full">
<i class="fas fa-heart"></i>
</button>
</div>
<button class="w-full bg-pink-600 hover:bg-pink-700 text-white py-2 px-4 rounded-lg text-sm">
Upscale (3cr)
</button>
</div>
</div>
</div>
<div class="p-3">
<p class="text-sm line-clamp-2 mb-2">${promptInput.value}</p>
<div class="flex justify-between items-center text-xs text-gray-400">
<span>${document.querySelector('.model-btn.active').dataset.model}</span>
<span>Just now</span>
</div>
</div>
`;
resultsGrid.appendChild(card);
}
}, 2000);
});
// Update credit cost based on selections
function updateCreditCost() {
const isVideo = document.querySelector('.media-btn.active').dataset.type === 'video';
let cost = isVideo ? 12 : 6; // Base cost
// Add extension costs
selectedExts.forEach(ext => {
// Simplified - in a real app you'd have actual costs per extension
if(ext === 'cinematic') cost += 2;
else if(ext === 'softbox') cost += 1;
else if(ext === 'neon') cost += 3;
else if(ext === 'golden') cost += 2;
else if(ext === 'photoreal') cost += 3;
else if(ext === 'cel-shade') cost += 4;
else if(ext === 'vintage') cost += 2;
else if(ext === 'hdr') cost += 3;
else if(ext === 'glossy') cost += 2;
else if(ext === 'latex') cost += 3;
else if(ext === 'lingerie') cost += 2;
else if(ext === 'cosplay') cost += 4;
});
// Update video cost based on length
if(isVideo) {
const activeLength = document.querySelector('.length-btn.bg-pink-600');
if(activeLength) {
const length = parseInt(activeLength.dataset.length);
if(length === 6) cost += 6;
else if(length === 10) cost += 12;
}
}
generateBtn.innerHTML = `
<i class="fas fa-magic"></i>
<span>Generate (${cost} credits)</span>
`;
}
});
</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=sagelii/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>