pixelwizard-wand / index.html
Omid40ail's picture
″ ′′′ ᴼᴹᴵᴰ:
1bb869b verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PixelWizard Wand 🎨</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#6366f1',
secondary: '#8b5cf6',
dark: '#1e293b'
}
}
}
}
</script>
</head>
<body class="bg-gradient-to-br from-gray-900 to-dark min-h-screen">
<div class="container mx-auto px-4 py-8">
<header class="mb-12 text-center">
<h1 class="text-4xl font-bold text-white mb-2">PixelWizard Wand <span class="text-secondary">🎨</span></h1>
<p class="text-gray-400 max-w-2xl mx-auto">Your magical tool for AI-powered image editing and generation</p>
</header>
<main class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Image Upload Card -->
<div class="bg-gray-800/50 backdrop-blur-md rounded-xl p-6 border border-gray-700 shadow-lg">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold text-white">Upload Image</h2>
<i data-feather="upload" class="text-primary"></i>
</div>
<div class="border-2 border-dashed border-gray-600 rounded-lg p-8 text-center cursor-pointer hover:border-primary transition duration-300">
<i data-feather="image" class="w-12 h-12 mx-auto text-gray-400 mb-4"></i>
<p class="text-gray-400 mb-2">Drag & drop your image here</p>
<p class="text-xs text-gray-500">or click to browse files</p>
</div>
<input type="file" class="hidden" accept="image/*">
</div>
<!-- Editing Tools Card -->
<div class="bg-gray-800/50 backdrop-blur-md rounded-xl p-6 border border-gray-700 shadow-lg">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold text-white">Editing Tools</h2>
<i data-feather="sliders" class="text-secondary"></i>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">AI Model</label>
<select id="ai-model" class="w-full bg-gray-700 border border-gray-600 rounded-md py-2 px-3 text-white text-sm focus:ring-primary focus:border-primary">
<option value="" disabled selected>Loading models...</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Style</label>
<select id="style-select" class="w-full bg-gray-700 border border-gray-600 rounded-md py-2 px-3 text-white text-sm focus:ring-primary focus:border-primary">
<option value="realistic">Realistic</option>
<option value="watercolor">Watercolor</option>
<option value="oil-painting">Oil Painting</option>
<option value="cyberpunk">Cyberpunk</option>
<option value="anime">Anime</option>
<option value="fantasy">Fantasy</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Aspect Ratio</label>
<select class="w-full bg-gray-700 border border-gray-600 rounded-md py-2 px-3 text-white text-sm focus:ring-primary focus:border-primary">
<option>1:1 Square</option>
<option>16:9 Landscape</option>
<option>9:16 Portrait</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Enhancements</label>
<div class="flex space-x-2">
<button class="bg-gray-700 hover:bg-primary text-white px-3 py-1 rounded-md text-sm transition">Sharpness</button>
<button class="bg-gray-700 hover:bg-primary text-white px-3 py-1 rounded-md text-sm transition">Colors</button>
<button class="bg-gray-700 hover:bg-secondary text-white px-3 py-1 rounded-md text-sm transition">Lighting</button>
</div>
</div>
</div>
</div>
<!-- Generation Card -->
<div class="bg-gray-800/50 backdrop-blur-md rounded-xl p-6 border border-gray-700 shadow-lg">
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold text-white">Generate Magic</h2>
<i data-feather="zap" class="text-yellow-400"></i>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Prompt</label>
<textarea id="prompt-input" class="w-full bg-gray-700 border border-gray-600 rounded-md py-2 px-3 text-white text-sm h-24 focus:ring-primary focus:border-primary" placeholder="Describe your desired image (e.g. 'A majestic dragon flying over a misty mountain at sunset, fantasy art style')"></textarea>
<button id="random-prompt" class="w-full mt-2 bg-gray-700 hover:bg-gray-600 text-white py-1.5 px-3 rounded-md text-xs flex items-center justify-center">
<i data-feather="repeat" class="w-3 h-3 mr-1"></i>
Inspire Me
</button>
</div>
<button class="w-full bg-gradient-to-r from-primary to-secondary text-white py-2 px-4 rounded-md font-medium hover:opacity-90 transition flex items-center justify-center">
<i data-feather="wand" class="w-4 h-4 mr-2"></i>
Generate Images
</button>
<div class="text-xs text-gray-400 text-center">
<p>Our AI will generate 2 variants for you to choose from</p>
</div>
</div>
</div>
</main>
<!-- Results Section -->
<section id="results" class="hidden mt-12">
<h2 class="text-2xl font-bold text-white mb-6 text-center">Generated Results</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="bg-gray-800/50 backdrop-blur-md rounded-xl p-6 border border-gray-700 shadow-lg">
<h3 class="text-lg font-semibold text-white mb-4">Variant 1</h3>
<image-preview src="http://static.photos/abstract/640x360/1"></image-preview>
</div>
<div class="bg-gray-800/50 backdrop-blur-md rounded-xl p-6 border border-gray-700 shadow-lg">
<h3 class="text-lg font-semibold text-white mb-4">Variant 2</h3>
<image-preview src="http://static.photos/abstract/640x360/2"></image-preview>
</div>
</div>
</section>
<div class="mt-12 text-center">
<div class="inline-flex items-center space-x-4">
<a href="/gallery.html" class="bg-gray-800 hover:bg-gray-700 text-white px-6 py-2 rounded-full font-medium transition flex items-center">
<i data-feather="image" class="w-4 h-4 mr-2"></i>
My Gallery
</a>
<a href="/omid-editor.html" class="bg-gray-800 hover:bg-gray-700 text-white px-6 py-2 rounded-full font-medium transition flex items-center">
<i data-feather="edit" class="w-4 h-4 mr-2"></i>
Persian Editor
</a>
<button class="bg-primary hover:bg-primary/90 text-white px-6 py-2 rounded-full font-medium transition flex items-center">
<i data-feather="download" class="w-4 h-4 mr-2"></i>
Download App
</button>
</div>
</div>
</div>
<script>
feather.replace();
</script>
<script src="components/ai-editor.js"></script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>P</html>Photos are generated randomly and based on user input.
hotos are generated randomly and based on user input.