my-test / index.html
Archger's picture
Add 2 files
d6721a6 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Art Gallery | Join Waitlist</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 src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.6.0/dist/confetti.browser.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;
background-color: #000;
color: white;
scroll-behavior: smooth;
overscroll-behavior-y: none;
}
.gradient-text {
background: linear-gradient(90deg, #2af598 0%, #009efd 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.card-glass {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-primary {
background: linear-gradient(90deg, #2af598 0%, #009efd 100%);
border: none;
color: black;
font-weight: 600;
padding: 14px 32px;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(42, 245, 152, 0.2);
}
.artwork-container {
perspective: 1000px;
}
.artwork-card {
transition: transform 0.5s ease, opacity 0.5s ease;
transform-style: preserve-3d;
transform: translateY(0) scale(1);
}
.section {
min-height: 100vh;
width: 100%;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px;
box-sizing: border-box;
}
#artSection {
background: linear-gradient(135deg, #000000 0%, #121212 100%);
}
#formSection {
background-color: #000;
opacity: 0;
transform: translateY(50px);
transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
#formSection.visible {
opacity: 1;
transform: translateY(0);
}
.scrolling-hint {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
opacity: 0.8;
animation: fadeInOut 2s infinite;
}
@keyframes fadeInOut {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
.scrolling-hint-arrow {
width: 24px;
height: 24px;
border-right: 2px solid white;
border-bottom: 2px solid white;
transform: rotate(45deg);
margin-bottom: 5px;
}
.artwork {
border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.artwork:hover {
transform: translateY(-10px);
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
/* Success modal */
#successModal {
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* iPhone notch effect */
.notch {
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 180px;
height: 30px;
background: black;
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
z-index: 100;
}
/* Status bar */
.status-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
padding: 10px 20px;
z-index: 90;
}
</style>
</head>
<body>
<!-- iPhone UI elements -->
<div class="notch"></div>
<div class="status-bar text-sm">
<span>9:41</span>
<div class="flex space-x-2">
<i class="fas fa-signal"></i>
<i class="fas fa-wifi"></i>
<i class="fas fa-battery-full"></i>
</div>
</div>
<!-- AI Art Showcase Section -->
<section id="artSection" class="section">
<div class="max-w-6xl mx-auto px-4">
<h1 class="text-5xl md:text-6xl font-bold mb-6 text-center">
<span class="gradient-text">AI Art Gallery</span>
</h1>
<p class="text-xl text-gray-400 max-w-2xl mx-auto mb-12 text-center">
Stunning artwork generated by our revolutionary AI technology
</p>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 artwork-container">
<!-- AI Artworks -->
<div class="artwork-card">
<img src="https://source.unsplash.com/random/600x600/?ai,art,abstract,1" alt="AI Artwork 1" class="w-full artwork">
<p class="mt-4 text-gray-300">Abstract Nebula</p>
</div>
<div class="artwork-card" style="transition-delay: 0.1s">
<img src="https://source.unsplash.com/random/600x600/?ai,art,future,2" alt="AI Artwork 2" class="w-full artwork">
<p class="mt-4 text-gray-300">Cyberpunk Dreams</p>
</div>
<div class="artwork-card" style="transition-delay: 0.2s">
<img src="https://source.unsplash.com/random/600x600/?ai,art,landscape,3" alt="AI Artwork 3" class="w-full artwork">
<p class="mt-4 text-gray-300">Surreal Landscapes</p>
</div>
</div>
<div class="scrolling-hint">
<div class="scrolling-hint-arrow"></div>
<span class="text-sm text-gray-400">Scroll to continue</span>
</div>
</div>
</section>
<!-- Waitlist Form Section (hidden initially) -->
<section id="formSection" class="section">
<div class="max-w-lg w-full px-4">
<div class="card-glass p-10 rounded-3xl">
<div class="text-center">
<div class="w-20 h-20 rounded-full bg-gradient-to-br from-green-400 to-blue-500 flex items-center justify-center mx-auto mb+6">
<i class="fas fa-palette text-2xl text-black"></i>
</div>
<h2 class="text-3xl font-bold mb-4">Create Your Own AI Art</h2>
<p class="text-gray-400 mb-8">
Join our waitlist for early access to the most advanced AI art generator
</p>
</div>
<form id="waitlistForm" class="space-y-6">
<div class="space-y-4">
<input type="email" id="email" placeholder="Email address" required
class="w-full px-6 pyand 4 rounded-xl bg-gray-900 bg-opacity-50 border border-gray-700 focus:border-green-400 focus:ring-2 focus:ring-green-400 focus:ring-opacity-50 text-white placeholder-gray-500 transition duration-200">
<select id="interest" class="w-full px-6 py-4 rounded-xl bg-gray-900 bg-opacity-50 border border-gray-700 focus:border-green-400 focus:ring-2 focus:ring-green-400 focus:ring-opacity-50 text-white placeholder-gray-500 transition duration-200">
<option value="" disabled selected>What interests you most?</option>
<option value="abstract">Abstract Art</option>
<option value="portraits">AI Portraits</option>
<option value="landscapes">Digital Landscapes</option>
<option value="concept">Concept Art</option>
</select>
</div>
<button type="submit" class="btn-primary w-full py-4 font-medium text-lg flex items-center justify-center">
Join Waitlist <i class="fas fa-arrow-right ml-3"></i>
</button>
<p class="text-xs text-gray-500 text-center mt-4">
We'll never share your information. Unsubscribe anytime.
</p>
</form>
</div>
</div>
</section>
<!-- Success Modal -->
<div id="successModal" class="hidden fixed inset-0 bg-black bg-opacity-90 flex items-center justify-center z-50 p-4">
<div class="card-glass p-12 max-w-md w-full text-center rounded-3xl relative overflow-hidden">
<div class="absolute inset-0 z-0 opacity-20" style="background: radial-gradient(circle at center, #2af598 0%, #009efd 100%);"></div>
<div class="relative z-10">
<div class="w-24 h-24 bg-gradient-to-br from-green-400 to-blue-500 rounded-full flex items-center justify-center mx-auto mb-8">
<i class="fas fa-check text-3xl text-black"></i>
</div>
<h3 class="text-3xl font-bold mb-4">You're In!</h3>
<p class="text-gray-300 mb-8">
Welcome to the future of AI art creation. We'll contact you soon with early access details.
</p>
<button id="closeModal" class="btn-primary px-8 py-3">
Start Creating
</button>
</div>
</div>
</div>
<script>
// Scroll to reveal form section with iOS-like animation
function handleScroll() {
const formSection = document.querySelector('#formSection');
const artSection = document.querySelector('#artSection');
const scrollPosition = window.scrollY;
const artSectionHeight = artSection.offsetHeight;
// Calculate how far we've scrolled through the art section (0-1)
const scrollPercent = Math.min(scrollPosition / (artSectionHeight * 0.8), 1);
// Apply parallax effect to artwork cards
const artworkCards = document.querySelectorAll('.artwork-card');
artworkCards.forEach((card, index) => {
const delayFactor = index * 0.1;
const yOffset = scrollPercent * 50 * (1 - delayFactor);
const scale = 1 - (scrollPercent * 0.2 * (1 - delayFactor));
card.style.transform = `translateY(${yOffset}px) scale(${scale})`;
card.style.opacity = 1 - (scrollPercent * 0.9 * (1 - delayFactor));
});
// Show form section when reaching certain point
if (scrollPosition > artSectionHeight * 0.4) {
formSection.classList.add('visible');
} else {
formSection.classList.remove('visible');
}
}
// Firework confetti effect
function fireConfetti() {
confetti({
particleCount: 200,
spread: 90,
origin: { y: 0.5 },
colors: ['#2af598', '#009efd', '#ffffff'],
shapes: ['circle', 'star']
});
// Random burst of colored confetti
setTimeout(() => {
confetti({
particleCount: 100,
angle: 60,
spread: 70,
origin: { x: 0 },
colors: ['#2af598']
});
confetti({
particleCount: 100,
angle: 120,
spread: 70,
origin: { x: 1 },
colors: ['#009efd']
});
}, 300);
}
// Form submission
const waitlistForm = document.getElementById('waitlistForm');
const successModal = document.getElementById('successModal');
waitlistForm.addEventListener('submit', (e) => {
e.preventDefault();
const email = document.getElementById('email').value;
const interest = document.getElementById('interest').value;
// Here you would typically send the data to your server
console.log('Submitted:', { email, interest });
// Show success modal and confetti
successModal.classList.remove('hidden');
fireConfetti();
// Reset form
waitlistForm.reset();
});
// Close modal
document.getElementById('closeModal').addEventListener('click', () => {
successModal.classList.add('hidden');
});
// Close modal when clicking outside
successModal.addEventListener('click', (e) => {
if (e.target === successModal) {
successModal.classList.add('hidden');
}
});
// Initialize scroll effect
window.addEventListener('scroll', handleScroll);
// Initialize with scroll position 0
handleScroll();
// Smooth scroll to bottom button (optional)
document.querySelector('.scrolling-hint').addEventListener('click', () => {
window.scrollTo({
top: document.body.scrollHeight,
behavior: 'smooth'
});
});
// Artwork hover effects
document.querySelectorAll('.artwork').forEach(art => {
art.addEventListener('mouseenter', () => {
art.style.transform = 'translateY(-10px) scale(1.02)';
});
art.addEventListener('mouseleave', () => {
art.style.transform = 'translateY(0) scale(1)';
});
});
</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=Archger/my-test" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
</html>