Spaces:
Running

undefined / index.html
zaidmaga's picture
رفع الصوره لا يعمل
0cd7053 verified
Raw History Blame Contribute Delete
16.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PixelWizard - AI Photo Enhancement</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 src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.glass-effect {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.upload-area {
border: 2px dashed rgba(255, 255, 255, 0.3);
transition: all 0.3s ease;
}
.upload-area:hover {
border-color: rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.05);
}
.floating-element {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
.pulse-glow {
animation: pulse-glow 2s ease-in-out infinite alternate;
}
@keyframes pulse-glow {
from { box-shadow: 0 0 20px rgba(102, 126, 234, 0.4); }
to { box-shadow: 0 0 30px rgba(102, 126, 234, 0.8); }
}
</style>
</head>
<body class="min-h-screen gradient-bg text-white">
<!-- Vanta.js Background -->
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<!-- Navigation -->
<nav class="relative z-10 glass-effect rounded-2xl mx-4 mt-4 md:mx-8 lg:mx-16">
<div class="container mx-auto px-6 py-4">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 bg-white rounded-full flex items-center justify-center">
<i data-feather="camera" class="text-purple-600 w-4 h-4"></i>
</div>
<span class="text-xl font-bold">PixelWizard</span>
</div>
<div class="hidden md:flex space-x-8">
<a href="#features" class="hover:text-purple-200 transition-colors">Features</a>
<a href="#how-it-works" class="hover:text-purple-200 transition-colors">How It Works</a>
<a href="#pricing" class="hover:text-purple-200 transition-colors">Pricing</a>
<a href="gallery.html" class="hover:text-purple-200 transition-colors">Gallery</a>
</div>
<div class="flex items-center space-x-4">
<button class="px-4 py-2 rounded-lg glass-effect hover:bg-white/20 transition-colors">
Sign In
</button>
<button class="px-6 py-2 bg-white text-purple-600 rounded-lg font-semibold hover:bg-purple-50 transition-colors">
Get Started
</button>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="relative z-10 container mx-auto px-6 py-20 md:py-32">
<div class="max-w-4xl mx-auto text-center">
<h1 class="text-5xl md:text-7xl font-bold mb-6 leading-tight">
Transform Your Photos with
<span class="bg-gradient-to-r from-yellow-300 to-pink-400 bg-clip-text text-transparent">
AI Magic
</span>
</h1>
<p class="text-xl md:text-2xl text-purple-100 mb-12 leading-relaxed">
Upload any image and watch as our advanced AI transforms it into stunning artwork.
Powered by cutting-edge diffusion models and intelligent enhancement algorithms.
</p>
<!-- Main Upload Area -->
<div class="max-w-2xl mx-auto">
<form id="upload-form" class="upload-area rounded-3xl p-8 text-center cursor-pointer mb-8" ondrop="handleDrop(event)" ondragover="handleDragOver(event)" onclick="document.getElementById('file-input').click()">
<input type="file" id="file-input" accept="image/*" class="hidden" onchange="handleFileSelect(event)">
<div class="floating-element mb-6">
<i data-feather="upload-cloud" class="w-16 h-16 mx-auto text-purple-200"></i>
</div>
<h3 class="text-2xl font-semibold mb-4">Drop Your Image Here</h3>
<p class="text-purple-200 mb-6">Or click to browse your files</p>
<div class="flex justify-center space-x-4">
<button type="button" class="px-6 py-3 bg-white text-purple-600 rounded-xl font-semibold hover:bg-purple-50 transition-colors">
Choose File
</button>
<button type="button" class="px-6 py-3 glass-effect rounded-xl font-semibold hover:bg-white/20 transition-colors" onclick="useSampleImage(event)">
Use Sample
</button>
</div>
</form>
<!-- Quick Actions -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="glass-effect rounded-xl p-4 text-center hover:bg-white/10 transition-colors cursor-pointer">
<i data-feather="zap" class="w-6 h-6 mx-auto mb-2"></i>
<span class="text-sm">Enhance</span>
</div>
<div class="glass-effect rounded-xl p-4 text-center hover:bg-white/10 transition-colors cursor-pointer">
<i data-feather="edit" class="w-6 h-6 mx-auto mb-2"></i>
<span class="text-sm">Style Transfer</span>
</div>
<div class="glass-effect rounded-xl p-4 text-center hover:bg-white/10 transition-colors cursor-pointer">
<i data-feather="image" class="w-6 h-6 mx-auto mb-2"></i>
<span class="text-sm">Background</span>
</div>
<div class="glass-effect rounded-xl p-4 text-center hover:bg-white/10 transition-colors cursor-pointer">
<i data-feather="sparkles" class="w-6 h-6 mx-auto mb-2"></i>
<span class="text-sm">Magic AI</span>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section id="features" class="relative z-10 py-20">
<div class="container mx-auto px-6">
<h2 class="text-4xl font-bold text-center mb-16">Powerful AI Features</h2>
<div class="grid md:grid-cols-3 gap-8">
<div class="glass-effect rounded-2xl p-8 text-center hover:scale-105 transition-transform">
<div class="w-16 h-16 bg-purple-500 rounded-2xl mx-auto mb-6 flex items-center justify-center">
<i data-feather="cpu" class="w-8 h-8"></i>
</div>
<h3 class="text-xl font-semibold mb-4">Advanced Diffusion</h3>
<p class="text-purple-200">Utilizes state-of-the-art diffusion models for unparalleled image quality and creative control.</p>
</div>
<div class="glass-effect rounded-2xl p-8 text-center hover:scale-105 transition-transform">
<div class="w-16 h-16 bg-pink-500 rounded-2xl mx-auto mb-6 flex items-center justify-center">
<i data-feather="layers" class="w-8 h-8"></i>
</div>
<h3 class="text-xl font-semibold mb-4">Multi-Model Support</h3>
<p class="text-purple-200">Choose from various AI models optimized for different styles and enhancement types.</p>
</div>
<div class="glass-effect rounded-2xl p-8 text-center hover:scale-105 transition-transform">
<div class="w-16 h-16 bg-blue-500 rounded-2xl mx-auto mb-6 flex items-center justify-center">
<i data-feather="sliders" class="w-8 h-8"></i>
</div>
<h3 class="text-xl font-semibold mb-4">Precise Control</h3>
<p class="text-purple-200">Fine-tune every aspect of your image enhancement with intuitive controls and real-time preview.</p>
</div>
</div>
</div>
</section>
<!-- How It Works -->
<section id="how-it-works" class="relative z-10 py-20">
<div class="container mx-auto px-6">
<h2 class="text-4xl font-bold text-center mb-16">How PixelWizard Works</h2>
<div class="max-w-4xl mx-auto">
<div class="grid md:grid-cols-4 gap-8">
<div class="text-center">
<div class="w-12 h-12 bg-white text-purple-600 rounded-full mx-auto mb-4 flex items-center justify-center font-bold">
1
</div>
<h4 class="font-semibold mb-2">Upload</h4>
<p class="text-sm text-purple-200">Drag and drop your image or select from your device</p>
</div>
<div class="text-center">
<div class="w-12 h-12 bg-white text-purple-600 rounded-full mx-auto mb-4 flex items-center justify-center font-bold">
2
</div>
<h4 class="font-semibold mb-2">Customize</h4>
<p class="text-sm text-purple-200">Choose enhancement style and adjust parameters</p>
</div>
<div class="text-center">
<div class="w-12 h-12 bg-white text-purple-600 rounded-full mx-auto mb-4 flex items-center justify-center font-bold">
3
</div>
<h4 class="font-semibold mb-2">Process</h4>
<p class="text-sm text-purple-200">AI processes your image using advanced algorithms</p>
</div>
<div class="text-center">
<div class="w-12 h-12 bg-white text-purple-600 rounded-full mx-auto mb-4 flex items-center justify-center font-bold">
4
</div>
<h4 class="font-semibold mb-2">Download</h4>
<p class="text-sm text-purple-200">Get your enhanced image in high resolution</p>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="relative z-10 glass-effect mt-20">
<div class="container mx-auto px-6 py-12">
<div class="grid md:grid-cols-4 gap-8">
<div>
<div class="flex items-center space-x-2 mb-4">
<div class="w-6 h-6 bg-white rounded-full flex items-center justify-center">
<i data-feather="camera" class="text-purple-600 w-3 h-3"></i>
</div>
<span class="text-lg font-bold">PixelWizard</span>
</div>
<p class="text-purple-200 text-sm">Transforming ordinary photos into extraordinary art with AI magic.</p>
</div>
<div>
<h4 class="font-semibold mb-4">Product</h4>
<ul class="space-y-2 text-sm text-purple-200">
<li><a href="#" class="hover:text-white transition-colors">Features</a></li>
<li><a href="#" class="hover:text-white transition-colors">Pricing</a></li>
<li><a href="#" class="hover:text-white transition-colors">API</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Company</h4>
<ul class="space-y-2 text-sm text-purple-200">
<li><a href="#" class="hover:text-white transition-colors">About</a></li>
<li><a href="#" class="hover:text-white transition-colors">Blog</a></li>
<li><a href="#" class="hover:text-white transition-colors">Careers</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Support</h4>
<ul class="space-y-2 text-sm text-purple-200">
<li><a href="#" class="hover:text-white transition-colors">Help Center</a></li>
<li><a href="#" class="hover:text-white transition-colors">Contact</a></li>
<li><a href="#" class="hover:text-white transition-colors">Privacy</a></li>
</ul>
</div>
</div>
<div class="border-t border-white/20 mt-8 pt-8 text-center text-sm text-purple-200">
&copy; 2024 PixelWizard AI. All rights reserved.
</div>
</div>
</footer>
<script>
// Initialize Vanta.js
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x8a63d2,
backgroundColor: 0x667eea,
size: 1.00
});
// Initialize Feather Icons
feather.replace();
// File upload functionality
function handleDragOver(e) {
e.preventDefault();
e.stopPropagation();
e.currentTarget.classList.add('pulse-glow');
}
function handleDrop(e) {
e.preventDefault();
e.stopPropagation();
e.currentTarget.classList.remove('pulse-glow');
const files = e.dataTransfer.files;
if (files.length > 0 && files[0].type.startsWith('image/')) {
processImageFile(files[0]);
}
}
function handleFileSelect(e) {
const files = e.target.files;
if (files.length > 0 && files[0].type.startsWith('image/')) {
processImageFile(files[0]);
}
}
function useSampleImage(e) {
e.stopPropagation();
// Redirect to editor with sample image
window.location.href = 'editor.html?sample=true';
}
function processImageFile(file) {
const reader = new FileReader();
reader.onload = function(e) {
// Store the image data and redirect to editor
sessionStorage.setItem('uploadedImage', e.target.result);
window.location.href = 'editor.html';
};
reader.readAsDataURL(file);
}
// Simple animation for upload area
document.querySelector('.upload-area').addEventListener('click', function() {
this.classList.add('pulse-glow');
setTimeout(() => {
this.classList.remove('pulse-glow');
}, 2000);
});
// Smooth scrolling for navigation links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
</script>
</body>
</html>