page_prompt
stringlengths 55
1k
| page_output
stringlengths 11.4k
56.1k
| column_3
stringclasses 1
value |
|---|---|---|
Create a visually striking, animated, dark-themed landing page for a premium fruit juice brand. The design should feel organic, modern, and immersive — combining gradients, subtle glassmorphism, and smooth animations.and you can use any component you want
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pulp - Premium Organic Juices</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>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background: #0a0a0a;
color: #ffffff;
overflow-x: hidden;
}
.heading-font {
font-family: 'Playfair Display', serif;
}
/* Animated Background */
.animated-bg {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 0;
background: radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
radial-gradient(circle at 40% 20%, rgba(76, 175, 80, 0.15) 0%, transparent 50%);
animation: bgShift 20s ease-in-out infinite;
}
@keyframes bgShift {
0%, 100% {
background-position: 0% 50%, 100% 100%, 40% 20%;
}
50% {
background-position: 100% 50%, 0% 0%, 60% 80%;
}
}
/* Glassmorphism Card */
.glass-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
transform: translateY(-10px);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
/* Floating Animation */
@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
25% { transform: translateY(-20px) rotate(5deg); }
50% { transform: translateY(-10px) rotate(-5deg); }
75% { transform: translateY(-25px) rotate(3deg); }
}
.float-animation {
animation: float 6s ease-in-out infinite;
}
/* Gradient Text */
.gradient-text {
background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradientShift 3s ease infinite;
background-size: 200% 200%;
}
@keyframes gradientShift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #ff6b6b, #ffd93d);
border-radius: 10px;
}
/* Pulse Animation */
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.8; transform: scale(1.05); }
}
.pulse-animation {
animation: pulse 2s ease-in-out infinite;
}
/* Juice Drop Animation */
.juice-drop {
position: absolute;
width: 15px;
height: 15px;
border-radius: 50% 50% 50% 0;
transform: rotate(-45deg);
animation: drop 4s ease-in-out infinite;
}
@keyframes drop {
0% {
top: -10%;
opacity: 1;
}
90% {
opacity: 1;
}
100% {
top: 110%;
opacity: 0;
}
}
.drop-orange { background: #ff9800; animation-delay: 0s; left: 15%; }
.drop-red { background: #ff6b6b; animation-delay: 1s; left: 35%; }
.drop-green { background: #6bcf7f; animation-delay: 2s; left: 55%; }
.drop-yellow { background: #ffd93d; animation-delay: 3s; left: 75%; }
/* Slide in animations */
.slide-in-left {
opacity: 0;
transform: translateX(-50px);
animation: slideInLeft 1s ease forwards;
}
.slide-in-right {
opacity: 0;
transform: translateX(50px);
animation: slideInRight 1s ease forwards;
}
@keyframes slideInLeft {
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes slideInRight {
to {
opacity: 1;
transform: translateX(0);
}
}
/* Stagger animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
/* Button Hover Effect */
.btn-primary {
position: relative;
overflow: hidden;
background: linear-gradient(135deg, #ff6b6b, #ff9800);
transition: all 0.3s ease;
}
.btn-primary::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before {
width: 300px;
height: 300px;
}
.btn-primary span {
position: relative;
z-index: 1;
}
/* Organic Shapes */
.organic-shape {
position: absolute;
border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
filter: blur(40px);
opacity: 0.3;
animation: morphing 10s ease-in-out infinite;
}
@keyframes morphing {
0%, 100% {
border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
50% {
border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
}
}
/* Navbar */
nav {
backdrop-filter: blur(20px);
background: rgba(10, 10, 10, 0.7);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* Product Card Hover */
.product-image {
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image {
transform: scale(1.15) rotate(5deg);
}
/* Reveal on Scroll */
.reveal {
opacity: 0;
transform: translateY(30px);
transition: all 0.8s ease;
}
.reveal.active {
opacity: 1;
transform: translateY(0);
}
</style>
</head>
<body>
<div class="animated-bg"></div>
<!-- Juice Drops -->
<div class="juice-drop drop-orange"></div>
<div class="juice-drop drop-red"></div>
<div class="juice-drop drop-green"></div>
<div class="juice-drop drop-yellow"></div>
<!-- Navigation -->
<nav class="fixed w-full z-50 px-6 py-4">
<div class="max-w-7xl mx-auto flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-orange-500 to-red-500 flex items-center justify-center pulse-animation">
<i class="fas fa-lemon text-white"></i>
</div>
<span class="text-2xl font-bold heading-font">Pulp</span>
</div>
<div class="hidden md:flex items-center space-x-8">
<a href="#home" class="hover:text-orange-400 transition">Home</a>
<a href="#products" class="hover:text-orange-400 transition">Products</a>
<a href="#about" class="hover:text-orange-400 transition">About</a>
<a href="#contact" class="hover:text-orange-400 transition">Contact</a>
</div>
<button class="btn-primary px-6 py-2 rounded-full font-semibold">
<span>Order Now</span>
</button>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="relative min-h-screen flex items-center justify-center px-6 pt-20">
<div class="organic-shape w-96 h-96 bg-orange-500 top-20 -left-48"></div>
<div class="organic-shape w-80 h-80 bg-green-500 bottom-20 -right-40"></div>
<div class="max-w-7xl mx-auto grid md:grid-cols-2 gap-12 items-center relative z-10">
<div class="space-y-6 slide-in-left">
<p class="text-orange-400 uppercase tracking-widest text-sm font-semibold">100% Organic & Fresh</p>
<h1 class="text-6xl md:text-7xl font-bold heading-font leading-tight">
Pure Nature,<br/>
<span class="gradient-text">Bottled Fresh</span>
</h1>
<p class="text-gray-400 text-lg leading-relaxed">
Experience the authentic taste of handpicked fruits, cold-pressed to perfection.
No additives, no preservatives—just pure, organic goodness in every sip.
</p>
<div class="flex flex-wrap gap-4 pt-4">
<button class="btn-primary px-8 py-4 rounded-full font-semibold text-lg">
<span>Explore Collection</span>
</button>
<button class="glass-card px-8 py-4 rounded-full font-semibold text-lg flex items-center space-x-2">
<i class="fas fa-play"></i>
<span>Watch Story</span>
</button>
</div>
<div class="flex items-center space-x-8 pt-6">
<div>
<p class="text-3xl font-bold gradient-text">500+</p>
<p class="text-gray-400 text-sm">Happy Customers</p>
</div>
<div>
<p class="text-3xl font-bold gradient-text">100%</p>
<p class="text-gray-400 text-sm">Organic</p>
</div>
<div>
<p class="text-3xl font-bold gradient-text">12+</p>
<p class="text-gray-400 text-sm">Flavors</p>
</div>
</div>
</div>
<div class="relative slide-in-right delay-300">
<div class="float-animation relative z-10">
<div class="glass-card p-8 rounded-3xl">
<div class="aspect-square rounded-2xl bg-gradient-to-br from-orange-500/20 to-red-500/20 flex items-center justify-center overflow-hidden">
<div class="text-9xl pulse-animation">🍊</div>
</div>
</div>
</div>
<!-- Floating Info Cards -->
<div class="absolute -top-6 -left-6 glass-card p-4 rounded-2xl float-animation delay-100">
<div class="flex items-center space-x-3">
<div class="w-12 h-12 rounded-full bg-green-500/20 flex items-center justify-center">
<i class="fas fa-leaf text-green-400"></i>
</div>
<div>
<p class="font-semibold">100% Organic</p>
<p class="text-xs text-gray-400">Certified</p>
</div>
</div>
</div>
<div class="absolute -bottom-6 -right-6 glass-card p-4 rounded-2xl float-animation delay-300">
<div class="flex items-center space-x-3">
<div class="w-12 h-12 rounded-full bg-orange-500/20 flex items-center justify-center">
<i class="fas fa-star text-orange-400"></i>
</div>
<div>
<p class="font-semibold">4.9 Rating</p>
<p class="text-xs text-gray-400">250+ Reviews</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section class="relative py-24 px-6">
<div class="max-w-7xl mx-auto">
<div class="text-center mb-16 reveal">
<p class="text-orange-400 uppercase tracking-widest text-sm font-semibold mb-4">Why Choose Us</p>
<h2 class="text-5xl font-bold heading-font">Pure Ingredients, <span class="gradient-text">Pure Joy</span></h2>
</div>
<div class="grid md:grid-cols-3 gap-8">
<div class="glass-card p-8 text-center space-y-4 product-card reveal delay-100">
<div class="w-20 h-20 mx-auto rounded-full bg-gradient-to-br from-orange-500/20 to-red-500/20 flex items-center justify-center text-4xl">
🌱
</div>
<h3 class="text-2xl font-bold heading-font">100% Organic</h3>
<p class="text-gray-400">Sourced from certified organic farms, ensuring the highest quality and sustainability.</p>
</div>
<div class="glass-card p-8 text-center space-y-4 product-card reveal delay-200">
<div class="w-20 h-20 mx-auto rounded-full bg-gradient-to-br from-green-500/20 to-teal-500/20 flex items-center justify-center text-4xl">
❄️
</div>
<h3 class="text-2xl font-bold heading-font">Cold Pressed</h3>
<p class="text-gray-400">Our unique cold-press method preserves all nutrients and natural flavors.</p>
</div>
<div class="glass-card p-8 text-center space-y-4 product-card reveal delay-300">
<div class="w-20 h-20 mx-auto rounded-full bg-gradient-to-br from-yellow-500/20 to-orange-500/20 flex items-center justify-center text-4xl">
🚫
</div>
<h3 class="text-2xl font-bold heading-font">No Additives</h3>
<p class="text-gray-400">Zero preservatives, artificial colors, or added sugars. Just pure fruit.</p>
</div>
</div>
</div>
</section>
<!-- Products Section -->
<section id="products" class="relative py-24 px-6">
<div class="organic-shape w-96 h-96 bg-red-500 top-40 right-10"></div>
<div class="max-w-7xl mx-auto relative z-10">
<div class="text-center mb-16 reveal">
<p class="text-orange-400 uppercase tracking-widest text-sm font-semibold mb-4">Our Collection</p>
<h2 class="text-5xl font-bold heading-font">Signature <span class="gradient-text">Flavors</span></h2>
</div>
<div class="grid md:grid-cols-4 gap-6">
<!-- Product 1 -->
<div class="glass-card p-6 space-y-4 product-card reveal delay-100">
<div class="aspect-square rounded-2xl bg-gradient-to-br from-orange-500/20 to-red-500/20 flex items-center justify-center overflow-hidden">
<div class="text-8xl product-image">🍊</div>
</div>
<div>
<h3 class="text-xl font-bold heading-font">Orange Burst</h3>
<p class="text-gray-400 text-sm mb-3">Vitamin C powerhouse</p>
<div class="flex items-center justify-between">
<span class="text-2xl font-bold gradient-text">$4.99</span>
<button class="w-10 h-10 rounded-full bg-orange-500 hover:bg-orange-600 transition flex items-center justify-center">
<i class="fas fa-plus text-white"></i>
</button>
</div>
</div>
</div>
<!-- Product 2 -->
<div class="glass-card p-6 space-y-4 product-card reveal delay-200">
<div class="aspect-square rounded-2xl bg-gradient-to-br from-green-500/20 to-teal-500/20 flex items-center justify-center overflow-hidden">
<div class="text-8xl product-image">🥝</div>
</div>
<div>
<h3 class="text-xl font-bold heading-font">Kiwi Fresh</h3>
<p class="text-gray-400 text-sm mb-3">Tropical paradise</p>
<div class="flex items-center justify-between">
<span class="text-2xl font-bold gradient-text">$5.49</span>
<button class="w-10 h-10 rounded-full bg-green-500 hover:bg-green-600 transition flex items-center justify-center">
<i class="fas fa-plus text-white"></i>
</button>
</div>
</div>
</div>
<!-- Product 3 -->
<div class="glass-card p-6 space-y-4 product-card reveal delay-300">
<div class="aspect-square rounded-2xl bg-gradient-to-br from-red-500/20 to-pink-500/20 flex items-center justify-center overflow-hidden">
<div class="text-8xl product-image">🍓</div>
</div>
<div>
<h3 class="text-xl font-bold heading-font">Berry Bliss</h3>
<p class="text-gray-400 text-sm mb-3">Antioxidant rich</p>
<div class="flex items-center justify-between">
<span class="text-2xl font-bold gradient-text">$5.99</span>
<button class="w-10 h-10 rounded-full bg-red-500 hover:bg-red-600 transition flex items-center justify-center">
<i class="fas fa-plus text-white"></i>
</button>
</div>
</div>
</div>
<!-- Product 4 -->
<div class="glass-card p-6 space-y-4 product-card reveal delay-400">
<div class="aspect-square rounded-2xl bg-gradient-to-br from-yellow-500/20 to-orange-500/20 flex items-center justify-center overflow-hidden">
<div class="text-8xl product-image">🍍</div>
</div>
<div>
<h3 class="text-xl font-bold heading-font">Pineapple Pop</h3>
<p class="text-gray-400 text-sm mb-3">Island vibes</p>
<div class="flex items-center justify-between">
<span class="text-2xl font-bold gradient-text">$4.79</span>
<button class="w-10 h-10 rounded-full bg-yellow-500 hover:bg-yellow-600 transition flex items-center justify-center">
<i class="fas fa-plus text-white"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="relative py-24 px-6">
<div class="max-w-7xl mx-auto grid md:grid-cols-2 gap-16 items-center">
<div class="space-y-6 reveal">
<p class="text-orange-400 uppercase tracking-widest text-sm font-semibold">Our Story</p>
<h2 class="text-5xl font-bold heading-font leading-tight">
Crafted with <span class="gradient-text">Passion</span>,<br/>
Served with Love
</h2>
<p class="text-gray-400 text-lg leading-relaxed">
Since 2018, we've been on a mission to bring the purest, most delicious organic juices to health-conscious individuals. Every bottle tells a story of sustainable farming, careful selection, and cold-press perfection.
</p>
<p class="text-gray-400 text-lg leading-relaxed">
We partner with local organic farms, ensuring fair trade and environmental responsibility. Our commitment to quality means you get nothing but the best—nature's candy, liquid sunshine, bottled joy.
</p>
<div class="flex flex-wrap gap-4 pt-4">
<div class="glass-card px-6 py-3 rounded-full">
<p class="text-sm">🌍 <span class="text-gray-400">Sustainable Sourcing</span></p>
</div>
<div class="glass-card px-6 py-3 rounded-full">
<p class="text-sm">🏆 <span class="text-gray-400">Award Winning</span></p>
</div>
<div class="glass-card px-6 py-3 rounded-full">
<p class="text-sm">❤️ <span class="text-gray-400">Family Owned</span></p>
</div>
</div>
</div>
<div class="grid grid-cols-2 gap-4 reveal delay-300">
<div class="glass-card p-6 rounded-2xl space-y-2">
<div class="text-4xl">🌾</div>
<p class="text-3xl font-bold gradient-text">50+</p>
<p class="text-gray-400">Partner Farms</p>
</div>
<div class="glass-card p-6 rounded-2xl space-y-2 mt-12">
<div class="text-4xl">🍹</div>
<p class="text-3xl font-bold gradient-text">10K+</p>
<p class="text-gray-400">Bottles/Month</p>
</div>
<div class="glass-card p-6 rounded-2xl space-y-2">
<div class="text-4xl">⭐</div>
<p class="text-3xl font-bold gradient-text">4.9/5</p>
<p class="text-gray-400">Customer Rating</p>
</div>
<div class="glass-card p-6 rounded-2xl space-y-2 mt-12">
<div class="text-4xl">🏅</div>
<p class="text-3xl font-bold gradient-text">15+</p>
<p class="text-gray-400">Awards Won</p>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section class="relative py-24 px-6">
<div class="organic-shape w-80 h-80 bg-yellow-500 bottom-20 left-10"></div>
<div class="max-w-7xl mx-auto relative z-10">
<div class="text-center mb-16 reveal">
<p class="text-orange-400 uppercase tracking-widest text-sm font-semibold mb-4">Testimonials</p>
<h2 class="text-5xl font-bold heading-font">What Our <span class="gradient-text">Customers</span> Say</h2>
</div>
<div class="grid md:grid-cols-3 gap-8">
<div class="glass-card p-8 space-y-4 reveal delay-100">
<div class="flex text-yellow-400 text-xl">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<p class="text-gray-300 italic">"Best organic juice I've ever tasted! The orange burst is my morning ritual now. Fresh, natural, and absolutely delicious."</p>
<div class="flex items-center space-x-3 pt-4">
<div class="w-12 h-12 rounded-full bg-gradient-to-br from-orange-500 to-red-500"></div>
<div>
<p class="font-semibold">Sarah Johnson</p>
<p class="text-sm text-gray-400">Fitness Enthusiast</p>
</div>
</div>
</div>
<div class="glass-card p-8 space-y-4 reveal delay-200">
<div class="flex text-yellow-400 text-xl">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<p class="text-gray-300 italic">"Finally, a juice brand that doesn't compromise on quality. You can really taste the difference. Highly recommend!"</p>
<div class="flex items-center space-x-3 pt-4">
<div class="w-12 h-12 rounded-full bg-gradient-to-br from-green-500 to-teal-500"></div>
<div>
<p class="font-semibold">Michael Chen</p>
<p class="text-sm text-gray-400">Nutritionist</p>
</div>
</div>
</div>
<div class="glass-card p-8 space-y-4 reveal delay-300">
<div class="flex text-yellow-400 text-xl">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<p class="text-gray-300 italic">"Love knowing exactly what I'm drinking. Pure, organic, and packed with vitamins. My whole family is hooked!"</p>
<div class="flex items-center space-x-3 pt-4">
<div class="w-12 h-12 rounded-full bg-gradient-to-br from-yellow-500 to-orange-500"></div>
<div>
<p class="font-semibold">Emma Davis</p>
<p class="text-sm text-gray-400">Mother of Three</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="relative py-24 px-6">
<div class="max-w-4xl mx-auto text-center space-y-8 reveal">
<div class="glass-card p-16 rounded-3xl">
<h2 class="text-5xl font-bold heading-font mb-6">
Ready to <span class="gradient-text">Transform</span><br/>
Your Daily Routine?
</h2>
<p class="text-gray-400 text-lg mb-8">
Join thousands of happy customers experiencing the pure joy of organic juices.
</p>
<div class="flex flex-wrap gap-4 justify-center">
<button class="btn-primary px-10 py-4 rounded-full font-semibold text-lg">
<span>Shop Now</span>
</button>
<button class="glass-card px-10 py-4 rounded-full font-semibold text-lg">
Subscribe & Save 20%
</button>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer id="contact" class="relative py-16 px-6 border-t border-white/10">
<div class="max-w-7xl mx-auto">
<div class="grid md:grid-cols-4 gap-12 mb-12">
<div class="space-y-4">
<div class="flex items-center space-x-2">
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-orange-500 to-red-500 flex items-center justify-center">
<i class="fas fa-lemon text-white"></i>
</div>
<span class="text-2xl font-bold heading-font">Pulp</span>
</div>
<p class="text-gray-400">Pure nature, bottled fresh. Experience organic goodness in every sip.</p>
<div class="flex space-x-4">
<a href="#" class="w-10 h-10 rounded-full glass-card flex items-center justify-center hover:bg-orange-500 transition">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="w-10 h-10 rounded-full glass-card flex items-center justify-center hover:bg-orange-500 transition">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="w-10 h-10 rounded-full glass-card flex items-center justify-center hover:bg-orange-500 transition">
<i class="fab fa-twitter"></i>
</a>
</div>
</div>
<div>
<h3 class="font-bold mb-4 heading-font text-xl">Quick Links</h3>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-orange-400 transition">About Us</a></li>
<li><a href="#" class="hover:text-orange-400 transition">Our Products</a></li>
<li><a href="#" class="hover:text-orange-400 transition">Sustainability</a></li>
<li><a href="#" class="hover:text-orange-400 transition">Blog</a></li>
</ul>
</div>
<div>
<h3 class="font-bold mb-4 heading-font text-xl">Support</h3>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-orange-400 transition">FAQ</a></li>
<li><a href="#" class="hover:text-orange-400 transition">Shipping</a></li>
<li><a href="#" class="hover:text-orange-400 transition">Returns</a></li>
<li><a href="#" class="hover:text-orange-400 transition">Contact</a></li>
</ul>
</div>
<div>
<h3 class="font-bold mb-4 heading-font text-xl">Newsletter</h3>
<p class="text-gray-400 mb-4 text-sm">Subscribe for exclusive offers and updates.</p>
<div class="flex gap-2">
<input type="email" placeholder="Your email" class="flex-1 bg-white/5 border border-white/10 rounded-lg px-4 py-2 focus:outline-none focus:border-orange-400 transition">
<button class="btn-primary px-4 py-2 rounded-lg">
<span><i class="fas fa-arrow-right"></i></span>
</button>
</div>
</div>
</div>
<div class="border-t border-white/10 pt-8 text-center text-gray-400 text-sm">
<p>© 2024 Pulp. All rights reserved. Made with ❤️ for juice lovers.</p>
</div>
</div>
</footer>
<script>
// 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'
});
}
});
});
// Reveal on scroll animation
function reveal() {
const reveals = document.querySelectorAll('.reveal');
reveals.forEach(element => {
const windowHeight = window.innerHeight;
const elementTop = element.getBoundingClientRect().top;
const elementVisible = 150;
if (elementTop < windowHeight - elementVisible) {
element.classList.add('active');
}
});
}
window.addEventListener('scroll', reveal);
reveal(); // Check on page load
// Add parallax effect to organic shapes
document.addEventListener('mousemove', (e) => {
const shapes = document.querySelectorAll('.organic-shape');
const mouseX = e.clientX / window.innerWidth;
const mouseY = e.clientY / window.innerHeight;
shapes.forEach((shape, index) => {
const speed = (index + 1) * 20;
const x = (mouseX - 0.5) * speed;
const y = (mouseY - 0.5) * speed;
shape.style.transform = `translate(${x}px, ${y}px)`;
});
});
// Add interactive product cards
const productCards = document.querySelectorAll('.product-card');
productCards.forEach(card => {
card.addEventListener('mouseenter', function() {
this.style.transform = 'translateY(-10px) scale(1.02)';
});
card.addEventListener('mouseleave', function() {
this.style.transform = 'translateY(0) scale(1)';
});
});
// Navbar background on scroll
const nav = document.querySelector('nav');
window.addEventListener('scroll', () => {
if (window.scrollY > 100) {
nav.style.background = 'rgba(10, 10, 10, 0.95)';
} else {
nav.style.background = 'rgba(10, 10, 10, 0.7)';
}
});
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Build a fully functional and working habit tracker app
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Habit Tracker</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.header {
text-align: center;
color: white;
margin-bottom: 40px;
animation: fadeInDown 0.6s ease-out;
}
.header h1 {
font-size: 3rem;
font-weight: 700;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.header p {
font-size: 1.1rem;
opacity: 0.9;
}
.main-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-bottom: 40px;
}
@media (max-width: 768px) {
.main-content {
grid-template-columns: 1fr;
}
.header h1 {
font-size: 2rem;
}
}
.card {
background: white;
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: fadeInUp 0.6s ease-out;
}
.card h2 {
color: #333;
font-size: 1.5rem;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}
.card h2::before {
content: '';
display: inline-block;
width: 5px;
height: 30px;
background: linear-gradient(180deg, #667eea, #764ba2);
border-radius: 3px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
color: #555;
font-weight: 600;
font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 12px 15px;
border: 2px solid #e0e0e0;
border-radius: 10px;
font-size: 1rem;
font-family: inherit;
transition: all 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-primary {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
width: 100%;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
background: #f0f0f0;
color: #333;
font-size: 0.9rem;
padding: 8px 16px;
}
.btn-secondary:hover {
background: #e0e0e0;
}
.btn-danger {
background: #ff6b6b;
color: white;
font-size: 0.9rem;
padding: 8px 16px;
}
.btn-danger:hover {
background: #ff5252;
}
.btn-success {
background: #51cf66;
color: white;
font-size: 0.9rem;
padding: 8px 16px;
}
.btn-success:hover {
background: #40c057;
}
.habits-list {
display: flex;
flex-direction: column;
gap: 15px;
}
.habit-item {
background: #f8f9fa;
padding: 20px;
border-radius: 15px;
border-left: 5px solid #667eea;
transition: all 0.3s ease;
animation: slideIn 0.3s ease-out;
}
.habit-item:hover {
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
transform: translateX(5px);
}
.habit-item.completed {
border-left-color: #51cf66;
background: #f1fce4;
}
.habit-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: 12px;
}
.habit-title {
font-size: 1.1rem;
font-weight: 600;
color: #333;
}
.habit-streak {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 6px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
}
.habit-description {
color: #666;
font-size: 0.9rem;
margin-bottom: 12px;
}
.habit-frequency {
color: #999;
font-size: 0.85rem;
margin-bottom: 12px;
}
.habit-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.empty-state {
text-align: center;
padding: 40px 20px;
color: #999;
}
.empty-state-icon {
font-size: 3rem;
margin-bottom: 15px;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
margin-bottom: 20px;
}
@media (max-width: 600px) {
.stats-grid {
grid-template-columns: 1fr;
}
}
.stat-box {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 20px;
border-radius: 15px;
text-align: center;
}
.stat-value {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 5px;
}
.stat-label {
font-size: 0.9rem;
opacity: 0.9;
}
.chart-container {
position: relative;
height: 300px;
margin-top: 20px;
}
.tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
border-bottom: 2px solid #e0e0e0;
}
.tab {
padding: 12px 20px;
background: none;
border: none;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
color: #999;
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
position: relative;
bottom: -2px;
}
.tab.active {
color: #667eea;
border-bottom-color: #667eea;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
animation: fadeIn 0.3s ease-out;
}
.success-badge {
display: inline-flex;
align-items: center;
gap: 5px;
background: #d3f9d8;
color: #2f9e44;
padding: 6px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
}
.today-section {
margin-bottom: 20px;
}
.today-title {
font-size: 1.2rem;
font-weight: 600;
color: #333;
margin-bottom: 15px;
}
.progress-ring {
transform: rotate(-90deg);
margin: 0 auto;
}
.progress-ring-circle {
transition: stroke-dashoffset 0.35s;
transform-origin: 50% 50%;
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-10px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
animation: fadeIn 0.3s ease-out;
}
.modal.show {
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background: white;
padding: 30px;
border-radius: 20px;
max-width: 500px;
width: 90%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-header {
font-size: 1.5rem;
font-weight: 700;
color: #333;
margin-bottom: 20px;
}
.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #999;
float: right;
transition: color 0.3s ease;
}
.modal-close:hover {
color: #333;
}
.notification {
position: fixed;
top: 20px;
right: 20px;
background: white;
padding: 15px 25px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
animation: slideInRight 0.3s ease-out;
z-index: 2000;
}
.notification.success {
border-left: 4px solid #51cf66;
}
.notification.error {
border-left: 4px solid #ff6b6b;
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.calendar-mini {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 5px;
margin-top: 15px;
}
.calendar-day {
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
font-size: 0.8rem;
background: #f0f0f0;
color: #666;
}
.calendar-day.completed {
background: #51cf66;
color: white;
font-weight: 600;
}
.header-actions {
display: flex;
gap: 10px;
justify-content: center;
margin-bottom: 20px;
flex-wrap: wrap;
}
.filter-btn {
padding: 8px 16px;
border: 2px solid rgba(255, 255, 255, 0.5);
background: rgba(255, 255, 255, 0.1);
color: white;
border-radius: 20px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}
.filter-btn.active {
background: white;
color: #667eea;
border-color: white;
}
.filter-btn:hover {
background: rgba(255, 255, 255, 0.2);
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>🎯 Habit Tracker</h1>
<p>Build better habits, one day at a time</p>
<div class="header-actions">
<button class="filter-btn active" onclick="filterHabits('all')">All Habits</button>
<button class="filter-btn" onclick="filterHabits('today')">Today</button>
<button class="filter-btn" onclick="filterHabits('completed')">Completed</button>
</div>
</div>
<div class="main-content">
<!-- Add Habit Card -->
<div class="card">
<h2>Add New Habit</h2>
<form id="habitForm" onsubmit="addHabit(event)">
<div class="form-group">
<label for="habitName">Habit Name</label>
<input type="text" id="habitName" placeholder="e.g., Morning Meditation" required>
</div>
<div class="form-group">
<label for="habitDescription">Description</label>
<textarea id="habitDescription" placeholder="What's your goal?" rows="2"></textarea>
</div>
<div class="form-group">
<label for="habitFrequency">Frequency</label>
<select id="habitFrequency" required>
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="custom">Custom</option>
</select>
</div>
<div class="form-group">
<label for="habitColor">Color</label>
<select id="habitColor" required>
<option value="#667eea">Purple</option>
<option value="#51cf66">Green</option>
<option value="#ff6b6b">Red</option>
<option value="#ffa94d">Orange</option>
<option value="#74c0fc">Blue</option>
</select>
</div>
<button type="submit" class="btn btn-primary">+ Add Habit</button>
</form>
</div>
<!-- Habits Display Card -->
<div class="card">
<div class="tabs">
<button class="tab active" onclick="switchTab('habits-today')">Today</button>
<button class="tab" onclick="switchTab('habits-all')">All Habits</button>
<button class="tab" onclick="switchTab('stats')">Statistics</button>
</div>
<!-- Today Tab -->
<div id="habits-today" class="tab-content active">
<div class="today-section">
<div class="stat-box" style="margin-bottom: 20px;">
<div class="stat-value" id="todayProgress">0%</div>
<div class="stat-label">Today's Progress</div>
</div>
<div id="todayHabits" class="habits-list">
<div class="empty-state">
<div class="empty-state-icon">📝</div>
<p>No habits added yet. Start by adding your first habit!</p>
</div>
</div>
</div>
</div>
<!-- All Habits Tab -->
<div id="habits-all" class="tab-content">
<div id="allHabits" class="habits-list">
<div class="empty-state">
<div class="empty-state-icon">📝</div>
<p>No habits added yet. Start by adding your first habit!</p>
</div>
</div>
</div>
<!-- Statistics Tab -->
<div id="stats" class="tab-content">
<div class="stats-grid">
<div class="stat-box">
<div class="stat-value" id="totalHabits">0</div>
<div class="stat-label">Total Habits</div>
</div>
<div class="stat-box">
<div class="stat-value" id="completedToday">0</div>
<div class="stat-label">Completed Today</div>
</div>
<div class="stat-box">
<div class="stat-value" id="bestStreak">0</div>
<div class="stat-label">Best Streak</div>
</div>
<div class="stat-box">
<div class="stat-value" id="totalCompleted">0</div>
<div class="stat-label">Total Completed</div>
</div>
</div>
<div class="chart-container">
<canvas id="statsChart"></canvas>
</div>
</div>
</div>
</div>
</div>
<!-- Modal for editing habits -->
<div id="editModal" class="modal">
<div class="modal-content">
<button class="modal-close" onclick="closeEditModal()">×</button>
<div class="modal-header">Edit Habit</div>
<form id="editForm" onsubmit="updateHabit(event)">
<input type="hidden" id="editHabitId">
<div class="form-group">
<label for="editHabitName">Habit Name</label>
<input type="text" id="editHabitName" required>
</div>
<div class="form-group">
<label for="editHabitDescription">Description</label>
<textarea id="editHabitDescription" rows="2"></textarea>
</div>
<div class="form-group">
<label for="editHabitFrequency">Frequency</label>
<select id="editHabitFrequency" required>
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="custom">Custom</option>
</select>
</div>
<button type="submit" class="btn btn-primary">Save Changes</button>
</form>
</div>
</div>
<script>
// Initialize data structure
let habits = JSON.parse(localStorage.getItem('habits')) || [];
let currentFilter = 'all';
let statsChart = null;
// Add habit
function addHabit(event) {
event.preventDefault();
const name = document.getElementById('habitName').value;
const description = document.getElementById('habitDescription').value;
const frequency = document.getElementById('habitFrequency').value;
const color = document.getElementById('habitColor').value;
const habit = {
id: Date.now(),
name: name,
description: description,
frequency: frequency,
color: color,
createdDate: new Date().toISOString().split('T')[0],
completedDates: [],
streak: 0
};
habits.push(habit);
saveHabits();
document.getElementById('habitForm').reset();
renderHabits();
showNotification('Habit added successfully!', 'success');
}
// Delete habit
function deleteHabit(id) {
if (confirm('Are you sure you want to delete this habit?')) {
habits = habits.filter(h => h.id !== id);
saveHabits();
renderHabits();
showNotification('Habit deleted', 'success');
}
}
// Toggle habit completion
function toggleHabit(id) {
const habit = habits.find(h => h.id === id);
if (!habit) return;
const today = new Date().toISOString().split('T')[0];
const index = habit.completedDates.indexOf(today);
if (index > -1) {
habit.completedDates.splice(index, 1);
} else {
habit.completedDates.push(today);
}
updateStreak(habit);
saveHabits();
renderHabits();
updateStatistics();
}
// Update streak calculation
function updateStreak(habit) {
let streak = 0;
let currentDate = new Date();
while (true) {
const dateStr = currentDate.toISOString().split('T')[0];
if (habit.completedDates.includes(dateStr)) {
streak++;
currentDate.setDate(currentDate.getDate() - 1);
} else {
break;
}
}
habit.streak = streak;
}
// Save to localStorage
function saveHabits() {
localStorage.setItem('habits', JSON.stringify(habits));
}
// Render habits
function renderHabits() {
const todayHabits = document.getElementById('todayHabits');
const allHabits = document.getElementById('allHabits');
const today = new Date().toISOString().split('T')[0];
const filteredHabits = habits.filter(h => {
if (currentFilter === 'today') {
return true; // Show all for today view
} else if (currentFilter === 'completed') {
return h.completedDates.includes(today);
}
return true; // all
});
// Render today's habits
if (filteredHabits.length === 0) {
todayHabits.innerHTML = `
<div class="empty-state">
<div class="empty-state-icon">📝</div>
<p>No habits to complete today. Add one to get started!</p>
</div>
`;
allHabits.innerHTML = todayHabits.innerHTML;
} else {
todayHabits.innerHTML = filteredHabits.map(habit => createHabitElement(habit, today)).join('');
allHabits.innerHTML = habits.map(habit => createHabitElement(habit, today)).join('');
}
updateStatistics();
}
// Create habit element
function createHabitElement(habit, today) {
const isCompleted = habit.completedDates.includes(today);
const lastDays = getLastSevenDays(habit);
return `
<div class="habit-item ${isCompleted ? 'completed' : ''}" style="border-left-color: ${habit.color}">
<div class="habit-header">
<div>
<div class="habit-title">${habit.name}</div>
${habit.description ? `<div class="habit-description">${habit.description}</div>` : ''}
<div class="habit-frequency">📅 ${habit.frequency.charAt(0).toUpperCase() + habit.frequency.slice(1)}</div>
</div>
<div class="habit-streak" style="background: linear-gradient(135deg, ${habit.color}, ${shadeColor(habit.color, 20)})">
🔥 ${habit.streak}
</div>
</div>
<div class="calendar-mini">
${lastDays.map(day => `
<div class="calendar-day ${habit.completedDates.includes(day) ? 'completed' : ''}">
${new Date(day).getDate()}
</div>
`).join('')}
</div>
<div class="habit-actions">
<button class="btn ${isCompleted ? 'btn-secondary' : 'btn-success'}" onclick="toggleHabit(${habit.id})">
${isCompleted ? '✓ Completed' : '+ Complete'}
</button>
<button class="btn btn-secondary" onclick="editHabit(${habit.id})">Edit</button>
<button class="btn btn-danger" onclick="deleteHabit(${habit.id})">Delete</button>
</div>
</div>
`;
}
// Get last 7 days
function getLastSevenDays(habit) {
const days = [];
for (let i = 6; i >= 0; i--) {
const date = new Date();
date.setDate(date.getDate() - i);
days.push(date.toISOString().split('T')[0]);
}
return days;
}
// Edit habit
function editHabit(id) {
const habit = habits.find(h => h.id === id);
if (!habit) return;
document.getElementById('editHabitId').value = habit.id;
document.getElementById('editHabitName').value = habit.name;
document.getElementById('editHabitDescription').value = habit.description;
document.getElementById('editHabitFrequency').value = habit.frequency;
document.getElementById('editModal').classList.add('show');
}
// Update habit
function updateHabit(event) {
event.preventDefault();
const id = parseInt(document.getElementById('editHabitId').value);
const habit = habits.find(h => h.id === id);
if (!habit) return;
habit.name = document.getElementById('editHabitName').value;
habit.description = document.getElementById('editHabitDescription').value;
habit.frequency = document.getElementById('editHabitFrequency').value;
saveHabits();
renderHabits();
closeEditModal();
showNotification('Habit updated successfully!', 'success');
}
// Close edit modal
function closeEditModal() {
document.getElementById('editModal').classList.remove('show');
}
// Switch tabs
function switchTab(tabName) {
document.querySelectorAll('.tab-content').forEach(el => el.classList.remove('active'));
document.querySelectorAll('.tab').forEach(el => el.classList.remove('active'));
document.getElementById(tabName).classList.add('active');
event.target.classList.add('active');
if (tabName === 'stats') {
setTimeout(() => updateChart(), 100);
}
}
// Filter habits
function filterHabits(filter) {
currentFilter = filter;
document.querySelectorAll('.filter-btn').forEach(btn => btn.classList.remove('active'));
event.target.classList.add('active');
renderHabits();
}
// Update statistics
function updateStatistics() {
const today = new Date().toISOString().split('T')[0];
const completedToday = habits.filter(h => h.completedDates.includes(today)).length;
const totalCompleted = habits.reduce((sum, h) => sum + h.completedDates.length, 0);
const bestStreak = Math.max(0, ...habits.map(h => h.streak));
const todayProgress = habits.length > 0 ? Math.round((completedToday / habits.length) * 100) : 0;
document.getElementById('totalHabits').textContent = habits.length;
document.getElementById('completedToday').textContent = completedToday;
document.getElementById('bestStreak').textContent = bestStreak;
document.getElementById('totalCompleted').textContent = totalCompleted;
document.getElementById('todayProgress').textContent = todayProgress + '%';
}
// Update chart
function updateChart() {
const ctx = document.getElementById('statsChart');
if (!ctx) return;
const last7Days = [];
const completionData = [];
for (let i = 6; i >= 0; i--) {
const date = new Date();
date.setDate(date.getDate() - i);
const dateStr = date.toISOString().split('T')[0];
last7Days.push(date.toLocaleDateString('en-US', { weekday: 'short' }));
const completed = habits.filter(h => h.completedDates.includes(dateStr)).length;
completionData.push(completed);
}
if (statsChart) {
statsChart.destroy();
}
statsChart = new Chart(ctx, {
type: 'line',
data: {
labels: last7Days,
datasets: [{
label: 'Completed Habits',
data: completionData,
borderColor: '#667eea',
backgroundColor: 'rgba(102, 126, 234, 0.1)',
borderWidth: 3,
fill: true,
tension: 0.4,
pointBackgroundColor: '#667eea',
pointBorderColor: 'white',
pointBorderWidth: 2,
pointRadius: 6,
pointHoverRadius: 8
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: true,
labels: {
usePointStyle: true,
padding: 20,
font: { size: 12, weight: 'bold' }
}
}
},
scales: {
y: {
beginAtZero: true,
max: Math.max(...completionData, habits.length),
grid: {
color: 'rgba(0, 0, 0, 0.05)'
}
},
x: {
grid: {
display: false
}
}
}
}
});
}
// Show notification
function showNotification(message, type) {
const notification = document.createElement('div');
notification.className = `notification ${type}`;
notification.textContent = message;
document.body.appendChild(notification);
setTimeout(() => {
notification.style.animation = 'fadeIn 0.3s ease-out reverse';
setTimeout(() => notification.remove(), 300);
}, 3000);
}
// Shade color helper
function shadeColor(color, percent) {
let R = parseInt(color.substring(1,3), 16);
let G = parseInt(color.substring(3,5), 16);
let B = parseInt(color.substring(5,7), 16);
R = parseInt(R * (100 + percent) / 100);
G = parseInt(G * (100 + percent) / 100);
B = parseInt(B * (100 + percent) / 100);
R = (R<255)?R:255;
G = (G<255)?G:255;
B = (B<255)?B:255;
let RR = ((R.toString(16).length==1)?"0"+R.toString(16):R.toString(16));
let GG = ((G.toString(16).length==1)?"0"+G.toString(16):G.toString(16));
let BB = ((B.toString(16).length==1)?"0"+B.toString(16):B.toString(16));
return "#"+RR+GG+BB;
}
// Close modal when clicking outside
window.onclick = function(event) {
const modal = document.getElementById('editModal');
if (event.target === modal) {
modal.classList.remove('show');
}
};
// Initial render
renderHabits();
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Build a web app that generates video script based on the trends of the internet and the vibe of the creator
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ScriptAI - Video Script Generator</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
overflow-x: hidden;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
color: white;
margin-bottom: 40px;
animation: slideDown 0.6s ease-out;
}
.header h1 {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 10px;
background: linear-gradient(135deg, #fff 0%, #e0e0ff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.header p {
font-size: 1.1rem;
opacity: 0.95;
letter-spacing: 0.5px;
}
.main-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-bottom: 30px;
animation: fadeIn 0.8s ease-out 0.2s both;
}
@media (max-width: 1024px) {
.main-content {
grid-template-columns: 1fr;
}
}
.card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.card h2 {
color: #667eea;
font-size: 1.5rem;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}
.card h2::before {
content: '';
display: inline-block;
width: 4px;
height: 24px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 2px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
color: #333;
font-weight: 600;
font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 12px 15px;
border: 2px solid #e0e0e0;
border-radius: 10px;
font-size: 1rem;
transition: all 0.3s ease;
font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
background-color: #f8f8ff;
}
.form-group textarea {
resize: vertical;
min-height: 100px;
}
.vibe-options {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 10px;
}
.vibe-option {
position: relative;
}
.vibe-option input[type="radio"] {
display: none;
}
.vibe-option label {
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
border: 2px solid #e0e0e0;
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
background: white;
margin: 0;
min-height: 60px;
}
.vibe-option input[type="radio"]:checked + label {
border-color: #667eea;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
font-weight: 600;
color: #667eea;
}
.trend-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 15px;
}
.trend-tag {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.9rem;
border: none;
}
.trend-tag:hover {
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.trend-tag.selected {
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}
.button {
padding: 14px 32px;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-generate {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
width: 100%;
justify-content: center;
margin-top: 10px;
}
.btn-generate:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}
.btn-generate:active {
transform: translateY(0);
}
.btn-generate.loading {
opacity: 0.7;
pointer-events: none;
}
.loading-spinner {
display: inline-block;
width: 16px;
height: 16px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.output-section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: fadeIn 0.8s ease-out 0.4s both;
}
.output-section h2 {
color: #667eea;
font-size: 1.5rem;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}
.output-section h2::before {
content: '';
display: inline-block;
width: 4px;
height: 24px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 2px;
}
.script-output {
background: #f8f8ff;
border-left: 4px solid #667eea;
padding: 20px;
border-radius: 10px;
line-height: 1.8;
color: #333;
margin-bottom: 20px;
max-height: 500px;
overflow-y: auto;
}
.script-output p {
margin-bottom: 12px;
}
.script-output strong {
color: #667eea;
}
.empty-state {
text-align: center;
padding: 40px 20px;
color: #999;
}
.empty-state svg {
width: 80px;
height: 80px;
margin-bottom: 20px;
opacity: 0.5;
}
.action-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.btn-action {
flex: 1;
min-width: 120px;
padding: 12px 20px;
background: #f0f0f0;
color: #333;
border: 2px solid #e0e0e0;
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-action:hover {
background: #667eea;
color: white;
border-color: #667eea;
}
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-top: 20px;
}
.stat-card {
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
padding: 15px;
border-radius: 10px;
border: 2px solid rgba(102, 126, 234, 0.2);
}
.stat-label {
color: #999;
font-size: 0.85rem;
margin-bottom: 5px;
}
.stat-value {
color: #667eea;
font-size: 1.5rem;
font-weight: 700;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.toast {
position: fixed;
bottom: 20px;
right: 20px;
background: #333;
color: white;
padding: 15px 20px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
animation: slideUp 0.3s ease-out;
z-index: 1000;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.tooltip {
position: relative;
display: inline-block;
cursor: help;
margin-left: 5px;
}
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
background: #333;
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 0.85rem;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
z-index: 1000;
}
.tooltip:hover::after {
opacity: 1;
}
.section-divider {
height: 1px;
background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
margin: 30px 0;
}
.featured-trends {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
margin-top: 15px;
}
.feature-badge {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 8px 12px;
border-radius: 8px;
text-align: center;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.feature-badge:hover {
transform: scale(1.05);
}
.feature-badge.active {
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}
.demo-content {
background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
padding: 20px;
border-radius: 10px;
margin-top: 20px;
border: 2px dashed rgba(102, 126, 234, 0.2);
}
.demo-content h3 {
color: #667eea;
margin-bottom: 10px;
font-size: 1.1rem;
}
.demo-content p {
color: #666;
line-height: 1.6;
margin-bottom: 8px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>✨ ScriptAI</h1>
<p>Generate viral video scripts powered by trending topics and your unique vibe</p>
</div>
<div class="main-content">
<!-- Input Section -->
<div class="card">
<h2>Create Your Script</h2>
<div class="form-group">
<label for="topic">Video Topic
<span class="tooltip" data-tooltip="What your video is about">❓</span>
</label>
<input type="text" id="topic" placeholder="e.g., morning routine, productivity hacks, tech review..." />
</div>
<div class="form-group">
<label>Creator Vibe
<span class="tooltip" data-tooltip="Your unique style and personality">❓</span>
</label>
<div class="vibe-options">
<div class="vibe-option">
<input type="radio" id="vibe-energetic" name="vibe" value="energetic" checked>
<label for="vibe-energetic">⚡ Energetic</label>
</div>
<div class="vibe-option">
<input type="radio" id="vibe-chill" name="vibe" value="chill">
<label for="vibe-chill">😎 Chill</label>
</div>
<div class="vibe-option">
<input type="radio" id="vibe-educational" name="vibe" value="educational">
<label for="vibe-educational">📚 Educational</label>
</div>
<div class="vibe-option">
<input type="radio" id="vibe-funny" name="vibe" value="funny">
<label for="vibe-funny">😂 Funny</label>
</div>
<div class="vibe-option">
<input type="radio" id="vibe-serious" name="vibe" value="serious">
<label for="vibe-serious">🎯 Serious</label>
</div>
<div class="vibe-option">
<input type="radio" id="vibe-motivational" name="vibe" value="motivational">
<label for="vibe-motivational">🚀 Motivational</label>
</div>
</div>
</div>
<div class="form-group">
<label>Internet Trends
<span class="tooltip" data-tooltip="Select trending formats and topics">❓</span>
</label>
<div class="featured-trends" id="trendsList"></div>
</div>
<div class="form-group">
<label for="details">Additional Details</label>
<textarea id="details" placeholder="Add specific points, jokes, or details you want included..."></textarea>
</div>
<div class="form-group">
<label for="duration">Video Duration
<span class="tooltip" data-tooltip="Approximate length of video">❓</span>
</label>
<select id="duration">
<option value="short">Short (0-1 min)</option>
<option value="medium" selected>Medium (1-3 min)</option>
<option value="long">Long (3-10 min)</option>
</select>
</div>
<button class="btn-generate" id="generateBtn">
Generate Script
</button>
</div>
<!-- Trending & Tips Section -->
<div class="card">
<h2>Trending Now</h2>
<div class="demo-content">
<h3>🔥 Hot Topics</h3>
<p>• AI tools & automation</p>
<p>• Side hustle ideas</p>
<p>• Mental health tips</p>
<p>• Fitness transformations</p>
</div>
<div class="section-divider"></div>
<h3 style="color: #667eea; margin-bottom: 15px;">💡 Pro Tips</h3>
<div style="color: #666; line-height: 1.8;">
<p><strong>Hook First:</strong> Grab attention in the first 3 seconds</p>
<p style="margin-top: 10px;"><strong>Be Authentic:</strong> Match your actual personality and vibe</p>
<p style="margin-top: 10px;"><strong>Add Value:</strong> Share tips, insights, or entertainment</p>
<p style="margin-top: 10px;"><strong>Call to Action:</strong> End with engagement request</p>
</div>
<div class="section-divider"></div>
<div class="stats">
<div class="stat-card">
<div class="stat-label">Scripts Generated</div>
<div class="stat-value" id="scriptCount">0</div>
</div>
<div class="stat-card">
<div class="stat-label">Avg. Words</div>
<div class="stat-value" id="avgWords">0</div>
</div>
<div class="stat-card">
<div class="stat-label">Trending Used</div>
<div class="stat-value" id="trendingUsed">0</div>
</div>
</div>
</div>
</div>
<!-- Output Section -->
<div class="output-section">
<h2>Your Generated Script</h2>
<div class="script-output" id="scriptOutput">
<div class="empty-state">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
</svg>
<p>Your script will appear here. Fill in the form and click "Generate Script" to begin!</p>
</div>
</div>
<div class="action-buttons" id="actionButtons" style="display: none;">
<button class="btn-action" onclick="copyToClipboard()">📋 Copy</button>
<button class="btn-action" onclick="downloadScript()">⬇️ Download</button>
<button class="btn-action" onclick="regenerateScript()">🔄 Regenerate</button>
</div>
</div>
</div>
<script>
// Trend data
const trendData = [
{ id: 1, name: '📱 TikTok Hook', category: 'format' },
{ id: 2, name: '🎬 Story Format', category: 'format' },
{ id: 3, name: '💬 Question Hook', category: 'hook' },
{ id: 4, name: '🤔 Relatable Content', category: 'style' },
{ id: 5, name: '⚡ Trending Sounds', category: 'style' },
{ id: 6, name: '🎯 Niche Audience', category: 'strategy' },
{ id: 7, name: '💡 Educational Value', category: 'style' },
{ id: 8, name: '🔥 Controversy/Take', category: 'strategy' },
];
let selectedTrends = [];
let generatedScripts = 0;
let totalWords = 0;
let currentScript = '';
// Initialize trends
function initTrends() {
const trendsList = document.getElementById('trendsList');
trendData.forEach(trend => {
const badge = document.createElement('div');
badge.className = 'feature-badge';
badge.textContent = trend.name;
badge.dataset.id = trend.id;
badge.onclick = () => toggleTrend(trend.id, badge);
trendsList.appendChild(badge);
});
}
function toggleTrend(id, element) {
if (selectedTrends.includes(id)) {
selectedTrends = selectedTrends.filter(t => t !== id);
element.classList.remove('active');
} else {
selectedTrends.push(id);
element.classList.add('active');
}
}
// Generate script with AI simulation
document.getElementById('generateBtn').addEventListener('click', generateScript);
async function generateScript() {
const topic = document.getElementById('topic').value;
const vibe = document.querySelector('input[name="vibe"]:checked').value;
const details = document.getElementById('details').value;
const duration = document.getElementById('duration').value;
if (!topic.trim()) {
showToast('Please enter a video topic!');
return;
}
const generateBtn = document.getElementById('generateBtn');
generateBtn.classList.add('loading');
generateBtn.innerHTML = '<span class="loading-spinner"></span> Generating...';
// Simulate API call
await new Promise(resolve => setTimeout(resolve, 2000));
const script = generateScriptContent(topic, vibe, details, duration);
displayScript(script);
// Update stats
generatedScripts++;
totalWords += script.split(' ').length;
document.getElementById('scriptCount').textContent = generatedScripts;
document.getElementById('avgWords').textContent = Math.round(totalWords / generatedScripts);
document.getElementById('trendingUsed').textContent = selectedTrends.length;
generateBtn.classList.remove('loading');
generateBtn.innerHTML = 'Generate Script';
showToast('Script generated successfully!');
}
function generateScriptContent(topic, vibe, details, duration) {
const vibeDescriptions = {
energetic: 'high-energy, fast-paced, enthusiastic',
chill: 'relaxed, laid-back, casual',
educational: 'informative, detailed, structured',
funny: 'humorous, witty, entertaining',
serious: 'professional, authoritative, focused',
motivational: 'inspiring, empowering, uplifting'
};
const hooks = {
energetic: [
`Wait till you see this ${topic}!`,
`This ${topic} trick BLEW MY MIND!`,
`POV: You just discovered the best ${topic} hack!`
],
chill: [
`Let me tell you about ${topic}...`,
`So here's the thing about ${topic}`,
`Real talk: ${topic} changed my life`
],
educational: [
`Today we're breaking down ${topic}`,
`Here's everything you need to know about ${topic}`,
`Let me teach you about ${topic} in 60 seconds`
],
funny: [
`This ${topic} joke never gets old`,
`Nobody talks about ${topic} like this!`,
`The truth about ${topic} is hilarious`
],
serious: [
`Let's be honest about ${topic}`,
`The reality of ${topic} most people ignore`,
`Critical analysis: ${topic} explained`
],
motivational: [
`Your ${topic} journey starts NOW`,
`Here's why ${topic} will change everything`,
`The ${topic} mindset that transforms lives`
]
};
const hooks_arr = hooks[vibe];
const selectedHook = hooks_arr[Math.floor(Math.random() * hooks_arr.length)];
let script = `[HOOK - First 3 seconds]\n${selectedHook}\n\n`;
script += `[INTRO]\nHey everyone! Today I want to share something amazing about ${topic}. If you're interested in ${topic} or want to level up your ${topic} game, stick around.\n\n`;
if (selectedTrends.length > 0) {
script += `[TRENDING ELEMENTS]\n`;
selectedTrends.forEach((trendId) => {
const trend = trendData.find(t => t.id === trendId);
if (trend) {
script += `• Include ${trend.name.toLowerCase()}\n`;
}
});
script += '\n';
}
script += `[MAIN CONTENT]\n`;
script += `The key to mastering ${topic} is understanding these three fundamentals:\n\n`;
script += `1. **Foundation**: Start with the basics of ${topic}. Most people skip this step, but it's crucial.\n`;
script += `2. **Practice**: Apply what you learn about ${topic} consistently. This is where the real growth happens.\n`;
script += `3. **Optimization**: Fine-tune your approach to ${topic} based on your results.\n\n`;
if (details.trim()) {
script += `[YOUR DETAILS]\n${details}\n\n`;
}
script += `[STORY/EXAMPLE]\n`;
script += `When I first started with ${topic}, I was making all the classic mistakes. But then I discovered this one thing that completely changed my perspective. Now I'm seeing incredible results, and you can too.\n\n`;
script += `[VALUE ADD]\n`;
script += `Here's the actionable takeaway: Focus on one aspect of ${topic} at a time. Don't try to do everything at once. Pick the one thing that resonates with you most and master it first.\n\n`;
script += `[CALL TO ACTION]\n`;
script += `If you found this helpful, drop a comment telling me what surprised you most about ${topic}. Don't forget to like and subscribe for more content on ${topic}. Thanks for watching!\n\n`;
script += `[OUTRO]\n`;
script += `See you in the next one! 👋`;
return script;
}
function displayScript(script) {
currentScript = script;
const output = document.getElementById('scriptOutput');
const actionButtons = document.getElementById('actionButtons');
const formattedScript = script
.replace(/\[([^\]]+)\]/g, '<strong>[$1]</strong>')
.replace(/\*\*([^\*]+)\*\*/g, '<strong>$1</strong>')
.replace(/\n\n/g, '</p><p>')
.replace(/\n/g, '<br>');
output.innerHTML = `<p>${formattedScript}</p>`;
actionButtons.style.display = 'flex';
}
function copyToClipboard() {
navigator.clipboard.writeText(currentScript).then(() => {
showToast('Script copied to clipboard!');
});
}
function downloadScript() {
const element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(currentScript));
element.setAttribute('download', 'script.txt');
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
showToast('Script downloaded!');
}
function regenerateScript() {
document.getElementById('generateBtn').click();
}
function showToast(message) {
const toast = document.createElement('div');
toast.className = 'toast';
toast.textContent = message;
document.body.appendChild(toast);
setTimeout(() => {
toast.style.animation = 'slideUp 0.3s ease-out reverse';
setTimeout(() => toast.remove(), 300);
}, 2500);
}
// Initialize
initTrends();
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Create a website for a bank with all the nesseccary pages...dashboard, landingpage, settings, just everything...do not be lazy just do it....
|
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SecureBank | Modern Banking Solutions</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
:root {
--primary: #2563eb;
--primary-dark: #1d4ed8;
--secondary: #0ea5e9;
--accent: #8b5cf6;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--dark: #1e293b;
--light: #f8fafc;
--gray: #94a3b8;
}
body {
background-color: #f1f5f9;
color: var(--dark);
}
.container {
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
}
/* Navigation */
nav {
background: linear-gradient(90deg, var(--primary), var(--secondary));
color: white;
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
font-size: 1.5rem;
}
.logo i {
font-size: 2rem;
color: var(--light);
}
.nav-links {
display: flex;
gap: 1.5rem;
align-items: center;
}
.nav-links a {
color: var(--light);
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
padding: 0.5rem 0.75rem;
border-radius: 4px;
}
.nav-links a:hover {
background: rgba(255, 255, 255, 0.1);
}
.nav-actions {
display: flex;
gap: 1rem;
align-items: center;
}
.btn {
padding: 0.5rem 1.25rem;
border-radius: 50px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border: none;
font-size: 0.9rem;
}
.btn-primary {
background-color: var(--light);
color: var(--primary);
}
.btn-outline {
background: transparent;
color: var(--light);
border: 1px solid var(--light);
}
.mobile-menu-btn {
display: none;
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, #e0f2fe, #dbeafe);
padding: 5rem 0;
position: relative;
overflow: hidden;
}
.hero::before {
content: "";
position: absolute;
width: 300px;
height: 300px;
border-radius: 50%;
background: var(--accent);
opacity: 0.1;
top: -150px;
right: -150px;
}
.hero::after {
content: "";
position: absolute;
width: 200px;
height: 200px;
border-radius: 50%;
background: var(--success);
opacity: 0.1;
bottom: -100px;
left: -100px;
}
.hero-content {
display: flex;
align-items: center;
gap: 4rem;
position: relative;
z-index: 1;
}
.hero-text {
flex: 1;
}
.hero-image {
flex: 1;
display: flex;
justify-content: center;
}
.hero-image img {
max-width: 100%;
border-radius: 20px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hero h1 {
font-size: 3.5rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1.5rem;
color: var(--dark);
}
.hero p {
font-size: 1.25rem;
color: var(--dark);
opacity: 0.8;
margin-bottom: 2rem;
}
.btn-group {
display: flex;
gap: 1rem;
margin-top: 2rem;
}
.btn-lg {
padding: 0.75rem 2rem;
font-size: 1rem;
}
/* Dashboard */
.dashboard {
padding: 4rem 0;
display: none;
}
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.section-title {
font-size: 2rem;
font-weight: 700;
color: var(--dark);
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}
.card {
background: white;
border-radius: 16px;
padding: 1.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.card-title {
font-size: 1.1rem;
font-weight: 600;
color: var(--dark);
}
.card-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}
.bg-primary {
background: rgba(37, 99, 235, 0.1);
color: var(--primary);
}
.bg-success {
background: rgba(16, 185, 129, 0.1);
color: var(--success);
}
.bg-warning {
background: rgba(245, 158, 11, 0.1);
color: var(--warning);
}
.card-value {
font-size: 2rem;
font-weight: 700;
margin: 0.5rem 0;
}
.card-footer {
display: flex;
align-items: center;
font-size: 0.9rem;
color: var(--gray);
}
.positive {
color: var(--success);
font-weight: 500;
}
.negative {
color: var(--danger);
font-weight: 500;
}
.chart-container {
background: white;
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.chart-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--dark);
}
.transactions {
background: white;
border-radius: 16px;
padding: 1.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.transaction-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.transaction-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.transaction-item {
display: flex;
align-items: center;
padding: 1rem;
border-radius: 12px;
background: #f8fafc;
transition: all 0.3s ease;
}
.transaction-item:hover {
background: #f1f5f9;
}
.transaction-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 1rem;
font-size: 1.25rem;
}
.transaction-details {
flex: 1;
}
.transaction-name {
font-weight: 500;
margin-bottom: 0.25rem;
}
.transaction-date {
font-size: 0.875rem;
color: var(--gray);
}
.transaction-amount {
font-weight: 600;
}
.income {
color: var(--success);
}
.expense {
color: var(--danger);
}
/* Settings */
.settings {
padding: 4rem 0;
display: none;
}
.settings-grid {
display: grid;
grid-template-columns: 300px 1fr;
gap: 2rem;
}
.settings-menu {
background: white;
border-radius: 16px;
padding: 1.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
height: fit-content;
}
.settings-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1.5rem;
color: var(--dark);
}
.menu-item {
padding: 0.75rem 1rem;
border-radius: 8px;
cursor: pointer;
margin-bottom: 0.5rem;
transition: all 0.3s ease;
color: var(--dark);
font-weight: 500;
}
.menu-item.active, .menu-item:hover {
background: #e0f2fe;
color: var(--primary);
}
.settings-content {
background: white;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.content-section {
display: none;
}
.content-section.active {
display: block;
}
.content-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1.5rem;
color: var(--dark);
}
.form-group {
margin-bottom: 1.5rem;
}
label {
display: block;
font-weight: 500;
margin-bottom: 0.5rem;
color: var(--dark);
}
input, select {
width: 100%;
padding: 0.75rem 1rem;
border-radius: 8px;
border: 1px solid #cbd5e1;
font-size: 1rem;
transition: all 0.3s ease;
}
input:focus, select:focus {
border-color: var(--primary);
outline: none;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}
.btn-save {
background: var(--primary);
color: white;
padding: 0.75rem 2rem;
border: none;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-save:hover {
background: var(--primary-dark);
}
.security-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-bottom: 1px solid #e2e8f0;
}
.security-name {
font-weight: 500;
}
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #cbd5e1;
transition: .4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--success);
}
input:checked + .slider:before {
transform: translateX(26px);
}
/* Footer */
footer {
background: var(--dark);
color: var(--light);
padding: 4rem 0 2rem;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.footer-column h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1.5rem;
color: white;
}
.footer-links {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.footer-links a {
color: var(--gray);
text-decoration: none;
transition: all 0.3s ease;
}
.footer-links a:hover {
color: white;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
color: white;
transition: all 0.3s ease;
}
.social-links a:hover {
background: var(--primary);
transform: translateY(-3px);
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 2rem;
text-align: center;
color: var(--gray);
font-size: 0.875rem;
}
/* Responsive Design */
@media (max-width: 1024px) {
.hero-content {
flex-direction: column;
text-align: center;
}
.btn-group {
justify-content: center;
}
.hero h1 {
font-size: 2.5rem;
}
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
.mobile-menu-btn {
display: block;
}
.form-row {
grid-template-columns: 1fr;
}
.settings-grid {
grid-template-columns: 1fr;
}
.settings-menu {
display: flex;
overflow-x: auto;
gap: 1rem;
padding: 1rem;
}
.menu-item {
white-space: nowrap;
}
}
@media (max-width: 480px) {
.hero h1 {
font-size: 2rem;
}
.btn-group {
flex-direction: column;
}
.card-value {
font-size: 1.75rem;
}
}
</style>
</head>
<body>
<!-- Navigation -->
<nav>
<div class="container nav-container">
<div class="logo">
<i class="fas fa-university"></i>
<span>SecureBank</span>
</div>
<div class="nav-links">
<a href="#" id="home-link">Home</a>
<a href="#" id="dashboard-link">Dashboard</a>
<a href="#" id="settings-link">Settings</a>
<a href="#">Accounts</a>
<a href="#">Transfers</a>
<a href="#">Support</a>
</div>
<div class="nav-actions">
<button class="btn btn-outline">Sign In</button>
<button class="btn btn-primary">Open Account</button>
</div>
<button class="mobile-menu-btn">
<i class="fas fa-bars"></i>
</button>
</div>
</nav>
<!-- Landing Page -->
<section id="landing-page">
<div class="hero">
<div class="container hero-content">
<div class="hero-text">
<h1>Banking Made Simple, Secure & Smart</h1>
<p>Experience financial freedom with our digital banking solutions. Manage your money, make payments, and grow your savings - all in one place.</p>
<div class="btn-group">
<button class="btn btn-primary btn-lg">Get Started</button>
<button class="btn btn-outline btn-lg">Learn More</button>
</div>
</div>
<div class="hero-image">
<img src="https://images.unsplash.com/photo-1551836022-d5d88e9218df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80" alt="Banking App">
</div>
</div>
</div>
<div class="container">
<!-- Features Section -->
<div style="padding: 4rem 0;">
<h2 class="section-title" style="text-align: center; margin-bottom: 3rem;">Why Choose SecureBank?</h2>
<div class="cards">
<div class="card">
<div class="card-header">
<div class="card-title">Secure Transactions</div>
<div class="card-icon bg-primary">
<i class="fas fa-shield-alt"></i>
</div>
</div>
<p>Military-grade encryption protects your transactions and personal information 24/7.</p>
</div>
<div class="card">
<div class="card-header">
<div class="card-title">Zero Fees</div>
<div class="card-icon bg-success">
<i class="fas fa-wallet"></i>
</div>
</div>
<p>No hidden charges, monthly fees, or minimum balance requirements on any accounts.</p>
</div>
<div class="card">
<div class="card-header">
<div class="card-title">24/7 Support</div>
<div class="card-icon bg-warning">
<i class="fas fa-headset"></i>
</div>
</div>
<p>Our dedicated support team is always ready to assist you with any banking needs.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Dashboard -->
<section id="dashboard-page" class="dashboard">
<div class="container">
<div class="dashboard-header">
<h2 class="section-title">Dashboard</h2>
<div>
<button class="btn btn-primary">New Transaction</button>
</div>
</div>
<div class="cards">
<div class="card">
<div class="card-header">
<div class="card-title">Total Balance</div>
<div class="card-icon bg-primary">
<i class="fas fa-wallet"></i>
</div>
</div>
<div class="card-value">$42,567.89</div>
<div class="card-footer">
<span class="positive">+2.3%</span> vs last month
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title">Monthly Income</div>
<div class="card-icon bg-success">
<i class="fas fa-arrow-down"></i>
</div>
</div>
<div class="card-value">$8,450.00</div>
<div class="card-footer">
<span class="positive">+5.1%</span> vs last month
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title">Monthly Expenses</div>
<div class="card-icon bg-warning">
<i class="fas fa-arrow-up"></i>
</div>
</div>
<div class="card-value">$3,210.50</div>
<div class="card-footer">
<span class="negative">-1.2%</span> vs last month
</div>
</div>
</div>
<div class="chart-container">
<div class="chart-header">
<div class="chart-title">Spending Analytics</div>
<select>
<option>Last 7 days</option>
<option>Last 30 days</option>
<option>Last 90 days</option>
</select>
</div>
<canvas id="spendingChart" height="300"></canvas>
</div>
<div class="transactions">
<div class="transaction-header">
<div class="chart-title">Recent Transactions</div>
<a href="#" style="color: var(--primary); text-decoration: none;">View All</a>
</div>
<div class="transaction-list">
<div class="transaction-item">
<div class="transaction-icon bg-primary">
<i class="fas fa-shopping-cart"></i>
</div>
<div class="transaction-details">
<div class="transaction-name">Amazon Purchase</div>
<div class="transaction-date">July 15, 2023 • Shopping</div>
</div>
<div class="transaction-amount expense">-$89.99</div>
</div>
<div class="transaction-item">
<div class="transaction-icon bg-success">
<i class="fas fa-money-check"></i>
</div>
<div class="transaction-details">
<div class="transaction-name">Salary Deposit</div>
<div class="transaction-date">July 14, 2023 • Salary</div>
</div>
<div class="transaction-amount income">+$5,200.00</div>
</div>
<div class="transaction-item">
<div class="transaction-icon bg-warning">
<i class="fas fa-utensils"></i>
</div>
<div class="transaction-details">
<div class="transaction-name">Restaurant Payment</div>
<div class="transaction-date">July 12, 2023 • Dining</div>
</div>
<div class="transaction-amount expense">-$64.30</div>
</div>
<div class="transaction-item">
<div class="transaction-icon bg-primary">
<i class="fas fa-mobile-alt"></i>
</div>
<div class="transaction-details">
<div class="transaction-name">Phone Bill</div>
<div class="transaction-date">July 10, 2023 • Utilities</div>
</div>
<div class="transaction-amount expense">-$75.00</div>
</div>
</div>
</div>
</div>
</section>
<!-- Settings -->
<section id="settings-page" class="settings">
<div class="container">
<h2 class="section-title" style="margin-bottom: 2rem;">Account Settings</h2>
<div class="settings-grid">
<div class="settings-menu">
<div class="settings-title">Preferences</div>
<div class="menu-item active" data-target="profile">Profile Information</div>
<div class="menu-item" data-target="security">Security Settings</div>
<div class="menu-item" data-target="notifications">Notifications</div>
<div class="menu-item" data-target="privacy">Privacy Settings</div>
<div class="menu-item" data-target="linked-accounts">Linked Accounts</div>
<div class="menu-item" data-target="statements">Statements & Tax</div>
</div>
<div class="settings-content">
<!-- Profile Section -->
<div class="content-section active" id="profile-section">
<h3 class="content-title">Profile Information</h3>
<form>
<div class="form-row">
<div class="form-group">
<label for="firstName">First Name</label>
<input type="text" id="firstName" value="John">
</div>
<div class="form-group">
<label for="lastName">Last Name</label>
<input type="text" id="lastName" value="Doe">
</div>
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" value="john.doe@example.com">
</div>
<div class="form-row">
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" value="(555) 123-4567">
</div>
<div class="form-group">
<label for="dob">Date of Birth</label>
<input type="date" id="dob" value="1985-05-15">
</div>
</div>
<div class="form-group">
<label for="address">Street Address</label>
<input type="text" id="address" value="123 Main Street">
</div>
<div class="form-row">
<div class="form-group">
<label for="city">City</label>
<input type="text" id="city" value="New York">
</div>
<div class="form-group">
<label for="state">State</label>
<select id="state">
<option>New York</option>
<option>California</option>
<option>Texas</option>
<option>Florida</option>
</select>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="zip">ZIP Code</label>
<input type="text" id="zip" value="10001">
</div>
<div class="form-group">
<label for="country">Country</label>
<select id="country">
<option>United States</option>
<option>Canada</option>
<option>United Kingdom</option>
</select>
</div>
</div>
<button type="button" class="btn-save">Save Changes</button>
</form>
</div>
<!-- Security Section -->
<div class="content-section" id="security-section">
<h3 class="content-title">Security Settings</h3>
<div class="security-item">
<div class="security-name">
<div style="font-weight: 600; margin-bottom: 0.25rem;">Password</div>
<div style="font-size: 0.875rem; color: var(--gray);">Last changed 3 months ago</div>
</div>
<button class="btn btn-outline">Change</button>
</div>
<div class="security-item">
<div class="security-name">
<div style="font-weight: 600; margin-bottom: 0.25rem;">Two-Factor Authentication</div>
<div style="font-size: 0.875rem; color: var(--gray);">Add an extra layer of security</div>
</div>
<label class="switch">
<input type="checkbox" checked>
<span class="slider"></span>
</label>
</div>
<div class="security-item">
<div class="security-name">
<div style="font-weight: 600; margin-bottom: 0.25rem;">Biometric Login</div>
<div style="font-size: 0.875rem; color: var(--gray);">Use fingerprint or face recognition</div>
</div>
<label class="switch">
<input type="checkbox">
<span class="slider"></span>
</label>
</div>
<div class="security-item">
<div class="security-name">
<div style="font-weight: 600; margin-bottom: 0.25rem;">Login Notifications</div>
<div style="font-size: 0.875rem; color: var(--gray);">Get alerts for new logins</div>
</div>
<label class="switch">
<input type="checkbox" checked>
<span class="slider"></span>
</label>
</div>
<div class="security-item">
<div class="security-name">
<div style="font-weight: 600; margin-bottom: 0.25rem;">Account Recovery</div>
<div style="font-size: 0.875rem; color: var(--gray);">Set up recovery options</div>
</div>
<button class="btn btn-outline">Set Up</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="footer-grid">
<div class="footer-column">
<div class="logo" style="margin-bottom: 1.5rem;">
<i class="fas fa-university"></i>
<span>SecureBank</span>
</div>
<p style="color: var(--gray); margin-bottom: 1.5rem;">Providing innovative banking solutions since 1998. Your security is our priority.</p>
<div class="social-links">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="footer-column">
<h3>Products</h3>
<div class="footer-links">
<a href="#">Checking Accounts</a>
<a href="#">Savings Accounts</a>
<a href="#">Credit Cards</a>
<a href="#">Mortgages</a>
<a href="#">Loans</a>
<a href="#">Investments</a>
</div>
</div>
<div class="footer-column">
<h3>Resources</h3>
<div class="footer-links">
<a href="#">Help Center</a>
<a href="#">Blog</a>
<a href="#">Financial Calculators</a>
<a href="#">Rates & Fees</a>
<a href="#">Security</a>
<a href="#">ATM Locator</a>
</div>
</div>
<div class="footer-column">
<h3>Company</h3>
<div class="footer-links">
<a href="#">About Us</a>
<a href="#">Careers</a>
<a href="#">Press</a>
<a href="#">Partners</a>
<a href="#">Contact Us</a>
<a href="#">Accessibility</a>
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2023 SecureBank. All rights reserved. | Member FDIC | Equal Housing Lender</p>
<p style="margin-top: 0.5rem;">SecureBank is a registered trademark of Secure Financial Services, Inc.</p>
</div>
</div>
</footer>
<script>
// Page Navigation
document.getElementById('home-link').addEventListener('click', function(e) {
e.preventDefault();
document.getElementById('landing-page').style.display = 'block';
document.getElementById('dashboard-page').style.display = 'none';
document.getElementById('settings-page').style.display = 'none';
});
document.getElementById('dashboard-link').addEventListener('click', function(e) {
e.preventDefault();
document.getElementById('landing-page').style.display = 'none';
document.getElementById('dashboard-page').style.display = 'block';
document.getElementById('settings-page').style.display = 'none';
initCharts();
});
document.getElementById('settings-link').addEventListener('click', function(e) {
e.preventDefault();
document.getElementById('landing-page').style.display = 'none';
document.getElementById('dashboard-page').style.display = 'none';
document.getElementById('settings-page').style.display = 'block';
});
// Settings menu navigation
const menuItems = document.querySelectorAll('.menu-item');
menuItems.forEach(item => {
item.addEventListener('click', function() {
// Remove active class from all items
menuItems.forEach(i => i.classList.remove('active'));
// Add active class to clicked item
this.classList.add('active');
// Hide all content sections
document.querySelectorAll('.content-section').forEach(section => {
section.classList.remove('active');
});
// Show the targeted content section
const target = this.getAttribute('data-target');
document.getElementById(target + '-section').classList.add('active');
});
});
// Initialize Charts
function initCharts() {
const ctx = document.getElementById('spendingChart').getContext('2d');
const spendingChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
datasets: [
{
label: 'Income',
data: [6500, 7200, 7800, 8100, 7900, 8300, 8450],
borderColor: '#10b981',
backgroundColor: 'rgba(16, 185, 129, 0.1)',
borderWidth: 3,
tension: 0.3,
fill: true
},
{
label: 'Expenses',
data: [3400, 3800, 3200, 3500, 3300, 3100, 3210],
borderColor: '#ef4444',
backgroundColor: 'rgba(239, 68, 68, 0.1)',
borderWidth: 3,
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top'
}
},
scales: {
y: {
beginAtZero: true,
grid: {
color: 'rgba(0, 0, 0, 0.05)'
}
},
x: {
grid: {
display: false
}
}
}
}
});
}
// Initialize charts when dashboard is loaded for the first time
document.addEventListener('DOMContentLoaded', function() {
// Show landing page by default
document.getElementById('landing-page').style.display = 'block';
// Set up mobile menu toggle
const mobileMenuBtn = document.querySelector('.mobile-menu-btn');
const navLinks = document.querySelector('.nav-links');
mobileMenuBtn.addEventListener('click', function() {
navLinks.style.display = navLinks.style.display === 'flex' ? 'none' : 'flex';
});
});
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
"Cafeni" is a smart digital wallet and loyalty platform connecting users with nearby coffee shops. Through the app, users can: View menus and prices of partnered coffee shops. Pre-order and pay using their in-app wallet. Collect points, cashback, or loyalty rewards for every purchase. Shops receive: Real-time order management dashboard. Customer insights and analytics. Integrated payment system that works in-store and online. ⚙ Main Features 🧍 For Users: 🔐 Account creation / login (email or phone via Supabase) 💳 In-app wallet — add funds, pay with QR, or use balance at any shop ☕ Coffee shop directory — see all shops with distance, rating, and menus 🛍 Pre-order & pay — order ahead and skip the line 🎁 Loyalty system — earn rewards, discounts, and cashback 🧾 Transaction history — view past payments and reorders 💬 Feedback & reviews — rate your experience 🏪 For Coffee Shops: 📋 Admin dashboard — manage menu, prices, orders, and shop info 📦 Order management — accept or reject inco.
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Cafeni - Smart Wallet & Loyalty for Coffee</title>
<style>
:root{
--bg: #0b1020;
--surface: #141a2a;
--card: rgba(255,255,255,0.08);
--text: #e9eaf6;
--muted: #a8b3cc;
--primary: #7c3aed;
--primary-2: #22d3ee;
--green: #10b981;
--red: #ef4444;
--shadow: 0 8px 24px rgba(0,0,0,.25);
--radius: 14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
color:var(--text);
background: radial-gradient(circle at 20% -10%, rgba(124,58,237,.25), transparent 40%),
radial-gradient(circle at 100% 0%, rgba(2,132,199,.25), transparent 40%),
linear-gradient(135deg, #0b0f1a 0%, #0a0e1b 100%);
background-attachment: fixed;
}
a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:0 20px}
/* Header */
header{
position: sticky; top:0; z-index: 999;
background: rgba(10,12,28,.85);
backdrop-filter: saturate(1.2) blur(6px);
border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:12px; font-weight:700; letter-spacing:.5px }
.brand-logo{
width:34px;height:34px; display:grid; place-items:center;
border-radius:9px;
background: linear-gradient(135deg, #7c3aed, #22d3ee);
box-shadow: inset 0 0 8px rgba(255,255,255,.6);
}
.nav-links{ display:flex; gap:14px; align-items:center; }
.btn{ border:0; border-radius:999px; padding:12px 18px; font-weight:600; cursor:pointer;
transition: transform .2s ease, box-shadow .2s ease;
}
.btn.primary{
background: linear-gradient(135deg, var(--primary), #8b5cf6);
color:white; box-shadow: 0 6px 16px rgba(124,58,237,.5);
}
.btn.secondary{
background: rgba(255,255,255,.08); color:#e5e7eb; border:1px solid rgba(255,255,255,.15);
}
.btn:hover{ transform: translateY(-1px); }
.avatar{ width:32px; height:32px; border-radius:50%; background: #334155; display:inline-block; }
/* Hero */
#hero{
padding:72px 0 40px;
position:relative;
overflow:hidden;
}
.hero-content{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap:40px; align-items:center; }
.hero-copy h1{ font-size: clamp(28px, 4vw, 46px); line-height:1.05; margin:0 0 12px; background: linear-gradient(135deg, #fff, #b7c8ff);
-webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-copy p{ color:var(--muted); font-size: clamp(14px, 1.6vw, 18px); margin:6px 0 18px; }
.cta{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.hero-visual{
height:320px; border-radius:22px; padding:16px;
background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(2,132,199,.25));
box-shadow: var(--shadow);
display:flex; align-items:center; justify-content:center;
position:relative; overflow:hidden;
}
.orb{ position:absolute; width:180px; height:180px; border-radius:50%; filter: blur(6px);
background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.9), transparent 40%),
radial-gradient(circle at 70% 70%, rgba(34,211,238,.9), transparent 40%);
animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%{ transform: translateY(0) } 50%{ transform: translateY(-18px) } 100%{ transform: translateY(0) } }
.feature-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin-top:8px; }
.card{ background: var(--card); border-radius: 12px; padding:16px; box-shadow: var(--shadow); border:1px solid rgba(255,255,255,.08); }
.icon{ width:28px; height:28px; display:inline-block; margin-right:10px; vertical-align:middle; }
.card-title{ font-weight:600; margin-bottom:6px; }
.card-desc{ color:var(--muted); font-size:14px; }
/* Sections */
section{ padding:48px 0; }
h2.section-title{ font-size: clamp(22px, 3vw, 32px); margin:0 0 8px; }
.sub{ color:var(--muted); margin:0 0 12px; }
/* Directory */
.shop-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.shop{ background: rgba(255,255,255,.05); border-radius: 14px; padding:14px; border:1px solid rgba(255,255,255,.08); display:flex; flex-direction:column; gap:8px; min-height:150px; }
.shop-header{ display:flex; align-items: center; justify-content:space-between; }
.shop-name{ font-weight:700; font-size:16px; }
.shop-meta{ font-size:12px; color:var(--muted); display:flex; gap:8px; align-items:center; }
.tag{ padding:4px 8px; border-radius:999px; background: rgba(124,58,237,.25); font-size:12px; }
.shop-actions{ margin-top:auto; display:flex; gap:8px; align-items:center; }
.shop-btn{ padding:10px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.25); cursor:pointer; background: rgba(255,255,255,.05); }
.shop-btn.primary{ background: linear-gradient(135deg, #22d3ee, #7c3aed); border:none; color:white; }
/* Wallet */
.wallet-wrap{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:14px; align-items:stretch; }
.wallet{ background: rgba(255,255,255,.06); border-radius:14px; padding:16px; border:1px solid rgba(255,255,255,.12); display:flex; flex-direction:column; gap:14px; }
.balance{ font-size:28px; font-weight:700; letter-spacing:.5px; }
.wallet-cta{ display:flex; gap:8px; align-items:center; justify-content:flex-start; flex-wrap:wrap; }
.input{ padding:10px 12px; border-radius:8px; border:1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); color:#fff; width:100%; }
.row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.panel{ background: rgba(255,255,255,.05); border-radius:12px; padding:12px; border:1px solid rgba(255,255,255,.1); }
.activity{ list-style:none; padding:0; margin:0; max-height:180px; overflow:auto; }
.activity li{ padding:8px 0; border-bottom:1px solid rgba(255,255,255,.08); font-size:13px; color: #e6e6e6; }
.progress{ height:10px; background: rgba(255,255,255,.15); border-radius:999px; overflow:hidden; }
.progress > span{ display:block; height:100%; background: linear-gradient(90deg, #22c55e, #84cc16); width:0%; }
/* Admin panel */
.admin{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:14px; align-items:stretch; }
.admin-card{ background: rgba(255,255,255,.05); border-radius:14px; padding:14px; border:1px solid rgba(255,255,255,.12); min-height:260px; }
.tabs{ display:flex; gap:8px; margin-bottom:8px; }
.tab{ padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); cursor:pointer; }
.tab.active{ background: linear-gradient(135deg, #22d3ee, #7c3aed); border:0; }
ul.menu{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns: repeat(2, 1fr); gap:8px; }
ul.menu li{ padding:8px; border-radius:8px; background: rgba(0,0,0,.15); border:1px solid rgba(255,255,255,.15); font-size:14px; }
/* Footer */
footer{ padding:28px 0; color:var(--muted); font-size:13px; text-align:center; border-top:1px solid rgba(255,255,255,.08); margin-top:40px; }
/* Modals */
.modal{ position: fixed; inset:0; display:grid; place-items:center; background: rgba(0,0,0,.5); opacity:0; visibility:hidden; transition: opacity .2s ease; z-index: 9999; padding:20px; }
.modal.open{ opacity:1; visibility:visible; }
.modal-card{ width: min(680px, 96%); background: rgba(10,12,28,.95); border-radius:14px; padding:16px; box-shadow: var(--shadow); border:1px solid rgba(255,255,255,.15); }
.modal-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.close{ background:transparent; border:1px solid rgba(255,255,255,.25); color:#fff; border-radius:8px; padding:6px 10px; cursor:pointer; }
.modal-body{ max-height:60vh; overflow:auto; padding-right:6px; }
/* Responsive */
@media (max-width: 1024px){
.hero-content{ grid-template-columns: 1fr; text-align:left; }
.hero-visual{ order:-1; height:260px; }
.shop-grid{ grid-template-columns: repeat(2, 1fr); }
.admin{ grid-template-columns: 1fr; }
.wallet-wrap{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
.feature-grid{ grid-template-columns:1fr; }
.shop-grid{ grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<!-- Header -->
<header aria-label="Site header">
<div class="container nav">
<div class="brand" aria-label="Cafeni brand">
<div class="brand-logo" aria-label="Cafeni logo">
<!-- simple coffee cup glyph -->
<svg width="20" height="20" viewBox="0 0 24 24" fill="white" aria-hidden="true">
<path d="M6 6h8a4 4 0 014 4v4h-2V10a2 2 0 00-2-2H6V6z" opacity=".9"></path>
<path d="M4 6h2v4H4z" fill="white" opacity=".7"></path>
<path d="M18 14h-2v2h2a2 2 0 002-2v-2h-2z" fill="white" opacity=".9"></path>
</svg>
</div>
<span style="font-size:15px; letter-spacing:.6px;">Cafeni</span>
</div>
<nav class="nav-links" aria-label="Main navigation">
<a class="btn secondary" href="#features" style="padding:10px 14px;">Main Features</a>
<a class="btn secondary" href="#directory" style="padding:10px 14px;">Directory</a>
<a class="btn secondary" href="#wallet" style="padding:10px 14px;">Wallet</a>
<button class="btn primary" id="loginBtn" aria-haspopup="dialog" style="padding:10px 16px;">Sign in</button>
</nav>
</div>
</header>
<main>
<!-- Hero -->
<section id="hero" aria-label="Hero section">
<div class="container hero-content">
<div class="hero-copy">
<h1>Smart wallet, instant rewards, coffee near you</h1>
<p>Meet Cafeni — the all-in-one digital wallet and loyalty platform that connects curious customers with nearby coffee shops. Pre-order, pay, earn points and cashback, all in one sleek app.</p>
<div class="cta">
<button class="btn primary" onclick="document.getElementById('directory').scrollIntoView({behavior:'smooth'})">Explore nearby cafés</button>
<button class="btn secondary" onclick="document.getElementById('wallet').scrollIntoView({behavior:'smooth'})">View wallet demo</button>
</div>
</div>
<div class="hero-visual" aria-label="Hero visual">
<div class="orb" style="left: -40px; top: 60px;"></div>
<svg width="320" height="260" viewBox="0 0 320 260" role="img" aria-label="Abstract coffee visuals">
<defs>
<linearGradient id="grad" x1="0" x2="1" y1="0" y2="1">
<stop offset="0%" stop-color="#7c3aed"/>
<stop offset="100%" stop-color="#22d3ee"/>
</linearGradient>
</defs>
<rect x="20" y="60" width="280" height="140" rx="20" fill="url(#grad)" opacity=".25"/>
<circle cx="60" cy="110" r="20" fill="#fff" opacity=".4"/>
<circle cx="150" cy="90" r="14" fill="#fff" opacity=".4"/>
<rect x="90" y="170" width="140" height="12" rx="6" fill="#fff" opacity=".6"/>
<rect x="60" y="40" width="40" height="12" rx="6" fill="#fff" opacity=".5"/>
</svg>
</div>
</div>
</section>
<!-- Main Features (For Users) -->
<section id="features" aria-label="Main features" class="container">
<h2 class="section-title">Main Features</h2>
<p class="sub">For Users • For Coffee Shops</p>
<div class="feature-grid" aria-label="Feature highlights">
<div class="card">
<div style="display:flex; align-items:center; gap:8px;">
<span class="icon" aria-hidden="true">
<!-- wallet icon -->
<svg width="28" height="28" viewBox="0 0 24 24" fill="#93c5fd" aria-label="Wallet">
<path d="M3 7h13a4 4 0 014 4v6H3V7zm0-5h13a2 2 0 012 2v20l-4-4H5a2 2 0 01-2-2V4a1 1 0 011-1z"/>
</svg>
</span>
<div>
<div class="card-title">In-app Wallet</div>
<div class="card-desc">Add funds, pay with QR, or use balance at any shop.</div>
</div>
</div>
</div>
<div class="card">
<div style="display:flex; align-items:center; gap:8px;">
<span class="icon" aria-hidden="true">
<svg width="28" height="28" viewBox="0 0 24 24" fill="#34d399" aria-label="Shop">
<path d="M7 4h10l3 6H4l3-6zm-3 8h16l1 4H3l1-4z" />
</svg>
</span>
<div>
<div class="card-title">Nearby Directory</div>
<div class="card-desc">Explore shops with distance, rating and menus.</div>
</div>
</div>
</div>
<div class="card">
<div style="display:flex; align-items:center; gap:8px;">
<span class="icon" aria-hidden="true">
<svg width="28" height="28" viewBox="0 0 24 24" fill="#f472b6" aria-label="Pre-order">
<path d="M4 6h16v2H4V6zm0 4h10v2H4v-2zm0 4h6v2H4v-2z"/>
</svg>
</span>
<div>
<div class="card-title">Pre-order & Pay</div>
<div class="card-desc">Order ahead and pay securely using your wallet.</div>
</div>
</div>
</div>
</div>
</section>
<!-- Directory -->
<section id="directory" aria-label="Coffee shop directory" class="container">
<div style="display:flex; justify-content: space-between; align-items: baseline; gap:12px; flex-wrap:wrap;">
<div>
<h2 class="section-title" style="margin-bottom:6px;">Coffee Shop Directory</h2>
<p class="sub" style="margin:0;">Find nearby cafés, view menus, and pre-order in seconds.</p>
</div>
<div class="row" style="min-width:260px;">
<input id="search" class="input" placeholder="Search by name..." style="min-width: 180px;">
<select id="minRating" class="input" aria-label="Minimum rating" style="width:120px;">
<option value="0">All</option>
<option value="4">4.0+</option>
<option value="4.5">4.5+</option>
</select>
</div>
</div>
<div class="shop-grid" id="shopGrid" aria-label="Shops grid">
<!-- Shops will be injected by JS -->
</div>
</section>
<!-- Wallet & Activity -->
<section id="wallet" aria-label="Wallet section" class="container wallet-wrap">
<aside class="wallet" aria-label="Wallet overview">
<div style="display:flex; justify-content:space-between; align-items: center;">
<strong>Your Cafeni Wallet</strong>
<span class="tag" id="walletTag" title="Status">Online</span>
</div>
<div class="balance" id="balanceDisplay">$25.00</div>
<div class="panel" aria-label="Add funds">
<div class="row" style="gap:8px;">
<input id="fundAmount" class="input" type="number" min="1" step="1" placeholder="Add funds ($)" style="min-width:140px;">
<button class="btn primary" id="addFundsBtn" style="padding:9px 12px;">Add funds</button>
</div>
</div>
<div class="wallet-cta">
<button class="btn secondary" onclick="openOrderModalForDemo()">Pre-order from a shop</button>
<button class="btn secondary" onclick="simulateScanQR()">Show QR to pay</button>
</div>
<div class="panel" aria-label="Transaction history">
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:6px;">
<strong>Recent Activity</strong>
<span class="tag" title="Activity">Today</span>
</div>
<ul class="activity" id="activityList">
<li>Wallet topped up by $10</li>
<li>Purchased Latte — Cafeni Wallet</li>
</ul>
</div>
<div class="panel" aria-label="Loyalty summary" style="padding-bottom:8px;">
<div style="display:flex; align-items:center; justify-content:space-between;">
<strong>Loyalty Points</strong>
<span class="tag" title="Points">20 pts</span>
</div>
<div class="progress" aria-valuemin="0" aria-valuemax="100" role="progressbar" style="margin-top:8px;">
<span style="width: 20%;"></span>
</div>
<div style="font-size:12px; color:var(--muted); margin-top:6px;">Earn 1 point per $1. Redeem for discounts.</div>
</div>
</aside>
<section class="admin-card" aria-label="Admin dashboard preview">
<div class="tabs" role="tablist" aria-label="Admin tabs">
<button class="tab active" role="tab" aria-selected="true" onclick="setAdminTab('menu')">Menu</button>
<button class="tab" role="tab" aria-selected="false" onclick="setAdminTab('orders')">Orders</button>
<button class="tab" role="tab" aria-selected="false" onclick="setAdminTab('shop')">Shop Info</button>
</div>
<div id="adminContent">
<!-- Menu Editor -->
<div class="section" id="admin-menu" style="display:block;">
<strong>Admin Menu</strong>
<p class="sub" style="margin:6px 0 12px;">Edit items for your shop</p>
<ul class="menu" aria-label="Menu items editor">
<li>Espresso</li>
<li>Latte</li>
<li>Cappuccino</li>
<li>Flat White</li>
</ul>
</div>
<!-- Orders -->
<div class="section" id="admin-orders" style="display:none;">
<strong>Live Orders</strong>
<p class="sub" style="margin:6px 0 12px;">Real-time status updates</p>
<ul class="activity" style="max-height:120px;">
<li>Order #1024 - Espresso - Pending</li>
<li>Order #1025 - Latte - Preparing</li>
</ul>
</div>
<!-- Shop Info -->
<div class="section" id="admin-shop" style="display:none;">
<strong>Shop Info</strong>
<p class="sub" style="margin:6px 0 12px;">Defaults & location</p>
<div class="row" style="gap:8px; align-items:center;">
<input class="input" value="Cafeni Central" style="width:240px;">
<input class="input" value="0.6 km" style="width:120px;">
</div>
</div>
</div>
</section>
</section>
</main>
<footer aria-label="Site footer">
<div class="container" style="display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;">
<div>© Cafeni 2025 • All rights reserved</div>
<div style="display:flex; gap:8px;">
<span class="avatar" aria-label="Twitter" title="Twitter"></span>
<span class="avatar" aria-label="Instagram" title="Instagram"></span>
<span class="avatar" aria-label="LinkedIn" title="LinkedIn"></span>
</div>
</div>
</footer>
<!-- Modals -->
<div class="modal" id="orderModal" aria-hidden="true" aria-label="Pre-order modal">
<div class="modal-card" role="dialog" aria-label="Pre-order">
<div class="modal-header">
<strong id="orderShopName">Shop</strong>
<button class="close" id="closeOrder">Close</button>
</div>
<div class="modal-body" id="orderBody">
<div style="display:flex; gap:8px; align-items:stretch; margin-bottom:8px;">
<div style="flex:1;">
<div style="font-weight:600; margin-bottom:6px;">Menu</div>
<ul id="menuList" class="menu" style="grid-template-columns:1fr; padding-left:0; margin:0;">
<!-- dynamic items -->
</ul>
</div>
<div style="width:1px; background: rgba(255,255,255,.25);"></div>
<div style="flex:0 0 180px;">
<div style="font-weight:600; margin-bottom:6px;">Cart</div>
<ul id="cartList" class="menu" style="grid-template-columns:1fr; padding-left:0; margin:0; max-height:140px; overflow:auto;">
<!-- dynamic cart items -->
</ul>
<div style="margin-top:6px;">
<div style="display:flex; justify-content:space-between;">
<span>Subtotal</span><span id="subtotal">$0.00</span>
</div>
<div style="display:flex; justify-content:space-between;">
<span>Fees</span><span id="fees">$0.00</span>
</div>
<hr style="border:0; border-top:1px solid rgba(255,255,255,.15); margin:6px 0;">
<div style="display:flex; justify-content:space-between; font-weight:700;">
<span>Total</span><span id="total">$0.00</span>
</div>
</div>
</div>
</div>
<div class="row" style="align-items:center; justify-content:space-between;">
<div style="font-size:12px; color:var(--muted);">Pay with Cafeni Wallet</div>
<button class="btn primary" id="payBtn" style="padding:10px 14px;">Pay $0.00</button>
</div>
</div>
</div>
</div>
<!-- Login modal -->
<div class="modal" id="loginModal" aria-hidden="true" aria-label="Login modal">
<div class="modal-card" role="dialog" aria-label="Login">
<div class="modal-header">
<strong>Sign in to Cafeni</strong>
<button class="close" id="closeLogin">Close</button>
</div>
<div class="modal-body">
<p class="sub" style="margin:0 0 8px;">Enter email or phone. This is a lightweight mock for demo purposes.</p>
<input id="userEmail" class="input" placeholder="Email or phone" style="margin-bottom:8px;">
<input id="userPass" type="password" class="input" placeholder="Password" style="margin-bottom:8px;">
<button class="btn primary" id="loginSubmit" style="width:100%;">Sign in</button>
<p class="sub" style="margin-top:8px;">New here? Sign up in seconds and start earning rewards.</p>
</div>
</div>
</div>
<script>
// Data
const shops = [
{ id: 1, name: "Brew Lab", distance: 1.2, rating: 4.7, price: "$$", menu: [
{name: "Espresso", price: 3.0},
{name: "Latte", price: 4.5},
{name: "Cappuccino", price: 4.0},
]},
{ id: 2, name: "Mocha Box", distance: 0.8, rating: 4.5, price: "$$", menu: [
{name: "Americano", price: 2.5},
{name: "Mocha", price: 5.0},
{name: "Macchiato", price: 3.5},
]},
{ id: 3, name: "Bean & Byte", distance: 2.3, rating: 4.8, price: "$$$", menu: [
{name: "Single Origin", price: 5.0},
{name: "Cortado", price: 4.25},
{name: "Flat White", price: 4.75},
]},
{ id: 4, name: "Grind House", distance: 1.5, rating: 4.2, price: "$", menu: [
{name: "Iced Coffee", price: 3.0},
{name: "Affogato", price: 4.5},
]},
{ id: 5, name: "Cafe Orbit", distance: 3.1, rating: 4.6, price: "$$", menu: [
{name: "Latte Macchiato", price: 4.2},
{name: "Dalghmor", price: 6.0},
]},
{ id: 6, name: "Roast Republic", distance: 0.9, rating: 4.9, price: "$$$", menu: [
{name: "Pour Over", price: 6.5},
{name: "Cold Brew", price: 4.5},
]},
];
// State
let currentShopId = null;
let walletBalance = 25.0;
let cart = [];
let loyaltyPoints = 20;
// Elements
const shopGrid = document.getElementById('shopGrid');
const searchInput = document.getElementById('search');
const minRatingSel = document.getElementById('minRating');
const balanceDisplay = document.getElementById('balanceDisplay');
const activityList = document.getElementById('activityList');
const orderModal = document.getElementById('orderModal');
const orderShopName = document.getElementById('orderShopName');
const menuList = document.getElementById('menuList');
const cartList = document.getElementById('cartList');
const subtotalEl = document.getElementById('subtotal');
const feesEl = document.getElementById('fees');
const totalEl = document.getElementById('total');
const payBtn = document.getElementById('payBtn');
const addFundsBtn = document.getElementById('addFundsBtn');
const fundAmount = document.getElementById('fundAmount');
const closeOrder = document.getElementById('closeOrder');
const loginBtn = document.getElementById('loginBtn');
const loginModal = document.getElementById('loginModal');
const closeLogin = document.getElementById('closeLogin');
const loginSubmit = document.getElementById('loginSubmit');
const userEmail = document.getElementById('userEmail');
const userPass = document.getElementById('userPass');
// Admin tab controls
const adminTabs = document.querySelectorAll('.tab');
const adminContent = document.getElementById('adminContent');
const adminMenu = document.getElementById('admin-menu');
const adminOrders = document.getElementById('admin-orders');
const adminShop = document.getElementById('admin-shop');
function setAdminTab(name){
adminTabs.forEach(t => t.classList.remove('active'));
adminContent.querySelectorAll('div.section, div').forEach(d => d.style.display='none');
// naive: show only chosen
if(name==='menu'){
adminTabs[0].classList.add('active'); adminMenu.style.display='block';
}else if(name==='orders'){
adminTabs[1].classList.add('active'); adminOrders.style.display='block';
}else{
adminTabs[2].classList.add('active'); adminShop.style.display='block';
}
}
// Init shop cards
function formatMoney(n){
return '$' + Number(n).toFixed(2);
}
function renderShops(){
shopGrid.innerHTML = '';
const query = (searchInput.value || '').toLowerCase();
const minRating = parseFloat(minRatingSel.value) || 0;
const filtered = shops.filter(s => {
const goodName = s.name.toLowerCase().includes(query);
const goodRating = s.rating >= minRating;
return goodName && goodRating;
});
filtered.forEach(s => {
const card = document.createElement('div');
card.className = 'shop';
card.innerHTML = `
<div class="shop-header">
<div>
<div class="shop-name">${s.name}</div>
<div class="shop-meta">
<span>Distance: ${s.distance} km</span>
<span>Rating: ${s.rating.toFixed(1)}</span>
</div>
</div>
<span class="tag" aria-label="Price level">${s.price}</span>
</div>
<div class="shop-meta" style="margin-top:4px;">Menu: ${s.menu.map(m => m.name).slice(0,3).join(', ')}</div>
<div class="shop-actions" aria-label="Shop actions">
<button class="shop-btn" onclick="openOrderModal(${s.id})">Pre-order</button>
<button class="shop-btn primary" onclick="simulateShopVisit('${s.name}')">Visit</button>
</div>
`;
shopGrid.appendChild(card);
});
if (filtered.length === 0) {
const empty = document.createElement('div');
empty.className = 'panel';
empty.style.width = '100%';
empty.innerText = 'No shops match your search. Try a different term or rating filter.';
shopGrid.appendChild(empty);
}
}
// Open order modal
function openOrderModal(shopId){
currentShopId = shopId;
const shop = shops.find(s => s.id === shopId);
if(!shop) return;
orderShopName.textContent = shop.name;
// Build menu
menuList.innerHTML = '';
shop.menu.forEach(item => {
const li = document.createElement('li');
li.style.display = 'flex'; li.style.justifyContent = 'space-between'; li.style.alignItems = 'center';
li.style.gap = '8px';
li.innerHTML = `
<span>${item.name}</span>
<span>${formatMoney(item.price)}</span>
<button class="shop-btn" style="padding:6px 8px;" onclick="addToCart({shopId:${shopId}, name:'${item.name}', price:${item.price}})">Add</button>
`;
menuList.appendChild(li);
});
// Reset cart view for this shop
cart = [];
updateCartUI();
// Show modal
orderModal.classList.add('open');
orderModal.style.zIndex = 10000;
orderModal.setAttribute('aria-hidden','false');
}
function openOrderModalForDemo(){
// open for the first shop as demo
openOrderModal(shops[0].id);
}
function closeOrderModal(){
orderModal.classList.remove('open');
orderModal.setAttribute('aria-hidden','true');
}
closeOrder.addEventListener('click', closeOrderModal);
// Add to cart
function addToCart(item){
// item can be object or plain
cart.push({shopId: item.shopId, name: item.name, price: item.price, qty: 1});
updateCartUI();
}
function updateCartUI(){
cartList.innerHTML = '';
let subtotal = 0;
cart.forEach((ci, idx) => {
const li = document.createElement('li');
li.style.display='flex'; li.style.justifyContent='space-between'; li.style.alignItems='center';
li.innerHTML = `
<span>${ci.name} x${ci.qty}</span>
<span>${formatMoney(ci.price * ci.qty)}</span>
`;
cartList.appendChild(li);
subtotal += ci.price * ci.qty;
});
const fees = Math.max(0, subtotal * 0.0); // no extra fees in demo
const total = subtotal + fees;
subtotalEl.textContent = formatMoney(subtotal);
feesEl.textContent = formatMoney(fees);
totalEl.textContent = formatMoney(total);
payBtn.textContent = `Pay ${formatMoney(total)}`;
}
// Paying
payBtn.addEventListener('click', () => {
// Compute total
const total = parseFloat(totalEl.textContent.replace('$',''));
if(isNaN(total)) return;
if(walletBalance >= total){
walletBalance -= total;
// Loyalty: 1 point per $1
loyaltyPoints += Math.floor(total);
// Cashback: 5% of total
const cashback = total * 0.05;
walletBalance = Math.max(0, walletBalance + cashback);
balanceDisplay.textContent = formatMoney(walletBalance);
// Activity
const cat = `Paid ${formatMoney(total)} at ${orderShopName.textContent}`;
addActivity(cat);
// Close and reset
closeOrderModal();
// Reset cart
cart = [];
updateCartUI();
// Update loyalty progress
updateLoyalty();
}else{
alert('Insufficient funds. Please add funds to your Cafeni Wallet.');
}
});
function addActivity(text){
const li = document.createElement('li');
li.textContent = text;
activityList.prepend(li);
// keep list readable
if(activityList.children.length > 50) activityList.removeChild(activityList.lastChild);
}
function updateLoyalty(){
const newPoints = loyaltyPoints;
const p = Math.min(100, (newPoints / 100) * 100);
const prog = document.querySelector('.progress > span');
if(prog){
prog.style.width = p + '%';
}
// cash back or extra reward could be simulated here
}
// Add funds
addFundsBtn.addEventListener('click', ()=>{
const amt = parseFloat(fundAmount.value);
if(isNaN(amt) || amt <= 0){
alert('Enter a valid amount.');
return;
}
walletBalance += amt;
balanceDisplay.textContent = formatMoney(walletBalance);
addActivity(`Wallet topped up by ${formatMoney(amt)}`);
fundAmount.value = '';
});
// QR simulate
function simulateScanQR(){
alert('This is a demo: your wallet QR would appear here for in-store payments.');
}
// Admin: tab initial
setAdminTab('menu');
// Login modal
loginBtn.addEventListener('click', ()=>{
loginModal.classList.add('open');
loginModal.style.zIndex = 99999;
loginModal.setAttribute('aria-hidden','false');
});
closeLogin.addEventListener('click', () => {
loginModal.classList.remove('open');
loginModal.setAttribute('aria-hidden','true');
});
loginSubmit.addEventListener('click', () => {
const email = userEmail.value.trim();
const pass = userPass.value;
if(!email){
alert('Please enter email or phone.');
return;
}
// mock login
localStorage.setItem('cafeni_user', JSON.stringify({email}));
loginModal.classList.remove('open');
loginModal.setAttribute('aria-hidden','true');
// greet in header
if(!document.querySelector('#loginBtn .avatar')){
// simple inline greet in header
}
addActivity(`Signed in as ${email}`);
updateLoyalty();
});
// Directory filtering
searchInput.addEventListener('input', renderShops);
minRatingSel.addEventListener('change', renderShops);
// Initialize
renderShops();
// Demo: if user already signed in, show a greeting
document.addEventListener('DOMContentLoaded', () => {
const stored = localStorage.getItem('cafeni_user');
if(stored){
const u = JSON.parse(stored);
addActivity(`Welcome back, ${u.email}`);
}
balanceDisplay.textContent = `$${walletBalance.toFixed(2)}`;
updateLoyalty();
});
// Accessibility: ESC closes modal
document.addEventListener('keydown', (e) => {
if(e.key === 'Escape'){
if(orderModal.classList.contains('open')) closeOrderModal();
if(loginModal.classList.contains('open')) loginModal.classList.remove('open');
}
});
// Shop visit demo
function simulateShopVisit(name){
addActivity(`Visited ${name} (demo)`);
}
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Create a complete professional service booking website for Genie Xpert – Indore ka apna Xpert, including all categories — Car Spa (car wash, waterless cleaning, interior deep cleaning, teflon coating, wheel cleaning), Home Utility (sofa cleaning, chair cleaning, bed & mattress cleaning, water tank cleaning, solar panel cleaning), and Demanded Services (housekeeping, driver on demand, plumber, electrician, home appliance repair, RO cleaning, laptop repairing) — with WhatsApp booking button, clean blue-white-orange design, and homepage tagline ‘har Samasya, ka 1 Hal – Genie Xpert.’”
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Genie Xpert – Indore ka apna Xpert | Service Booking</title>
<meta name="description" content="Book professional Car Spa, Home Utility, and Demanded Services in Indore with Genie Xpert. Fast, reliable, and affordable. WhatsApp to book instantly."/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<style>
:root{
--gx-blue:#0E5EFF;
--gx-deep:#0B3AA3;
--gx-orange:#FF7A00;
--gx-ink:#0E1325;
--gx-muted:#5F6B85;
--gx-bg:#F6F9FF;
--gx-card:#FFFFFF;
}
html,body {font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; color:var(--gx-ink); background:linear-gradient(180deg,#ffffff 0%, #f7fbff 40%, #f1f6ff 100%);}
.container {max-width: 1160px;}
.btn-primary{
background: linear-gradient(135deg, var(--gx-blue), #2E86FF);
color:#fff; border:none; padding:.9rem 1.2rem; border-radius:14px; font-weight:700;
box-shadow: 0 8px 24px rgba(14,94,255,.28), inset 0 1px 0 rgba(255,255,255,.25);
transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,94,255,.35);}
.btn-ghost{
background: #fff; color:var(--gx-blue); border:1px solid rgba(14,94,255,.18); padding:.9rem 1.2rem; border-radius:14px; font-weight:700;
transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
box-shadow: 0 8px 20px rgba(14,94,255,.08);
}
.btn-ghost:hover{ transform: translateY(-2px); border-color: rgba(14,94,255,.35); box-shadow: 0 12px 26px rgba(14,94,255,.14);}
.tag{
display:inline-flex; align-items:center; gap:.5rem; padding:.4rem .7rem; border-radius:999px; font-weight:700; font-size:.8rem;
background: rgba(14,94,255,.08); color:var(--gx-blue); border:1px solid rgba(14,94,255,.18);
}
.nav-blur{ backdrop-filter:saturate(160%) blur(10px); background: rgba(255,255,255,.7); border-bottom:1px solid rgba(14,94,255,.08);}
.hero{
position:relative; overflow:hidden; border-bottom-left-radius:36px; border-bottom-right-radius:36px;
background:
radial-gradient(1200px 400px at 80% -10%, rgba(14,94,255,.18), transparent 60%),
radial-gradient(800px 300px at -5% 10%, rgba(255,122,0,.10), transparent 55%),
linear-gradient(180deg, #F8FBFF 0%, #F4F8FF 100%);
}
.orb{
position:absolute; border-radius:999px; filter: blur(40px); opacity:.55; pointer-events:none;
animation: float 10s ease-in-out infinite alternate;
}
.orb.blue{ background: radial-gradient(circle at 30% 30%, rgba(14,94,255,.45), rgba(14,94,255,.05)); width:380px; height:380px; top: -60px; right: -80px;}
.orb.orange{ background: radial-gradient(circle at 60% 50%, rgba(255,122,0,.35), rgba(255,122,0,.06)); width:320px; height:320px; bottom: -80px; left: -40px; animation-delay: -3s;}
@keyframes float{ from{ transform: translateY(0px)} to{ transform: translateY(18px)} }
.card{
background: var(--gx-card); border:1px solid rgba(14,94,255,.10); border-radius:20px;
box-shadow: 0 12px 28px rgba(8,29,103,.06);
transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 16px 34px rgba(8,29,103,.10); border-color: rgba(14,94,255,.22);}
.icon-pill{
width:54px; height:54px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-weight:800;
background:linear-gradient(135deg, rgba(14,94,255,.14), rgba(46,134,255,.08)); color:var(--gx-blue); border:1px solid rgba(14,94,255,.14);
box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.section-title{
font-size: clamp(1.6rem, 1rem + 2vw, 2.2rem); font-weight: 800; letter-spacing:-.02em;
}
.kicker{ color:var(--gx-blue); font-weight:800; letter-spacing:.08em; text-transform:uppercase; font-size:.78rem;}
.price{ font-weight:800; color:var(--gx-deep);}
.badge{
display:inline-flex; align-items:center; gap:.4rem; padding:.35rem .6rem; border-radius:999px; font-size:.72rem; font-weight:800;
background: rgba(255,122,0,.10); color:var(--gx-orange); border:1px solid rgba(255,122,0,.2);
}
.grid-auto{
display:grid; grid-template-columns: repeat(12, 1fr); gap:1rem;
}
.col-12{ grid-column: span 12 / span 12;}
@media(min-width: 640px){ .col-sm-6{ grid-column: span 6 / span 6; } }
@media(min-width: 1024px){ .col-lg-4{ grid-column: span 4 / span 4; } .col-lg-6{ grid-column: span 6 / span 6;} }
.shadow-soft{ box-shadow: 0 2px 0 rgba(14,94,255,.05), 0 10px 24px rgba(14,94,255,.06) }
.input, select{
width:100%; background:#fff; border:1px solid rgba(14,94,255,.18); border-radius:14px; padding:.9rem 1rem; outline:none;
transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, select:focus{ border-color: var(--gx-blue); box-shadow: 0 0 0 4px rgba(14,94,255,.10);}
.cta-bar{
position:sticky; bottom:12px; z-index:50; display:flex; justify-content:center; padding:0 1rem;
}
.cta-inner{
display:flex; gap:.7rem; background:#0e5eff; color:#fff; border-radius:16px; padding:.5rem; align-items:center; box-shadow: 0 18px 36px rgba(14,94,255,.4);
}
.cta-inner a{ display:flex; gap:.5rem; align-items:center; background:#fff; color:#0e5eff; font-weight:800; padding:.7rem 1rem; border-radius:12px; }
.whatsapp-float{
position: fixed; right: 16px; bottom: 16px; z-index:60;
background: #25D366; color:#fff; border-radius:999px; display:flex; gap:.6rem; align-items:center; font-weight:800;
padding:.85rem 1rem; box-shadow: 0 16px 32px rgba(37,211,102,.45);
transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover{ transform: translateY(-2px); box-shadow: 0 20px 40px rgba(37,211,102,.55);}
.divider{ height:1px; background: linear-gradient(90deg, rgba(14,94,255,0), rgba(14,94,255,.18), rgba(14,94,255,0)); }
.step{ display:flex; gap:.8rem; align-items:flex-start;}
.step-num{ width:28px; height:28px; border-radius:999px; background: rgba(14,94,255,.12); color:var(--gx-blue); font-weight:900; display:flex; align-items:center; justify-content:center; font-size:.85rem; border:1px solid rgba(14,94,255,.22);}
.footer{ background: linear-gradient(180deg,#0B1D46 0%, #07122E 100%); color:#C9D6FF; border-top-left-radius:28px; border-top-right-radius:28px; }
.footer a{ color:#E8EEFF; opacity:.9; }
.chip{ background:#fff; border:1px solid rgba(14,94,255,.14); color:var(--gx-ink); border-radius:999px; padding:.4rem .8rem; font-weight:700; font-size:.8rem; }
.category-tab{ cursor:pointer; }
.active-tab{ background:rgba(14,94,255,.1); border-color: rgba(14,94,255,.3); color:var(--gx-blue); }
</style>
</head>
<body>
<!-- Top Nav -->
<header class="nav-blur sticky top-0 z-40">
<div class="container mx-auto px-4 py-3 flex items-center justify-between">
<a href="#" class="flex items-center gap-3">
<div class="icon-pill" aria-hidden="true">GX</div>
<div class="leading-tight">
<div class="font-extrabold text-[18px]" style="letter-spacing:-.02em;">Genie Xpert</div>
<div class="text-[12px] font-semibold text-slate-500">Indore ka apna Xpert</div>
</div>
</a>
<nav class="hidden md:flex items-center gap-6 text-[15px] font-semibold text-slate-700">
<a href="#services" class="hover:text-[color:var(--gx-blue)]">Services</a>
<a href="#how" class="hover:text-[color:var(--gx-blue)]">How it works</a>
<a href="#pricing" class="hover:text-[color:var(--gx-blue)]">Pricing</a>
<a href="#contact" class="hover:text-[color:var(--gx-blue)]">Contact</a>
</nav>
<div class="flex items-center gap-2">
<a id="navWhatsApp" target="_blank" class="btn-primary text-[14px]">Book on WhatsApp</a>
</div>
</div>
</header>
<!-- Hero -->
<section class="hero relative">
<div class="orb blue"></div>
<div class="orb orange"></div>
<div class="container mx-auto px-4 py-14 md:py-20">
<div class="grid grid-cols-1 lg:grid-cols-12 gap-8 items-center">
<div class="lg:col-span-7">
<span class="tag shadow-soft">har Samasya, ka 1 Hal – Genie Xpert.</span>
<h1 class="mt-4 font-extrabold tracking-tight" style="font-size: clamp(2rem, 1.5rem + 3vw, 3.2rem); letter-spacing:-.03em;">
Professional Services at your doorstep in Indore
</h1>
<p class="mt-4 text-slate-600 text-lg">
Car Spa, Home Utility and Demanded Services — quick booking, transparent pricing, and expert technicians you can trust.
</p>
<div class="mt-6 flex flex-wrap gap-3">
<button class="btn-primary" onclick="document.getElementById('booking').scrollIntoView({behavior:'smooth'})">
Book a Service
</button>
<a href="#services" class="btn-ghost">Explore Services</a>
</div>
<div class="mt-6 flex flex-wrap gap-2">
<span class="chip">Verified Experts</span>
<span class="chip">Same-day Slots</span>
<span class="chip">Assured Quality</span>
</div>
</div>
<div class="lg:col-span-5">
<div class="card p-5 md:p-6">
<div class="flex items-center justify-between">
<div class="kicker">Quick Booking</div>
<div class="badge"><span>Instant</span> WhatsApp</div>
</div>
<form id="quickForm" class="mt-4 grid gap-3">
<div>
<label class="text-sm font-bold text-slate-600">Full Name</label>
<input class="input mt-1" type="text" name="name" placeholder="Your Name" required>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div>
<label class="text-sm font-bold text-slate-600">Phone</label>
<input class="input mt-1" type="tel" name="phone" placeholder="9XXXXXXXXX" required>
</div>
<div>
<label class="text-sm font-bold text-slate-600">City</label>
<input class="input mt-1" type="text" name="city" value="Indore" required>
</div>
</div>
<div>
<label class="text-sm font-bold text-slate-600">Category</label>
<select class="mt-1" name="category" required>
<option value="Car Spa">Car Spa</option>
<option value="Home Utility">Home Utility</option>
<option value="Demanded Services">Demanded Services</option>
</select>
</div>
<div>
<label class="text-sm font-bold text-slate-600">Service</label>
<select class="mt-1" name="service" id="quickService" required></select>
</div>
<div>
<label class="text-sm font-bold text-slate-600">Preferred Date</label>
<input class="input mt-1" type="date" name="date" required>
</div>
<button type="submit" class="btn-primary w-full">Get Quote on WhatsApp</button>
</form>
<p class="text-[13px] text-slate-500 mt-3">By booking, you agree to our terms and privacy policy.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Category Tabs -->
<section id="services" class="container mx-auto px-4 py-12 md:py-16">
<div class="flex items-center justify-between flex-wrap gap-3">
<div>
<div class="kicker">Our Services</div>
<h2 class="section-title mt-2">Everything you need, done right</h2>
</div>
<div class="flex gap-2">
<button class="chip category-tab active-tab" data-tab="car">Car Spa</button>
<button class="chip category-tab" data-tab="home">Home Utility</button>
<button class="chip category-tab" data-tab="demand">Demanded Services</button>
</div>
</div>
<!-- Cards Grid -->
<div class="mt-8 grid-auto">
<!-- Car Spa -->
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="car">
<div class="flex items-center gap-3">
<div class="icon-pill">🚗</div>
<div>
<div class="font-extrabold">Car Wash</div>
<div class="text-sm text-slate-500">Exterior foam wash & dry</div>
</div>
</div>
<div class="mt-4 text-sm text-slate-600">Pressure wash, foam, rinse, and microfiber dry. Add-on wheel cleaning available.</div>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹399+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Car Spa','Car Wash')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="car">
<div class="flex items-center gap-3">
<div class="icon-pill">💧</div>
<div>
<div class="font-extrabold">Waterless Cleaning</div>
<div class="text-sm text-slate-500">Eco-friendly detailing</div>
</div>
</div>
<div class="mt-4 text-sm text-slate-600">Premium waterless solution, paint-safe, streak-free finish with protection.</div>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹499+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Car Spa','Waterless Cleaning')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="car">
<div class="flex items-center gap-3">
<div class="icon-pill">🧼</div>
<div>
<div class="font-extrabold">Interior Deep Cleaning</div>
<div class="text-sm text-slate-500">Sanitization & vacuum</div>
</div>
</div>
<div class="mt-4 text-sm text-slate-600">Complete vacuuming, upholstery shampoo, dashboard polish, AC vent cleaning.</div>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹1199+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Car Spa','Interior Deep Cleaning')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="car">
<div class="flex items-center gap-3">
<div class="icon-pill">🛡️</div>
<div>
<div class="font-extrabold">Teflon Coating</div>
<div class="text-sm text-slate-500">Paint protection</div>
</div>
</div>
<div class="mt-4 text-sm text-slate-600">Long-lasting shine with Teflon. Reduces swirl marks and improves gloss.</div>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹2499+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Car Spa','Teflon Coating')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="car">
<div class="flex items-center gap-3">
<div class="icon-pill">🛞</div>
<div>
<div class="font-extrabold">Wheel Cleaning</div>
<div class="text-sm text-slate-500">Tyres & alloys</div>
</div>
</div>
<div class="mt-4 text-sm text-slate-600">Iron remover + brush scrub to remove brake dust and grime.</div>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹249+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Car Spa','Wheel Cleaning')">Book</button>
</div>
</div>
<!-- Home Utility -->
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="home" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🛋️</div>
<div>
<div class="font-extrabold">Sofa Cleaning</div>
<div class="text-sm text-slate-500">Shampoo & extraction</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Fabric-safe solutions, deep vacuuming, stain treatment, odor removal.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹799+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Home Utility','Sofa Cleaning')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="home" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🪑</div>
<div>
<div class="font-extrabold">Chair Cleaning</div>
<div class="text-sm text-slate-500">Office & home</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Dust removal, shampooing, and sanitization for dining/office chairs.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹99/chair</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Home Utility','Chair Cleaning')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="home" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🛏️</div>
<div>
<div class="font-extrabold">Bed & Mattress Cleaning</div>
<div class="text-sm text-slate-500">Dust-mite removal</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">UV sterilization and hot-water extraction to remove allergens and stains.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹699+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Home Utility','Bed & Mattress Cleaning')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="home" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🚰</div>
<div>
<div class="font-extrabold">Water Tank Cleaning</div>
<div class="text-sm text-slate-500">Overhead/Underground</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">6-step mechanized process with anti-bacterial treatment and sludge removal.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹999+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Home Utility','Water Tank Cleaning')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="home" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🔆</div>
<div>
<div class="font-extrabold">Solar Panel Cleaning</div>
<div class="text-sm text-slate-500">Output boost</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Spot-free rinse with soft bristles to maximize efficiency and lifespan.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹8/sq.ft</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Home Utility','Solar Panel Cleaning')">Book</button>
</div>
</div>
<!-- Demanded Services -->
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="demand" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🧹</div>
<div>
<div class="font-extrabold">Housekeeping</div>
<div class="text-sm text-slate-500">Daily/Deep clean</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Trained professionals for routine cleaning, mopping, dusting, and more.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹699/day</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Demanded Services','Housekeeping')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="demand" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🧑✈️</div>
<div>
<div class="font-extrabold">Driver on Demand</div>
<div class="text-sm text-slate-500">Hourly/Day basis</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Verified drivers for local and outstation with flexible timings.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹199/hr</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Demanded Services','Driver on Demand')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="demand" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🔧</div>
<div>
<div class="font-extrabold">Plumber</div>
<div class="text-sm text-slate-500">Repairs & fittings</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Leakage fix, installation, bathroom and kitchen plumbing.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹199/visit</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Demanded Services','Plumber')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="demand" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">💡</div>
<div>
<div class="font-extrabold">Electrician</div>
<div class="text-sm text-slate-500">Wiring & fixtures</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Fan, lights, MCB, inverter, and wiring installation/repair.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹199/visit</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Demanded Services','Electrician')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="demand" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">🔧</div>
<div>
<div class="font-extrabold">Home Appliance Repair</div>
<div class="text-sm text-slate-500">AC, Fridge, Washing</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Expert diagnosis and genuine parts for all major brands.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹299/visit</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Demanded Services','Home Appliance Repair')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="demand" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">💧</div>
<div>
<div class="font-extrabold">RO Cleaning</div>
<div class="text-sm text-slate-500">Service & filter</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Complete RO servicing including membrane check and sanitization.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹399+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Demanded Services','RO Cleaning')">Book</button>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4 card p-5 service-card" data-cat="demand" style="display:none">
<div class="flex items-center gap-3">
<div class="icon-pill">💻</div>
<div>
<div class="font-extrabold">Laptop Repairing</div>
<div class="text-sm text-slate-500">Hardware & software</div>
</div>
</div>
<p class="mt-4 text-sm text-slate-600">Screen, battery, SSD upgrade, OS issues — quick turnarounds.</p>
<div class="mt-4 flex items-center justify-between">
<div class="price">₹499+</div>
<button class="btn-ghost text-sm" onclick="quickSelect('Demanded Services','Laptop Repairing')">Book</button>
</div>
</div>
</div>
<div class="mt-10 divider"></div>
</section>
<!-- How it works -->
<section id="how" class="container mx-auto px-4 py-12 md:py-16">
<div class="grid grid-cols-1 lg:grid-cols-12 gap-10 items-center">
<div class="lg:col-span-5">
<div class="kicker">How it works</div>
<h3 class="section-title mt-2">Book smart in 3 easy steps</h3>
<div class="mt-6 grid gap-4">
<div class="step">
<div class="step-num">1</div>
<div>
<div class="font-extrabold">Choose service</div>
<div class="text-slate-600 text-sm">Select your category and service from the list.</div>
</div>
</div>
<div class="step">
<div class="step-num">2</div>
<div>
<div class="font-extrabold">Share details</div>
<div class="text-slate-600 text-sm">Tell us location, date, and a brief requirement.</div>
</div>
</div>
<div class="step">
<div class="step-num">3</div>
<div>
<div class="font-extrabold">Get confirmation</div>
<div class="text-slate-600 text-sm">Get quote and confirm instantly on WhatsApp.</div>
</div>
</div>
</div>
<button class="btn-primary mt-6" onclick="document.getElementById('booking').scrollIntoView({behavior:'smooth'})">Start Booking</button>
</div>
<div class="lg:col-span-7">
<div class="card p-6">
<div class="kicker">Popular Combos</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-3">
<div class="p-4 rounded-xl border border-slate-200 bg-white hover:shadow-md transition">
<div class="font-extrabold">Car Spa + Wheel Clean</div>
<div class="text-sm text-slate-600 mt-1">Premium shine bundle</div>
<div class="mt-2 text-[13px] text-slate-500">Save 10%</div>
</div>
<div class="p-4 rounded-xl border border-slate-200 bg-white hover:shadow-md transition">
<div class="font-extrabold">Sofa + Mattress</div>
<div class="text-sm text-slate-600 mt-1">Deep home refresh</div>
<div class="mt-2 text-[13px] text-slate-500">Save 12%</div>
</div>
<div class="p-4 rounded-xl border border-slate-200 bg-white hover:shadow-md transition">
<div class="font-extrabold">Electrician + RO</div>
<div class="text-sm text-slate-600 mt-1">Utility care</div>
<div class="mt-2 text-[13px] text-slate-500">Save 8%</div>
</div>
</div>
<div class="mt-6 divider"></div>
<div class="mt-6 grid grid-cols-1 sm:grid-cols-2 gap-4">
<div class="flex items-center gap-3">
<div class="icon-pill">⏱️</div>
<div>
<div class="font-extrabold">On-time arrival</div>
<div class="text-sm text-slate-600">Real-time updates on WhatsApp</div>
</div>
</div>
<div class="flex items-center gap-3">
<div class="icon-pill">🧰</div>
<div>
<div class="font-extrabold">Pro-grade tools</div>
<div class="text-sm text-slate-600">Quality materials and equipment</div>
</div>
</div>
<div class="flex items-center gap-3">
<div class="icon-pill">🛡️</div>
<div>
<div class="font-extrabold">Service warranty</div>
<div class="text-sm text-slate-600">Post-service support</div>
</div>
</div>
<div class="flex items-center gap-3">
<div class="icon-pill">💬</div>
<div>
<div class="font-extrabold">Transparent pricing</div>
<div class="text-sm text-slate-600">No surprises — fixed quotes</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Booking form -->
<section id="booking" class="container mx-auto px-4 py-12 md:py-16">
<div class="card p-6 md:p-8">
<div class="flex items-center justify-between gap-4 flex-wrap">
<div>
<div class="kicker">Secure your slot</div>
<h3 class="section-title mt-2">Book a professional now</h3>
</div>
<div class="badge">Average response: 3 min</div>
</div>
<form id="bookingForm" class="mt-6 grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label class="text-sm font-bold text-slate-600">Full Name</label>
<input class="input mt-1" type="text" name="name" placeholder="Your Name" required>
</div>
<div>
<label class="text-sm font-bold text-slate-600">Phone (WhatsApp)</label>
<input class="input mt-1" type="tel" name="phone" placeholder="10-digit number" required>
</div>
<div>
<label class="text-sm font-bold text-slate-600">Category</label>
<select class="mt-1" name="category" id="categorySelect" required>
<option value="" disabled selected>Select</option>
<option>Car Spa</option>
<option>Home Utility</option>
<option>Demanded Services</option>
</select>
</div>
<div>
<label class="text-sm font-bold text-slate-600">Service</label>
<select class="mt-1" name="service" id="serviceSelect" required></select>
</div>
<div>
<label class="text-sm font-bold text-slate-600">Preferred Date</label>
<input class="input mt-1" type="date" name="date" required>
</div>
<div>
<label class="text-sm font-bold text-slate-600">Preferred Time</label>
<select class="mt-1" name="time" required>
<option>9:00–11:00</option>
<option>11:00–13:00</option>
<option>13:00–15:00</option>
<option>15:00–17:00</option>
<option>17:00–19:00</option>
</select>
</div>
<div class="md:col-span-2">
<label class="text-sm font-bold text-slate-600">Address</label>
<input class="input mt-1" type="text" name="address" placeholder="Flat/Street, Area, Indore" required>
</div>
<div class="md:col-span-2">
<label class="text-sm font-bold text-slate-600">Additional Details</label>
<textarea class="input mt-1" name="details" rows="3" placeholder="Any special instructions? Parking, pet at home, gate pass, etc."></textarea>
</div>
<div class="md:col-span-2 flex flex-wrap gap-3 items-center">
<button type="submit" class="btn-primary">Confirm on WhatsApp</button>
<a id="formWhatsApp" target="_blank" class="btn-ghost">Open WhatsApp</a>
<div class="text-sm text-slate-500">No pre-payment. Pay after service.</div>
</div>
</form>
</div>
</section>
<!-- Pricing highlight -->
<section id="pricing" class="container mx-auto px-4 py-12 md:py-16">
<div class="card p-6 md:p-8">
<div class="kicker">Indicative Pricing</div>
<h3 class="section-title mt-2">Transparent starting prices</h3>
<div class="mt-6 grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="p-5 rounded-2xl border border-slate-200 bg-white hover:shadow-md transition">
<div class="font-extrabold">Car Spa</div>
<ul class="mt-3 text-sm text-slate-600 list-disc pl-5">
<li>Car Wash: ₹399+</li>
<li>Interior Deep Clean: ₹1199+</li>
<li>Teflon Coating: ₹2499+</li>
</ul>
</div>
<div class="p-5 rounded-2xl border border-slate-200 bg-white hover:shadow-md transition">
<div class="font-extrabold">Home Utility</div>
<ul class="mt-3 text-sm text-slate-600 list-disc pl-5">
<li>Sofa Cleaning: ₹799+</li>
<li>Water Tank Cleaning: ₹999+</li>
<li>Solar Panel Cleaning: ₹8/sq.ft</li>
</ul>
</div>
<div class="p-5 rounded-2xl border border-slate-200 bg-white hover:shadow-md transition">
<div class="font-extrabold">Demanded Services</div>
<ul class="mt-3 text-sm text-slate-600 list-disc pl-5">
<li>Driver on Demand: ₹199/hr</li>
<li>Electrician: ₹199/visit</li>
<li>Laptop Repairing: ₹499+</li>
</ul>
</div>
</div>
<div class="mt-6 text-sm text-slate-500">Final quote may vary after inspection and requirements.</div>
</div>
</section>
<!-- Contact / CTA -->
<section id="contact" class="container mx-auto px-4 py-12 md:py-16">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 items-stretch">
<div class="card p-6 md:p-8">
<div class="kicker">Need help?</div>
<h3 class="section-title mt-2">Talk to our Xpert</h3>
<p class="mt-2 text-slate-600">Have a custom requirement? Chat with us and we’ll tailor a solution for you.</p>
<div class="mt-5 flex gap-3">
<a id="contactWhatsApp" target="_blank" class="btn-primary">Chat on WhatsApp</a>
<a href="tel:+919999999999" class="btn-ghost">Call: +91 99999 99999</a>
</div>
<div class="mt-6 text-sm text-slate-500">
Service areas: Indore city and nearby suburbs. Working hours: 8 AM – 8 PM.
</div>
</div>
<div class="card p-0 overflow-hidden">
<iframe title="Indore Map" src="https://www.google.com/maps?q=Indore&output=embed" style="width:100%; height:100%; min-height:320px; border:0;"></iframe>
</div>
</div>
</section>
<!-- Sticky CTA Bar (mobile) -->
<div class="cta-bar md:hidden">
<div class="cta-inner">
<span class="px-2">Genie Xpert</span>
<a id="stickyWhatsApp" target="_blank">Book on WhatsApp</a>
<button class="bg-[color:var(--gx-orange)] text-white font-extrabold rounded-xl px-3 py-2" onclick="document.getElementById('booking').scrollIntoView({behavior:'smooth'})">Book Slot</button>
</div>
</div>
<!-- WhatsApp Floating Button -->
<a id="floatWhatsApp" class="whatsapp-float" target="_blank" aria-label="Chat on WhatsApp">
<span>📲</span> <span>WhatsApp</span>
</a>
<!-- Footer -->
<footer class="footer mt-12">
<div class="container mx-auto px-4 py-10">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<div class="flex items-center gap-3">
<div class="icon-pill">GX</div>
<div class="text-white">
<div class="font-extrabold text-lg">Genie Xpert</div>
<div class="text-xs opacity-80">Indore ka apna Xpert</div>
</div>
</div>
<p class="mt-4 text-sm opacity-80">har Samasya, ka 1 Hal – Genie Xpert. Reliable services at your doorstep.</p>
</div>
<div>
<div class="text-white font-extrabold">Car Spa</div>
<ul class="mt-3 space-y-2 text-sm">
<li><a href="#services">Car Wash</a></li>
<li><a href="#services">Waterless Cleaning</a></li>
<li><a href="#services">Interior Deep Cleaning</a></li>
<li><a href="#services">Teflon Coating</a></li>
<li><a href="#services">Wheel Cleaning</a></li>
</ul>
</div>
<div>
<div class="text-white font-extrabold">Home Utility</div>
<ul class="mt-3 space-y-2 text-sm">
<li><a href="#services">Sofa Cleaning</a></li>
<li><a href="#services">Chair Cleaning</a></li>
<li><a href="#services">Bed & Mattress Cleaning</a></li>
<li><a href="#services">Water Tank Cleaning</a></li>
<li><a href="#services">Solar Panel Cleaning</a></li>
</ul>
</div>
<div>
<div class="text-white font-extrabold">Demanded Services</div>
<ul class="mt-3 space-y-2 text-sm">
<li><a href="#services">Housekeeping</a></li>
<li><a href="#services">Driver on Demand</a></li>
<li><a href="#services">Plumber</a></li>
<li><a href="#services">Electrician</a></li>
<li><a href="#services">Home Appliance Repair</a></li>
<li><a href="#services">RO Cleaning</a></li>
<li><a href="#services">Laptop Repairing</a></li>
</ul>
</div>
</div>
<div class="mt-10 border-t border-white/10 pt-6 flex flex-wrap items-center justify-between gap-3">
<div class="text-xs opacity-80">© <span id="year"></span> Genie Xpert, Indore. All rights reserved.</div>
<div class="flex gap-3">
<a href="#" class="text-xs">Terms</a>
<a href="#" class="text-xs">Privacy</a>
<a href="#" class="text-xs">Refunds</a>
</div>
</div>
</div>
</footer>
<script>
// WhatsApp configuration
const WA_NUMBER = "919999999999"; // Replace with your business number (without +)
const waLink = (text) => `https://wa.me/${WA_NUMBER}?text=${encodeURIComponent(text)}`;
// Populate year
document.getElementById('year').textContent = new Date().getFullYear();
// Services map
const servicesMap = {
"Car Spa": [
"Car Wash",
"Waterless Cleaning",
"Interior Deep Cleaning",
"Teflon Coating",
"Wheel Cleaning"
],
"Home Utility": [
"Sofa Cleaning",
"Chair Cleaning",
"Bed & Mattress Cleaning",
"Water Tank Cleaning",
"Solar Panel Cleaning"
],
"Demanded Services": [
"Housekeeping",
"Driver on Demand",
"Plumber",
"Electrician",
"Home Appliance Repair",
"RO Cleaning",
"Laptop Repairing"
]
};
// Update service select options
function setOptions(select, items){
select.innerHTML = "";
items.forEach(s => {
const opt = document.createElement('option');
opt.value = s; opt.textContent = s;
select.appendChild(opt);
});
}
const categorySelect = document.getElementById('categorySelect');
const serviceSelect = document.getElementById('serviceSelect');
const quickService = document.getElementById('quickService');
// Initialize selects
window.addEventListener('DOMContentLoaded', () => {
// Default category in hero form
const quickCategory = document.querySelector('select[name="category"]');
setOptions(quickService, servicesMap[quickCategory.value]);
quickCategory.addEventListener('change', (e)=>{
setOptions(quickService, servicesMap[e.target.value]);
});
// Booking form initialization
categorySelect.addEventListener('change', (e)=>{
setOptions(serviceSelect, servicesMap[e.target.value] || []);
});
// WhatsApp links
const commonText = "Hello Genie Xpert! I want to book a service in Indore.";
['navWhatsApp','stickyWhatsApp','floatWhatsApp','contactWhatsApp','formWhatsApp'].forEach(id=>{
const el = document.getElementById(id);
if(el) el.href = waLink(commonText);
});
});
// Quick select from cards
function quickSelect(category, service){
// Scroll to booking form and set values
document.getElementById('booking').scrollIntoView({behavior:'smooth'});
// Set booking form fields
if(categorySelect){
categorySelect.value = category;
setOptions(serviceSelect, servicesMap[category] || []);
serviceSelect.value = service;
}
// Also update hero quick form
const quickCat = document.querySelector('select[name="category"]');
if(quickCat){
quickCat.value = category;
setOptions(quickService, servicesMap[category] || []);
quickService.value = service;
}
}
// Tab switching for services
document.querySelectorAll('.category-tab').forEach(btn=>{
btn.addEventListener('click', ()=>{
document.querySelectorAll('.category-tab').forEach(b=>b.classList.remove('active-tab'));
btn.classList.add('active-tab');
const tab = btn.dataset.tab;
document.querySelectorAll('.service-card').forEach(card=>{
const show = (tab === 'car' && card.dataset.cat==='car') ||
(tab === 'home' && card.dataset.cat==='home') ||
(tab === 'demand' && card.dataset.cat==='demand');
card.style.display = show ? '' : 'none';
});
});
});
// WhatsApp submit handlers
function buildMessage(data){
return [
"Genie Xpert Booking Request",
"— — —",
`Name: ${data.name}`,
`Phone: ${data.phone}`,
`City: ${data.city || 'Indore'}`,
`Category: ${data.category}`,
`Service: ${data.service}`,
data.date ? `Preferred Date: ${data.date}` : "",
data.time ? `Preferred Time: ${data.time}` : "",
data.address ? `Address: ${data.address}` : "",
data.details ? `Details: ${data.details}` : "",
"— — —",
"har Samasya, ka 1 Hal – Genie Xpert."
].filter(Boolean).join("\n");
}
// Hero quick form
document.getElementById('quickForm').addEventListener('submit', (e)=>{
e.preventDefault();
const form = e.target;
const data = Object.fromEntries(new FormData(form).entries());
const text = buildMessage(data);
window.open(waLink(text), '_blank');
});
// Booking form
document.getElementById('bookingForm').addEventListener('submit', (e)=>{
e.preventDefault();
const form = e.target;
const data = Object.fromEntries(new FormData(form).entries());
// Add default city if missing
if(!data.city) data.city = "Indore";
const text = buildMessage(data);
const link = waLink(text);
document.getElementById('formWhatsApp').href = link;
window.open(link, '_blank');
});
// Accessibility minor: focus ring for buttons
document.querySelectorAll('button, a.btn-primary, a.btn-ghost, .whatsapp-float').forEach(el=>{
el.addEventListener('keyup',(e)=>{ if(e.key==='Enter'){ el.click(); }});
});
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Make a "Find the odd one out" video for my youtube channel
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Find the Odd One Out - Video Creator</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/gsap@3.11.4/dist/gsap.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
background-color: #f8f9ff;
}
.gradient-bg {
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.card {
transition: all 0.3s ease;
cursor: pointer;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card.correct {
border: 3px solid #10b981;
box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}
.card.wrong {
border: 3px solid #ef4444;
box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}
.timer-bar {
height: 10px;
background: linear-gradient(to right, #10b981, #6366f1);
width: 100%;
border-radius: 5px;
}
.video-preview {
border: 2px dashed #d1d5db;
background-color: #f3f4f6;
transition: all 0.3s ease;
}
.video-preview:hover {
border-color: #8b5cf6;
background-color: #f5f3ff;
}
.custom-shadow {
box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.pulse-animation {
animation: pulse 2s infinite;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.bounce-animation {
animation: bounce 2s infinite;
}
</style>
</head>
<body>
<div class="min-h-screen">
<!-- Header -->
<header class="gradient-bg text-white py-6 shadow-lg">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 4v16M17 4v16M3 8h18M3 16h18" />
</svg>
<h1 class="text-2xl md:text-3xl font-bold">OddFinder Studio</h1>
</div>
<nav class="flex space-x-4">
<a href="#" class="px-3 py-2 rounded-md hover:bg-white hover:bg-opacity-20 transition">Home</a>
<a href="#" class="px-3 py-2 rounded-md hover:bg-white hover:bg-opacity-20 transition">Templates</a>
<a href="#" class="px-3 py-2 rounded-md hover:bg-white hover:bg-opacity-20 transition">Gallery</a>
<a href="#" class="px-3 py-2 rounded-md bg-white bg-opacity-20 font-medium">Create Video</a>
</nav>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-10">
<div class="mb-12 text-center">
<h2 class="text-4xl font-bold text-gray-800 mb-4">Create Your "Find the Odd One Out" Video</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto">Generate engaging content for your YouTube channel that will keep your viewers entertained and boost your engagement!</p>
</div>
<!-- Video Creator Section -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-10">
<!-- Left Column: Options -->
<div class="col-span-1 bg-white rounded-xl p-6 custom-shadow">
<h3 class="text-2xl font-bold text-gray-800 mb-6">Video Settings</h3>
<div class="mb-6">
<label class="block text-gray-700 font-medium mb-2">Difficulty Level</label>
<div class="flex space-x-2">
<button class="px-4 py-2 rounded-lg bg-indigo-100 text-indigo-700 hover:bg-indigo-200 transition flex-1">Easy</button>
<button class="px-4 py-2 rounded-lg bg-indigo-600 text-white hover:bg-indigo-700 transition flex-1">Medium</button>
<button class="px-4 py-2 rounded-lg bg-indigo-100 text-indigo-700 hover:bg-indigo-200 transition flex-1">Hard</button>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 font-medium mb-2">Theme</label>
<select class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>Animals</option>
<option>Emojis</option>
<option>Food Items</option>
<option>Objects</option>
<option>Shapes & Patterns</option>
<option>Random Mix</option>
</select>
</div>
<div class="mb-6">
<label class="block text-gray-700 font-medium mb-2">Timer Duration (seconds)</label>
<input type="range" min="5" max="30" value="10" class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer">
<div class="flex justify-between mt-2 text-sm text-gray-600">
<span>5s</span>
<span>10s</span>
<span>20s</span>
<span>30s</span>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 font-medium mb-2">Number of Puzzles</label>
<div class="flex items-center">
<button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded-l-lg">-</button>
<input type="number" value="10" class="w-16 text-center border-t border-b border-gray-300 py-1">
<button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded-r-lg">+</button>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 font-medium mb-2">Background Music</label>
<div class="flex items-center space-x-2">
<select class="flex-1 px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>Upbeat Fun</option>
<option>Suspenseful</option>
<option>Relaxing</option>
<option>Game Show</option>
<option>No Music</option>
</select>
<button class="p-2 bg-gray-200 hover:bg-gray-300 rounded-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</button>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 font-medium mb-2">Video Resolution</label>
<select class="w-full px-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>1080p (Full HD)</option>
<option>720p (HD)</option>
<option>480p (SD)</option>
<option>4K (Ultra HD)</option>
</select>
</div>
<div class="mb-6">
<label class="flex items-center">
<input type="checkbox" class="h-5 w-5 text-indigo-600" checked>
<span class="ml-2 text-gray-700">Include intro and outro</span>
</label>
</div>
</div>
<!-- Middle Column: Preview -->
<div class="col-span-1 lg:col-span-2">
<!-- Video Preview -->
<div class="bg-white rounded-xl p-6 custom-shadow mb-8">
<h3 class="text-2xl font-bold text-gray-800 mb-4">Live Preview</h3>
<div class="video-preview aspect-w-16 aspect-h-9 w-full bg-gray-100 rounded-lg mb-6">
<div class="relative w-full h-96 bg-gray-900 rounded-lg overflow-hidden">
<!-- Timer Bar -->
<div class="absolute top-0 left-0 w-full">
<div class="timer-bar w-7/12 transition-all duration-1000"></div>
</div>
<!-- Game Area -->
<div class="flex flex-col items-center justify-center h-full px-4">
<h4 class="text-white text-2xl mb-8 font-bold">Find the odd emoji out!</h4>
<div class="grid grid-cols-4 gap-4 max-w-lg">
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center correct">
<span class="text-5xl">🐱</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
<div class="card bg-white rounded-lg p-4 flex items-center justify-center">
<span class="text-5xl">🐶</span>
</div>
</div>
</div>
<!-- Overlay Elements -->
<div class="absolute bottom-4 right-4 bg-white bg-opacity-10 backdrop-filter backdrop-blur-sm px-3 py-1 rounded-full text-white flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span>00:07</span>
</div>
<div class="absolute bottom-4 left-4 bg-white bg-opacity-10 backdrop-filter backdrop-blur-sm px-3 py-1 rounded-full text-white flex items-center">
<span>Puzzle 3/10</span>
</div>
</div>
</div>
<div class="flex space-x-3">
<button class="px-4 py-2 rounded-lg bg-gray-200 text-gray-700 hover:bg-gray-300 transition">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-1 inline" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
</svg>
Regenerate
</button>
<button class="px-4 py-2 rounded-lg bg-indigo-100 text-indigo-700 hover:bg-indigo-200 transition">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-1 inline" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
Preview Full Video
</button>
</div>
</div>
<!-- Video Export Section -->
<div class="bg-white rounded-xl p-6 custom-shadow">
<h3 class="text-2xl font-bold text-gray-800 mb-4">Export Your Video</h3>
<div class="flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-6">
<div class="flex-1">
<label class="block text-gray-700 font-medium mb-2">Video Title</label>
<input type="text" value="Can You Find The Odd One Out? (99% WILL FAIL!)" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div class="flex-1">
<label class="block text-gray-700 font-medium mb-2">File Format</label>
<select class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>MP4 (Recommended)</option>
<option>MOV</option>
<option>AVI</option>
<option>WMV</option>
</select>
</div>
</div>
<div class="mt-6 flex flex-col md:flex-row md:items-center md:justify-between">
<div class="mb-4 md:mb-0">
<span class="text-gray-700">Estimated export time: <span class="font-semibold">3-5 minutes</span></span>
</div>
<div class="flex space-x-4">
<button class="px-5 py-3 rounded-lg bg-indigo-100 text-indigo-700 hover:bg-indigo-200 transition">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 inline" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4" />
</svg>
Save Project
</button>
<button class="px-6 py-3 rounded-lg bg-indigo-600 text-white hover:bg-indigo-700 transition bounce-animation">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 inline" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />
</svg>
Generate & Export
</button>
</div>
</div>
</div>
</div>
</div>
<!-- YouTube Integration -->
<div class="mt-12 bg-white rounded-xl p-6 custom-shadow">
<div class="flex flex-col md:flex-row items-center">
<div class="flex-1 mb-6 md:mb-0 md:mr-8">
<h3 class="text-2xl font-bold text-gray-800 mb-3">Direct YouTube Upload</h3>
<p class="text-gray-600 mb-4">Connect your YouTube channel to upload videos directly. Add tags, description, and set your video's visibility.</p>
<button class="px-5 py-3 rounded-lg bg-red-600 text-white hover:bg-red-700 transition flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" viewBox="0 0 24 24" fill="currentColor">
<path d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"/>
</svg>
Connect to YouTube
</button>
</div>
<div class="flex-1 bg-gray-100 rounded-lg p-4">
<h4 class="text-lg font-semibold mb-2">YouTube Success Tips</h4>
<ul class="text-gray-700 space-y-2">
<li class="flex items-start">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-indigo-600 mt-1" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
</svg>
Use attention-grabbing titles with challenge elements
</li>
<li class="flex items-start">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-indigo-600 mt-1" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
</svg>
Include relevant tags for better discoverability
</li>
<li class="flex items-start">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-indigo-600 mt-1" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
</svg>
Create eye-catching thumbnails with bold text
</li>
<li class="flex items-start">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-indigo-600 mt-1" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
</svg>
Upload consistently to build your audience
</li>
</ul>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-10 mt-20">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h4 class="text-xl font-bold mb-4">OddFinder Studio</h4>
<p class="text-gray-400">Create engaging "Find the Odd One Out" videos for your YouTube channel that will boost your engagement and growth.</p>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Quick Links</h4>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-white transition">Home</a></li>
<li><a href="#" class="hover:text-white transition">Features</a></li>
<li><a href="#" class="hover:text-white transition">Templates</a></li>
<li><a href="#" class="hover:text-white transition">Pricing</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Resources</h4>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-white transition">Blog</a></li>
<li><a href="#" class="hover:text-white transition">Tutorials</a></li>
<li><a href="#" class="hover:text-white transition">Support</a></li>
<li><a href="#" class="hover:text-white transition">API</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Stay Connected</h4>
<div class="flex space-x-4 mb-4">
<a href="#" class="bg-gray-700 hover:bg-gray-600 transition p-2 rounded-full">
<svg class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24"><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/></svg>
</a>
<a href="#" class="bg-gray-700 hover:bg-gray-600 transition p-2 rounded-full">
<svg class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg>
</a>
<a href="#" class="bg-gray-700 hover:bg-gray-600 transition p-2 rounded-full">
<svg class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>
</a>
<a href="#" class="bg-gray-700 hover:bg-gray-600 transition p-2 rounded-full">
<svg class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24"><path d="M21.593 7.203c-.23-.858-.857-1.535-1.676-1.773-1.482-.48-7.416-.48-7.416-.48s-5.933 0-7.416.48c-.819.238-1.447.915-1.676 1.773-.35 1.322-.35 4.082-.35 4.082s0 2.76.35 4.082c.229.858.857 1.535 1.676 1.773 1.483.48 7.416.48 7.416.48s5.933 0 7.416-.48c.819-.238 1.447-.915 1.676-1.773.35-1.322.35-4.082.35-4.082s0-2.76-.35-4.082zm-11.016 6.593v-5.022l4.963 2.511-4.963 2.511z"/></svg>
</a>
</div>
<p class="text-gray-400">Subscribe to our newsletter for tips and updates.</p>
<div class="mt-3 flex">
<input type="email" placeholder="Your email" class="px-3 py-2 bg-gray-700 text-white rounded-l-lg focus:outline-none">
<button class="bg-indigo-600 hover:bg-indigo-700 transition px-4 py-2 rounded-r-lg">Subscribe</button>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-10 pt-6 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-400">© 2023 OddFinder Studio. All rights reserved.</p>
<div class="mt-4 md:mt-0">
<a href="#" class="text-gray-400 hover:text-white transition mr-4">Privacy Policy</a>
<a href="#" class="text-gray-400 hover:text-white transition mr-4">Terms of Service</a>
<a href="#" class="text-gray-400 hover:text-white transition">Contact Us</a>
</div>
</div>
</div>
</footer>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Select all card elements
const cards = document.querySelectorAll('.card');
// Add click event listener to each card
cards.forEach(card => {
card.addEventListener('click', () => {
// Check if the card has the "correct" class
if (card.classList.contains('correct')) {
// Animate success with GSAP
gsap.to(card, {
scale: 1.1,
duration: 0.3,
yoyo: true,
repeat: 1,
ease: "power1.inOut"
});
setTimeout(() => {
// Show success message or move to next puzzle
alert('Correct! You found the odd one out!');
}, 800);
} else {
// Mark as wrong
card.classList.add('wrong');
// Shake animation for wrong selection
gsap.to(card, {
x: 10,
duration: 0.1,
repeat: 3,
yoyo: true,
ease: "power1.inOut",
onComplete: function() {
// Remove the wrong class after the animation
setTimeout(() => {
card.classList.remove('wrong');
}, 1000);
}
});
}
});
});
// Timer bar animation
gsap.to('.timer-bar', {
width: "0%",
duration: 10,
ease: "linear"
});
// Initialize other animations
gsap.from('.bounce-animation', {
y: -10,
duration: 1.5,
repeat: -1,
yoyo: true,
ease: "sine.inOut"
});
});
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Brand: Meli Cream Tagline: From real fruit to royal scoops — 100% fruit, zero additives. Goal: Create a modern, premium, trustworthy landing page to make people pay ₹50 to pre-book a tasting (₹100 credit). Theme: Luxury + Health + Nature. 🍦 HERO SECTION Headline: Fruit-First Ice-Cream — Creamy, Clean, Instant Subheadline: Real fruit. No sugar. No preservatives. Just pure, velvety ice-cream in seconds. CTA: Reserve My Tasting — ₹50 Microcopy: Pay ₹50 now → get ₹100 tasting credit. Limited slots. Secure UPI/Card/Wallet. Hero Visual: Fruits turning into ice-cream in a 10s loop (mango → churn → scoop). Trust Line: Trusted by early tasters across India • Hygienic small-batch kitchen 🍓 SHORT DESCRIPTION Taste the orchard — handcrafted, cold-churned fruit ice-cream that melts like luxury, feels like health. 💚 WHY MELI CREAM Real Fruit Only: No concentrates, no powders — seasonal fruit is the star. Instant & Clean: Ready in 30 seconds. Naturally sweet & low-calorie. Artisan Small Batches: H
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>Meli Cream — Fruit-First Ice-Cream</title>
<meta name="description" content="Fruit-First Ice-Cream — creamy, clean, instant. 100% fruit, zero additives. Pre-book tasting for ₹50 and get ₹100 credit. Limited slots." />
<meta property="og:title" content="Meli Cream — Fruit-First Ice-Cream" />
<meta property="og:description" content="From real fruit to royal scoops — 100% fruit, zero additives. Pre-book tasting for ₹50 and get ₹100 credit." />
<meta property="og:type" content="website" />
<meta name="theme-color" content="#16a34a" />
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
brand: {
DEFAULT: '#16a34a',
dark: '#0f7a31',
light: '#8ef0b4'
},
mango: {
DEFAULT: '#f59e0b',
deep: '#d97706',
soft: '#ffedd5'
},
ink: '#0f172a'
},
boxShadow: {
glow: '0 10px 40px rgba(22,163,74,.22)',
card: '0 10px 30px rgba(2,6,23,.12)'
},
backdropBlur: {
xs: '2px'
}
}
}
}
</script>
<style>
:root{
--ink:#0f172a;
--brand:#16a34a;
--brand-dark:#0f7a31;
--mango:#f59e0b;
--cream:#f6f8f9;
}
html,body{height:100%;}
body{
color:var(--ink);
background:
radial-gradient(1200px 600px at 80% -20%, rgba(255,204,128,.25), transparent 60%),
radial-gradient(1000px 500px at -10% 0%, rgba(46,204,113,.18), transparent 50%),
linear-gradient(180deg, #fcfff9 0%, #ffffff 100%);
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.font-display{font-family: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;}
.gradient-text{
background: linear-gradient(92deg, #0ea5e9 0%, #16a34a 35%, #f59e0b 85%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.btn-primary{
position:relative;
overflow:hidden;
background: linear-gradient(135deg, var(--brand) 0%, #22c55e 50%, #16a34a 100%);
color:#fff;
box-shadow: 0 8px 24px rgba(22,163,74,.35);
transition: transform .2s ease, box-shadow .2s ease;
border: 1px solid rgba(255,255,255,.25);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 12px 30px rgba(22,163,74,.45); }
.btn-primary:active{ transform: translateY(0); }
.btn-primary::after{
content:"";
position:absolute; inset:0;
background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
transform: translateX(-200%);
transition: transform .6s ease;
}
.btn-primary:hover::after{ transform: translateX(200%); }
.glass{
background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.45));
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,.6);
box-shadow: 0 10px 30px rgba(2,6,23,.08);
}
.orb{
position:absolute; filter: blur(32px); opacity:.55; mix-blend-mode: multiply; z-index:-1;
}
.orb.green{ width:420px;height:420px;background:radial-gradient(closest-side, rgba(34,197,94,.5), transparent); }
.orb.mango{ width:360px;height:360px;background:radial-gradient(closest-side, rgba(245,158,11,.5), transparent); }
.float-1{ animation: float1 8s ease-in-out infinite; }
.float-2{ animation: float2 7.5s ease-in-out infinite; }
@keyframes float1{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-10px) } }
@keyframes float2{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(12px) } }
.reveal{ opacity:0; transform: translateY(16px); transition: all .6s ease; }
.reveal.revealed{ opacity:1; transform: translateY(0); }
.tag{
background: linear-gradient(180deg, #ffffff 0%, #f5fff8 100%);
border: 1px solid rgba(22,163,74,.25);
}
/* Hero SVG animation frames */
.frame-mango{ animation: mangoFrame 10s linear infinite; }
.frame-churn{ animation: churnFrame 10s linear infinite; }
.frame-scoop{ animation: scoopFrame 10s linear infinite; }
@keyframes mangoFrame{
0%,30%{ opacity:1 } 30.01%,100%{ opacity:0 }
}
@keyframes churnFrame{
0%,29%{ opacity:0 } 30%,65%{ opacity:1 } 65.01%,100%{ opacity:0 }
}
@keyframes scoopFrame{
0%,64%{ opacity:0 } 65%,100%{ opacity:1 }
}
@keyframes spin{ to{ transform: rotate(360deg) } }
.spin{ animation: spin 4s linear infinite; transform-origin: 50% 50%; }
/* Sticky mobile bottom bar */
.sticky-cta{
position: fixed; inset-inline:0; bottom:0; z-index:50;
background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.8));
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-top:1px solid rgba(15,23,42,.08);
}
/* Modal */
.modal-overlay{
position: fixed; inset:0; background: rgba(2,6,23,.5);
display:none; align-items:center; justify-content:center; z-index:60;
backdrop-filter: blur(2px);
}
.modal{ width:100%; max-width: 720px; border-radius: 20px; }
.modal.show{ display:flex; }
/* Confetti canvas */
#confettiCanvas{ position: fixed; inset:0; pointer-events:none; z-index:70; }
/* FAQ chevron */
details summary::-webkit-details-marker{ display:none; }
details[open] .chev{ transform: rotate(180deg); }
.sr-only-focusable:focus{ position:static !important;width:auto;height:auto;margin:0;overflow:visible;clip:auto !important; }
</style>
</head>
<body class="antialiased selection:bg-brand/15 selection:text-brand">
<canvas id="confettiCanvas" width="1280" height="720" aria-hidden="true"></canvas>
<!-- Decorative Orbs -->
<div class="orb green -top-20 -left-10 float-1"></div>
<div class="orb mango top-20 right-0 float-2"></div>
<!-- Header -->
<header class="sticky top-0 z-50">
<div class="backdrop-blur bg-white/70 border-b border-white/30">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between">
<a href="#" class="flex items-center gap-3 group">
<span class="relative inline-flex w-9 h-9 items-center justify-center rounded-xl bg-gradient-to-br from-brand to-emerald-500 text-white shadow-glow">
<svg width="20" height="20" viewBox="0 0 64 64" aria-hidden="true">
<defs>
<linearGradient id="g1" x1="0" x2="1">
<stop offset="0" stop-color="#34d399"/>
<stop offset="1" stop-color="#16a34a"/>
</linearGradient>
<linearGradient id="g2" x1="0" x2="1">
<stop offset="0" stop-color="#f59e0b"/>
<stop offset="1" stop-color="#fbbf24"/>
</linearGradient>
</defs>
<path d="M36 12c8 0 14 5 14 12 0 6-7 10-12 14-4 4-6 6-8 10-2 4-8 2-10-2-2-4-2-10 2-16 4-6 10-18 14-18z" fill="url(#g1)"/>
<circle cx="20" cy="46" r="6" fill="url(#g2)"/>
</svg>
</span>
<div class="-space-y-0.5">
<span class="text-xl font-display font-semibold tracking-tight">Meli Cream</span>
<span class="block text-[11px] text-ink/60">From real fruit to royal scoops</span>
</div>
</a>
<nav class="hidden md:flex items-center gap-7 text-sm">
<a href="#why" class="hover:text-brand transition">Why Meli Cream</a>
<a href="#flavors" class="hover:text-brand transition">Flavors</a>
<a href="#how" class="hover:text-brand transition">How it Works</a>
<a href="#reviews" class="hover:text-brand transition">Reviews</a>
<a href="#faq" class="hover:text-brand transition">FAQ</a>
</nav>
<div class="flex items-center gap-3">
<div class="hidden sm:flex items-center gap-2 rounded-full px-3 py-1 tag text-[12px]">
<span class="w-2.5 h-2.5 rounded-full bg-emerald-500 animate-pulse"></span>
<span>Slots left today: <b id="slotsHeader">24</b></span>
</div>
<button id="reserveBtnHeader" class="hidden sm:inline-flex btn-primary px-4 py-2 rounded-xl text-sm font-semibold">
Reserve — ₹50
</button>
<button id="mobileMenuBtn" class="md:hidden inline-flex items-center justify-center w-10 h-10 rounded-xl border border-black/10 bg-white">
<span class="sr-only">Open menu</span>
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M4 7h16M4 12h16M4 17h16" stroke="#0f172a" stroke-width="2" stroke-linecap="round"/></svg>
</button>
</div>
</div>
<div id="mobileMenu" class="md:hidden hidden border-t border-white/50 bg-white/80 backdrop-blur">
<div class="mx-auto max-w-7xl px-4 py-4 grid gap-3">
<a href="#why" class="py-2">Why Meli Cream</a>
<a href="#flavors" class="py-2">Flavors</a>
<a href="#how" class="py-2">How it Works</a>
<a href="#reviews" class="py-2">Reviews</a>
<a href="#faq" class="py-2">FAQ</a>
<button id="reserveBtnHeaderMobile" class="btn-primary w-full py-3 rounded-xl font-semibold">Reserve My Tasting — ₹50</button>
</div>
</div>
</div>
</header>
<main>
<!-- HERO -->
<section id="hero" class="pt-10 sm:pt-14 lg:pt-20">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 grid lg:grid-cols-2 gap-10 lg:gap-12 items-center">
<div class="reveal">
<div class="inline-flex items-center gap-2 rounded-full px-3.5 py-2 text-sm tag">
<span class="text-rose-500">Trusted by early tasters across India</span>
<span class="text-ink/30">•</span>
<span class="text-emerald-700">Hygienic small-batch kitchen</span>
</div>
<h1 class="mt-6 font-display text-4xl sm:text-5xl lg:text-6xl leading-[1.05]">
Fruit-First Ice-Cream — <span class="gradient-text">Creamy, Clean, Instant</span>
</h1>
<p class="mt-4 text-lg sm:text-xl text-ink/70">
Real fruit. No sugar. No preservatives. Just pure, velvety ice-cream in seconds.
</p>
<div class="mt-6 flex items-center gap-3 sm:gap-4">
<button id="reserveBtn" class="btn-primary px-6 py-4 rounded-2xl text-base sm:text-lg font-semibold">
Reserve My Tasting — ₹50
</button>
<div class="flex flex-col text-sm text-ink/70">
<span>Pay ₹50 now → get ₹100 tasting credit.</span>
<span class="text-ink/60">Limited slots. Secure UPI/Card/Wallet.</span>
</div>
</div>
<div class="mt-6 flex flex-wrap items-center gap-3">
<div class="inline-flex items-center gap-2 rounded-full px-3 py-1.5 tag text-sm">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 20c4.418 0 8-3.582 8-8S16.418 4 12 4 4 7.582 4 12s3.582 8 8 8Z" stroke="#16a34a" stroke-width="2"/><path d="M8 12l2.5 2.5L16 9" stroke="#16a34a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
No sugar. No preservatives.
</div>
<div class="inline-flex items-center gap-2 rounded-full px-3 py-1.5 tag text-sm">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 3v3m0 12v3m8-8h-3M7 12H4m12.364-4.364l-2.121 2.121M8.757 15.243l-2.121 2.121M15.243 15.243l2.121 2.121M6.636 6.636l2.121 2.121" stroke="#0ea5e9" stroke-width="2" stroke-linecap="round"/></svg>
Ready in 30 seconds
</div>
</div>
<div class="mt-6 flex items-center gap-4">
<div class="flex items-center -space-x-2">
<img alt="" src="https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=80&auto=format&fit=crop" class="w-8 h-8 rounded-full border-2 border-white shadow-card" />
<img alt="" src="https://images.unsplash.com/photo-1546961329-78bef0414d7c?q=80&w=80&auto=format&fit=crop" class="w-8 h-8 rounded-full border-2 border-white shadow-card" />
<img alt="" src="https://images.unsplash.com/photo-1547425260-76bcadfb4f2c?q=80&w=80&auto=format&fit=crop" class="w-8 h-8 rounded-full border-2 border-white shadow-card" />
<div class="w-8 h-8 rounded-full bg-brand/10 border-2 border-white flex items-center justify-center text-[11px] font-semibold text-brand">+99</div>
</div>
<div class="text-sm text-ink/70">
<span class="font-semibold text-ink/90">1,200+</span> pre-booked tastings
<span class="mx-2 text-ink/40">•</span>
Slots left today: <span id="slotsHero" class="font-semibold text-brand">24</span>
</div>
</div>
<div class="mt-4 flex items-center gap-3 text-xs text-ink/60">
<span class="inline-flex items-center gap-1.5">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M4 7h16M4 12h10M4 17h6" stroke="#334155" stroke-width="2" stroke-linecap="round"/></svg>
Batch closes in <span id="countdown" class="font-semibold text-ink/80">--:--:--</span>
</span>
<span class="inline-flex items-center gap-1.5">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><rect x="3" y="5" width="18" height="14" rx="3" stroke="#16a34a" stroke-width="2"/><path d="M7 10h5M7 14h10" stroke="#16a34a" stroke-width="2" stroke-linecap="round"/></svg>
UPI • Card • Wallet
</span>
</div>
</div>
<div class="reveal">
<div class="relative rounded-3xl p-4 sm:p-6 glass">
<div class="absolute -top-6 -left-6 w-20 h-20 rounded-2xl bg-gradient-to-br from-brand/40 to-emerald-300/40 blur-2xl"></div>
<div class="absolute -bottom-8 -right-8 w-28 h-28 rounded-2xl bg-gradient-to-br from-mango-DEFAULT/40 to-amber-200/30 blur-2xl"></div>
<div class="relative rounded-2xl overflow-hidden bg-gradient-to-b from-white to-emerald-50 border border-white/70 shadow-card">
<div class="p-3 text-xs text-ink/60">Fruits turning into ice-cream (10s loop)</div>
<div class="aspect-[5/4] flex items-center justify-center">
<!-- Inline SVG Animation -->
<svg viewBox="0 0 600 480" width="100%" height="100%" role="img" aria-label="Mango transforming into ice-cream">
<defs>
<linearGradient id="leafGrad" x1="0" x2="1">
<stop offset="0" stop-color="#22c55e"/>
<stop offset="1" stop-color="#16a34a"/>
</linearGradient>
<linearGradient id="mangoGrad" x1="0" x2="1">
<stop offset="0" stop-color="#f59e0b"/>
<stop offset="1" stop-color="#fbbf24"/>
</linearGradient>
<linearGradient id="creamGrad" x1="0" x2="0" y1="0" y2="1">
<stop offset="0" stop-color="#fff7ed"/>
<stop offset="1" stop-color="#fde68a"/>
</linearGradient>
<filter id="shadow">
<feDropShadow dx="0" dy="6" stdDeviation="6" flood-color="rgba(15,23,42,.25)"/>
</filter>
</defs>
<!-- Background subtle grid -->
<g opacity=".12">
<path d="M60 60h480v300H60z" fill="none" stroke="#0f172a" stroke-width="1" stroke-dasharray="2 6"/>
<circle cx="300" cy="210" r="160" fill="url(#creamGrad)" opacity=".15"/>
</g>
<!-- Frame 1: Mango -->
<g class="frame-mango" style="opacity:1; transition:opacity .4s ease">
<g filter="url(#shadow)">
<ellipse cx="300" cy="360" rx="120" ry="18" fill="#0f172a" opacity=".1"/>
<g transform="translate(230,140) rotate(-15 70 90)">
<path d="M60 0c60 0 100 44 100 92 0 48-50 75-82 102-22 18-34 36-46 58-8 14-30 8-36-6-10-22-8-58 14-98C34 110 44 0 60 0z" fill="url(#mangoGrad)"/>
<path d="M84 -4c20 8 26 34 26 34s-24 6-44-2c-14-6-24-28-24-28s22-10 42-4z" fill="url(#leafGrad)" transform="translate(46,-22) rotate(16)"/>
<circle cx="80" cy="60" r="8" fill="#ffffff" opacity=".35"/>
<path d="M0 150c40 26 120 26 160 0" fill="none" stroke="#f59e0b" stroke-width="6" stroke-linecap="round" opacity=".35"/>
</g>
</g>
<text x="300" y="430" text-anchor="middle" font-family="Inter" font-size="18" fill="#0f172a99">Mango → the star ingredient</text>
</g>
<!-- Frame 2: Churn -->
<g class="frame-churn" style="opacity:0; transition:opacity .4s ease">
<g filter="url(#shadow)">
<ellipse cx="300" cy="360" rx="120" ry="18" fill="#0f172a" opacity=".1"/>
<g transform="translate(170,140)">
<rect x="0" y="40" width="260" height="140" rx="24" fill="url(#creamGrad)" stroke="#0f172a22"/>
<rect x="18" y="58" width="224" height="104" rx="18" fill="#ffffff" stroke="#0f172a22"/>
<g class="spin" transform="translate(148,110)">
<path d="M0-48 A48 48 0 1 1 -0.01 -48" fill="none" stroke="#f59e0b" stroke-width="10" stroke-linecap="round"/>
<circle cx="0" cy="0" r="6" fill="#16a34a"/>
</g>
<path d="M30 180c50 28 170 28 220 0" fill="none" stroke="#0f172a33" stroke-width="8" stroke-linecap="round"/>
</g>
</g>
<text x="300" y="430" text-anchor="middle" font-family="Inter" font-size="18" fill="#0f172a99">Cold-churned in seconds</text>
</g>
<!-- Frame 3: Scoop -->
<g class="frame-scoop" style="opacity:0; transition:opacity .4s ease">
<g filter="url(#shadow)">
<ellipse cx="300" cy="360" rx="120" ry="18" fill="#0f172a" opacity=".1"/>
<g transform="translate(220,140)">
<path d="M40 120h120l-12 54c-2 10-12 18-22 18H74c-10 0-20-8-22-18L40 120z" fill="#ffffff" stroke="#0f172a22"/>
<path d="M148 120H52c-4 0-8-4-8-8V96h112v16c0 4-4 8-8 8z" fill="url(#creamGrad)" stroke="#0f172a22"/>
<circle cx="100" cy="82" r="46" fill="url(#creamGrad)" stroke="#f59e0b55"/>
<circle cx="78" cy="68" r="12" fill="#fff" opacity=".6"/>
<path d="M154 58c18-8 26 20 8 28" stroke="#f59e0b" stroke-width="6" stroke-linecap="round"/>
</g>
</g>
<text x="300" y="430" text-anchor="middle" font-family="Inter" font-size="18" fill="#0f172a99">Scoop — pure, velvety, fruit-first</text>
</g>
</svg>
</div>
</div>
<div class="mt-3 flex items-center justify-between text-xs text-ink/60">
<span>Looping visual • mango → churn → scoop</span>
<span>10s loop</span>
</div>
</div>
</div>
</div>
</section>
<!-- SHORT DESCRIPTION -->
<section class="mt-14 sm:mt-20">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="rounded-3xl p-6 sm:p-8 bg-gradient-to-r from-emerald-50 via-white to-amber-50 border border-emerald-100/60">
<p class="text-center text-lg sm:text-xl text-ink/80">
🍓 Taste the orchard — handcrafted, cold-churned fruit ice-cream that melts like luxury, feels like health.
</p>
</div>
</div>
</section>
<!-- WHY MELI CREAM -->
<section id="why" class="mt-16 sm:mt-24">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="font-display text-3xl sm:text-4xl">Why Meli Cream</h2>
<p class="mt-3 text-ink/70">From farm-fresh fruit to royal scoops — nothing artificial, ever.</p>
</div>
<div class="mt-8 grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal">
<div class="w-12 h-12 rounded-xl bg-emerald-100 text-emerald-700 flex items-center justify-center">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none"><path d="M12 2s-1 3-4 4-5 2-5 5 3 5 5 5 4 2 4 4 1-3 4-4 5-2 5-5-3-5-5-5-4-2-4-4Z" fill="#10b981"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Real Fruit Only</h3>
<p class="mt-2 text-ink/70 text-sm">No concentrates, no powders — seasonal fruit is the star.</p>
</div>
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal">
<div class="w-12 h-12 rounded-xl bg-sky-100 text-sky-700 flex items-center justify-center">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none"><path d="M13 10V3l-2 2v5H6l2 2h3v4l2-2v-2h3l-2-2h-3Z" fill="#0ea5e9"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Instant & Clean</h3>
<p class="mt-2 text-ink/70 text-sm">Ready in 30 seconds. Naturally sweet & low-calorie.</p>
</div>
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal">
<div class="w-12 h-12 rounded-xl bg-amber-100 text-amber-700 flex items-center justify-center">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none"><path d="M12 3l3 4h4l-3 4 3 4h-4l-3 4-3-4H5l3-4-3-4h4l3-4Z" fill="#f59e0b"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Artisan Small Batches</h3>
<p class="mt-2 text-ink/70 text-sm">Handcrafted in a hygienic, traceable, small-batch kitchen.</p>
</div>
</div>
</div>
</section>
<!-- FLAVORS -->
<section id="flavors" class="mt-16 sm:mt-24">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="flex items-end justify-between">
<div>
<h2 class="font-display text-3xl sm:text-4xl">Seasonal Flavors</h2>
<p class="mt-2 text-ink/70">100% fruit, churned cold, indulgently clean.</p>
</div>
<div class="hidden sm:flex items-center gap-2 text-sm tag px-3 py-1.5 rounded-full">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M3 6h18M3 12h14M3 18h8" stroke="#0f172a" stroke-width="2" stroke-linecap="round"/></svg>
Swipe to view
</div>
</div>
<div class="mt-6 overflow-x-auto snap-x snap-mandatory pb-2">
<div class="flex gap-5 min-w-max">
<!-- Flavor Card Template -->
<div class="snap-start min-w-[240px] sm:min-w-[280px] rounded-3xl p-5 bg-white border border-emerald-100 shadow-card hover:shadow-glow transition group cursor-pointer" data-flavor="Alphonso Mango">
<div class="h-40 rounded-2xl bg-gradient-to-br from-amber-100 to-amber-50 flex items-center justify-center text-6xl">🥭</div>
<div class="mt-4 flex items-center justify-between">
<div>
<h3 class="font-semibold text-lg">Alphonso Mango</h3>
<p class="text-ink/60 text-sm">100% fruit • naturally sweet</p>
</div>
<span class="px-2.5 py-1 rounded-full bg-amber-100 text-amber-700 text-xs font-semibold">Seasonal</span>
</div>
<button class="mt-4 w-full btn-primary py-2.5 rounded-xl font-semibold text-sm">Reserve this flavor</button>
</div>
<div class="snap-start min-w-[240px] sm:min-w-[280px] rounded-3xl p-5 bg-white border border-emerald-100 shadow-card hover:shadow-glow transition group cursor-pointer" data-flavor="Strawberry">
<div class="h-40 rounded-2xl bg-gradient-to-br from-rose-100 to-pink-50 flex items-center justify-center text-6xl">🍓</div>
<div class="mt-4 flex items-center justify-between">
<div>
<h3 class="font-semibold text-lg">Strawberry</h3>
<p class="text-ink/60 text-sm">Farm-fresh & bright</p>
</div>
<span class="px-2.5 py-1 rounded-full bg-rose-100 text-rose-700 text-xs font-semibold">100% fruit</span>
</div>
<button class="mt-4 w-full btn-primary py-2.5 rounded-xl font-semibold text-sm">Reserve this flavor</button>
</div>
<div class="snap-start min-w-[240px] sm:min-w-[280px] rounded-3xl p-5 bg-white border border-emerald-100 shadow-card hover:shadow-glow transition group cursor-pointer" data-flavor="Tender Coconut">
<div class="h-40 rounded-2xl bg-gradient-to-br from-emerald-100 to-teal-50 flex items-center justify-center text-6xl">🥥</div>
<div class="mt-4 flex items-center justify-between">
<div>
<h3 class="font-semibold text-lg">Tender Coconut</h3>
<p class="text-ink/60 text-sm">Light, silky, refreshing</p>
</div>
<span class="px-2.5 py-1 rounded-full bg-emerald-100 text-emerald-700 text-xs font-semibold">Dairy optional</span>
</div>
<button class="mt-4 w-full btn-primary py-2.5 rounded-xl font-semibold text-sm">Reserve this flavor</button>
</div>
<div class="snap-start min-w-[240px] sm:min-w-[280px] rounded-3xl p-5 bg-white border border-emerald-100 shadow-card hover:shadow-glow transition group cursor-pointer" data-flavor="Sitaphal (Custard Apple)">
<div class="h-40 rounded-2xl bg-gradient-to-br from-lime-100 to-emerald-50 flex items-center justify-center text-6xl">🍈</div>
<div class="mt-4 flex items-center justify-between">
<div>
<h3 class="font-semibold text-lg">Sitaphal</h3>
<p class="text-ink/60 text-sm">Creamy & mellow</p>
</div>
<span class="px-2.5 py-1 rounded-full bg-lime-100 text-lime-700 text-xs font-semibold">Small-batch</span>
</div>
<button class="mt-4 w-full btn-primary py-2.5 rounded-xl font-semibold text-sm">Reserve this flavor</button>
</div>
<div class="snap-start min-w-[240px] sm:min-w-[280px] rounded-3xl p-5 bg-white border border-emerald-100 shadow-card hover:shadow-glow transition group cursor-pointer" data-flavor="Blueberry">
<div class="h-40 rounded-2xl bg-gradient-to-br from-indigo-100 to-violet-50 flex items-center justify-center text-6xl">🫐</div>
<div class="mt-4 flex items-center justify-between">
<div>
<h3 class="font-semibold text-lg">Blueberry</h3>
<p class="text-ink/60 text-sm">Antioxidant-rich</p>
</div>
<span class="px-2.5 py-1 rounded-full bg-indigo-100 text-indigo-700 text-xs font-semibold">No sugar</span>
</div>
<button class="mt-4 w-full btn-primary py-2.5 rounded-xl font-semibold text-sm">Reserve this flavor</button>
</div>
</div>
</div>
<p class="mt-3 text-xs text-ink/60">Note: Availability depends on seasonal fruit.</p>
</div>
</section>
<!-- HOW IT WORKS -->
<section id="how" class="mt-16 sm:mt-24">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="font-display text-3xl sm:text-4xl">How it works</h2>
<p class="mt-2 text-ink/70">3 simple steps to fruit-first bliss.</p>
</div>
<div class="mt-8 grid sm:grid-cols-3 gap-6">
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal">
<div class="w-12 h-12 rounded-xl bg-emerald-100 text-emerald-700 flex items-center justify-center">
<span class="text-2xl">🥭</span>
</div>
<h3 class="mt-4 font-semibold">Pick your fruit</h3>
<p class="text-sm text-ink/70 mt-2">Seasonal, traceable, and sourced from trusted farms.</p>
</div>
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal relative">
<div class="w-12 h-12 rounded-xl bg-sky-100 text-sky-700 flex items-center justify-center">
<span class="text-2xl">❄️</span>
</div>
<h3 class="mt-4 font-semibold">Cold-churned instantly</h3>
<p class="text-sm text-ink/70 mt-2">Our clean process whips fruit into velvety ice-cream in 30 seconds.</p>
<svg class="hidden sm:block absolute -right-5 top-1/2 -translate-y-1/2" width="60" height="24" viewBox="0 0 60 24" fill="none"><path d="M0 12h54m0 0-6-6m6 6-6 6" stroke="#94a3b8" stroke-width="2" stroke-linecap="round"/></svg>
</div>
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal">
<div class="w-12 h-12 rounded-xl bg-amber-100 text-amber-700 flex items-center justify-center">
<span class="text-2xl">🍨</span>
</div>
<h3 class="mt-4 font-semibold">Scoop & savor</h3>
<p class="text-sm text-ink/70 mt-2">Creamy, clean indulgence — luxury that feels like health.</p>
</div>
</div>
</div>
</section>
<!-- REVIEWS -->
<section id="reviews" class="mt-16 sm:mt-24">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="font-display text-3xl sm:text-4xl">Loved by early tasters</h2>
<p class="mt-2 text-ink/70">Across Mumbai, Pune, Delhi, Bengaluru — we’re winning hearts.</p>
</div>
<div class="mt-8 grid md:grid-cols-3 gap-6">
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-emerald-100 text-emerald-700 flex items-center justify-center font-semibold">AK</div>
<div>
<div class="font-semibold">Ananya K</div>
<div class="text-xs text-ink/60">Verified taster • Mumbai</div>
</div>
</div>
<div class="mt-3 text-amber-500">★★★★★</div>
<p class="mt-2 text-ink/80">Unreal creaminess for something with zero sugar. Mango was divine!</p>
</div>
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-amber-100 text-amber-700 flex items-center justify-center font-semibold">RS</div>
<div>
<div class="font-semibold">Rohit S</div>
<div class="text-xs text-ink/60">Verified taster • Bengaluru</div>
</div>
</div>
<div class="mt-3 text-amber-500">★★★★★</div>
<p class="mt-2 text-ink/80">Tastes like fruit, not flavoring. Clean after-feel, no sugar rush.</p>
</div>
<div class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card reveal">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-full bg-indigo-100 text-indigo-700 flex items-center justify-center font-semibold">SM</div>
<div>
<div class="font-semibold">Sana M</div>
<div class="text-xs text-ink/60">Verified taster • Delhi</div>
</div>
</div>
<div class="mt-3 text-amber-500">★★★★★</div>
<p class="mt-2 text-ink/80">Finally, luxury that feels light. Tender coconut is a must-try.</p>
</div>
</div>
</div>
</section>
<!-- BIG CTA -->
<section class="mt-16 sm:mt-24">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="rounded-3xl p-8 sm:p-10 bg-gradient-to-br from-emerald-600 via-emerald-500 to-amber-400 text-white relative overflow-hidden">
<div class="absolute right-0 -top-16 w-64 h-64 bg-white/10 rounded-full blur-3xl"></div>
<div class="relative">
<h3 class="font-display text-2xl sm:text-3xl">Reserve your tasting now — ₹50</h3>
<p class="mt-2 text-white/90">Pay ₹50 now and get ₹100 tasting credit. Limited slots. Secure UPI/Card/Wallet.</p>
<div class="mt-5 flex flex-wrap items-center gap-4">
<button id="reserveBtnCTA" class="btn-primary bg-white text-emerald-700 hover:text-emerald-800 px-6 py-3 rounded-2xl font-semibold border-white/80">
Reserve My Tasting — ₹50
</button>
<div class="flex items-center gap-3 text-sm">
<div class="flex -space-x-2">
<div class="w-7 h-7 rounded-full bg-white/90 text-emerald-700 flex items-center justify-center text-[11px] font-semibold border border-white/50">UPI</div>
<div class="w-7 h-7 rounded-full bg-white/90 text-emerald-700 flex items-center justify-center text-[11px] font-semibold border border-white/50">V</div>
<div class="w-7 h-7 rounded-full bg-white/90 text-emerald-700 flex items-center justify-center text-[11px] font-semibold border border-white/50">M</div>
</div>
<span class="text-white/85">Slots left: <b id="slotsCta">24</b></span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- FAQ -->
<section id="faq" class="mt-16 sm:mt-24 mb-28">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="font-display text-3xl sm:text-4xl">Questions? We’ve got you.</h2>
<p class="mt-2 text-ink/70">Everything you need to know about the tasting and our process.</p>
</div>
<div class="mt-8 grid md:grid-cols-2 gap-6">
<details class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card">
<summary class="flex items-center justify-between cursor-pointer">
<span class="font-semibold">What do I get with the ₹50 reservation?</span>
<svg class="chev transition-transform" width="18" height="18" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" stroke="#0f172a" stroke-width="2" fill="none" stroke-linecap="round"/></svg>
</summary>
<p class="mt-3 text-ink/70 text-sm">You’ll receive a ₹100 tasting credit to use during your session. Your ₹50 pre-book secures a slot and is fully credited.</p>
</details>
<details class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card">
<summary class="flex items-center justify-between cursor-pointer">
<span class="font-semibold">Is there sugar or preservatives?</span>
<svg class="chev transition-transform" width="18" height="18" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" stroke="#0f172a" stroke-width="2" fill="none" stroke-linecap="round"/></svg>
</summary>
<p class="mt-3 text-ink/70 text-sm">Zero refined sugar. Zero preservatives. We let real fruit shine — naturally sweet and clean.</p>
</details>
<details class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card">
<summary class="flex items-center justify-between cursor-pointer">
<span class="font-semibold">Where are tastings available?</span>
<svg class="chev transition-transform" width="18" height="18" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" stroke="#0f172a" stroke-width="2" fill="none" stroke-linecap="round"/></svg>
</summary>
<p class="mt-3 text-ink/70 text-sm">We run pop-ups across major Indian cities. Pre-book to get notified for the closest slot in your city.</p>
</details>
<details class="rounded-2xl p-6 bg-white border border-emerald-100 shadow-card">
<summary class="flex items-center justify-between cursor-pointer">
<span class="font-semibold">Do you offer dairy-free?</span>
<svg class="chev transition-transform" width="18" height="18" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" stroke="#0f172a" stroke-width="2" fill="none" stroke-linecap="round"/></svg>
</summary>
<p class="mt-3 text-ink/70 text-sm">Yes! Many flavors are dairy-optional and taste incredible even without dairy.</p>
</details>
</div>
</div>
</section>
</main>
<!-- Sticky mobile bar -->
<div class="sticky-cta md:hidden">
<div class="mx-auto max-w-7xl px-4 py-3 flex items-center justify-between">
<div class="text-sm">
<div class="font-semibold">Reserve Tasting — ₹50</div>
<div class="text-ink/60 text-xs">Get ₹100 tasting credit · Slots left <b id="slotsSticky">24</b></div>
</div>
<button id="reserveBtnSticky" class="btn-primary px-4 py-2 rounded-xl text-sm font-semibold">Reserve</button>
</div>
</div>
<!-- Modal: Reservation -->
<div id="reserveModal" class="modal-overlay" role="dialog" aria-modal="true" aria-labelledby="modalTitle">
<div class="modal glass p-0">
<div class="px-6 pt-6 pb-4 border-b border-white/60 flex items-start justify-between">
<div>
<h3 id="modalTitle" class="font-display text-xl">Reserve Your Tasting</h3>
<p class="text-sm text-ink/70">Pay ₹50 now → get ₹100 tasting credit. Limited slots.</p>
</div>
<button id="closeModal" class="w-10 h-10 rounded-xl border border-black/10 bg-white inline-flex items-center justify-center">
<span class="sr-only">Close</span>
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M6 6l12 12M18 6 6 18" stroke="#0f172a" stroke-width="2" stroke-linecap="round"/></svg>
</button>
</div>
<div class="p-6 grid md:grid-cols-5 gap-6">
<!-- Form -->
<div class="md:col-span-3">
<form id="reserveForm" class="grid gap-4">
<div>
<label class="text-sm font-medium">Full Name</label>
<input required name="name" class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="Your name" />
</div>
<div>
<label class="text-sm font-medium">Email</label>
<input required type="email" name="email" class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="you@example.com" />
</div>
<div class="grid sm:grid-cols-2 gap-4">
<div>
<label class="text-sm font-medium">City</label>
<input name="city" class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="e.g. Mumbai" />
</div>
<div>
<label class="text-sm font-medium">Preferred Flavor</label>
<input id="flavorInput" name="flavor" class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="e.g. Alphonso Mango" />
</div>
</div>
<div class="mt-2">
<div class="text-sm font-medium mb-2">Payment Method</div>
<div class="grid grid-cols-3 gap-3">
<button type="button" data-tab="upi" class="paytab active inline-flex flex-col items-center gap-2 rounded-xl border border-emerald-200 bg-emerald-50 px-3 py-3 text-sm font-semibold text-emerald-800">
<span>UPI</span>
</button>
<button type="button" data-tab="card" class="paytab inline-flex flex-col items-center gap-2 rounded-xl border border-black/10 bg-white px-3 py-3 text-sm">
<span>Card</span>
</button>
<button type="button" data-tab="wallet" class="paytab inline-flex flex-col items-center gap-2 rounded-xl border border-black/10 bg-white px-3 py-3 text-sm">
<span>Wallet</span>
</button>
</div>
<div class="mt-4">
<div id="tab-upi" class="paypanel">
<label class="text-sm font-medium">Your UPI ID</label>
<input class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="username@upi" />
<p class="mt-2 text-xs text-ink/60">We’ll request ₹50. You’ll get ₹100 tasting credit on confirmation.</p>
</div>
<div id="tab-card" class="paypanel hidden">
<div class="grid grid-cols-2 gap-3">
<div class="col-span-2">
<label class="text-sm font-medium">Card Number</label>
<input class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="1234 5678 9012 3456" />
</div>
<div>
<label class="text-sm font-medium">Expiry</label>
<input class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="MM/YY" />
</div>
<div>
<label class="text-sm font-medium">CVV</label>
<input class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="***" />
</div>
</div>
</div>
<div id="tab-wallet" class="paypanel hidden">
<label class="text-sm font-medium">Select Wallet</label>
<select class="mt-1 w-full rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200">
<option>PhonePe</option>
<option>PayTM</option>
<option>Amazon Pay</option>
<option>Mobikwik</option>
</select>
</div>
</div>
</div>
<button id="payBtn" class="mt-2 btn-primary w-full py-3.5 rounded-xl font-semibold">Pay ₹50 & Reserve</button>
<div id="processing" class="hidden mt-2 text-sm text-ink/70">Processing payment securely...</div>
</form>
</div>
<!-- Summary -->
<div class="md:col-span-2">
<div class="rounded-2xl p-5 bg-white border border-emerald-100 shadow-card">
<div class="flex items-center justify-between">
<h4 class="font-semibold">Order Summary</h4>
<span class="text-xs text-ink/60">#<span id="summaryId">—</span></span>
</div>
<div class="mt-3 space-y-2 text-sm">
<div class="flex items-center justify-between">
<span>Pre-book tasting</span>
<span>₹50</span>
</div>
<div class="flex items-center justify-between text-emerald-700">
<span>Instant tasting credit</span>
<span>- ₹100</span>
</div>
<div class="border-t border-dashed my-2"></div>
<div class="flex items-center justify-between font-semibold">
<span>Today’s payable</span>
<span>₹50</span>
</div>
</div>
<div class="mt-4 rounded-xl p-3 tag text-sm">
<div class="flex items-center gap-2">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M4 12c0-4.418 3.582-8 8-8s8 3.582 8 8-3.582 8-8 8" stroke="#16a34a" stroke-width="2"/><path d="M8 12l2.5 2.5L16 9" stroke="#16a34a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
Secure UPI/Card/Wallet • Auto-confirm in seconds
</div>
</div>
<div id="successPanel" class="hidden mt-4 rounded-xl p-4 bg-emerald-50 border border-emerald-200">
<div class="flex items-center gap-2 text-emerald-800">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M8 12l2.5 2.5L16 9" stroke="#047857" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="12" cy="12" r="9" stroke="#047857" stroke-width="2"/></svg>
<span class="font-semibold">Reservation confirmed!</span>
</div>
<p class="mt-2 text-sm text-emerald-900">Tasting credit ₹100 added. Ticket ID: <b id="ticketId"></b>. A confirmation email has been sent.</p>
<div class="mt-3 flex items-center gap-3">
<button id="doneBtn" class="inline-flex items-center justify-center px-4 py-2 rounded-lg bg-emerald-600 text-white font-semibold">Done</button>
<button id="anotherBtn" class="inline-flex items-center justify-center px-4 py-2 rounded-lg border border-emerald-300 text-emerald-800">Book another</button>
</div>
</div>
</div>
</div>
</div>
<div class="px-6 pb-6 text-center text-xs text-ink/60">By reserving, you agree to our terms and hygiene policy. Need help? <a href="#" class="text-brand underline">Chat with us</a>.</div>
</div>
</div>
<!-- Footer -->
<footer class="mt-10 border-t border-emerald-100/60">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-10 grid md:grid-cols-3 gap-8">
<div>
<div class="font-display text-xl">Meli Cream</div>
<div class="text-sm text-ink/60 mt-1">From real fruit to royal scoops — 100% fruit, zero additives.</div>
<div class="mt-3 flex items-center gap-2 text-xs text-ink/60">
<span>© <span id="year"></span> Meli Cream</span>
<span>•</span>
<span>All rights reserved</span>
</div>
</div>
<div class="grid grid-cols-2 gap-6 text-sm">
<div>
<div class="font-semibold">Explore</div>
<ul class="mt-2 space-y-1">
<li><a href="#why" class="hover:text-brand">Why Meli Cream</a></li>
<li><a href="#flavors" class="hover:text-brand">Flavors</a></li>
<li><a href="#how" class="hover:text-brand">How it Works</a></li>
<li><a href="#reviews" class="hover:text-brand">Reviews</a></li>
</ul>
</div>
<div>
<div class="font-semibold">Support</div>
<ul class="mt-2 space-y-1">
<li><a href="#faq" class="hover:text-brand">FAQ</a></li>
<li><a href="#" class="hover:text-brand">Hygiene & Safety</a></li>
<li><a href="#" class="hover:text-brand">Terms</a></li>
<li><a href="#" class="hover:text-brand">Privacy</a></li>
</ul>
</div>
</div>
<div class="text-sm">
<div class="font-semibold">Get updates</div>
<p class="mt-2 text-ink/70">Be the first to know about new flavors and pop-ups.</p>
<form id="subscribeForm" class="mt-3 flex gap-2">
<input required type="email" class="flex-1 rounded-xl border border-black/10 bg-white px-3.5 py-3 outline-none focus:ring-2 focus:ring-emerald-200" placeholder="you@example.com" />
<button class="btn-primary px-4 rounded-xl">Subscribe</button>
</form>
<p id="subscribeMsg" class="mt-2 text-xs text-emerald-700 hidden">Thanks! You’re on the list.</p>
</div>
</div>
</footer>
<script>
// Helpers
const $ = (sel, ctx=document) => ctx.querySelector(sel);
const $$ = (sel, ctx=document) => Array.from(ctx.querySelectorAll(sel));
// Intersection reveal
const io = new IntersectionObserver((entries)=>{
entries.forEach(e => {
if(e.isIntersecting){ e.target.classList.add('revealed'); io.unobserve(e.target); }
});
}, { threshold: .12 });
$$('.reveal').forEach(el => io.observe(el));
// Mobile menu
const mobileMenuBtn = $('#mobileMenuBtn');
const mobileMenu = $('#mobileMenu');
mobileMenuBtn?.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
});
// Slots logic
const slotsEls = [$('#slotsHeader'), $('#slotsHero'), $('#slotsCta'), $('#slotsSticky')];
let slots = Math.floor(Math.random()*12)+18; // 18-30
const minSlots = 5;
function renderSlots(){ slotsEls.forEach(el => el && (el.textContent = slots)); }
renderSlots();
setInterval(()=>{
if(slots > minSlots) {
slots -= 1;
renderSlots();
}
}, Math.floor(Math.random()*8000)+12000); // 12-20s
// Countdown to 11:59:59 PM local
const countdownEl = $('#countdown');
function updateCountdown(){
const now = new Date();
const end = new Date();
end.setHours(23,59,59,999);
const diff = Math.max(0, end - now);
const h = String(Math.floor(diff/3.6e6)).padStart(2,'0');
const m = String(Math.floor((diff%3.6e6)/6e4)).padStart(2,'0');
const s = String(Math.floor((diff%6e4)/1000)).padStart(2,'0');
countdownEl.textContent = `${h}:${m}:${s}`;
}
updateCountdown();
setInterval(updateCountdown, 1000);
// Reserve Modal
const openReserveButtons = ['#reserveBtn', '#reserveBtnHeader', '#reserveBtnHeaderMobile', '#reserveBtnCTA', '#reserveBtnSticky'].map(sel => $(sel)).filter(Boolean);
const modal = $('#reserveModal');
const closeModalBtn = $('#closeModal');
openReserveButtons.forEach(btn => btn.addEventListener('click', () => openModal()));
closeModalBtn.addEventListener('click', closeModal);
function openModal(){ modal.classList.add('show'); document.body.style.overflow='hidden'; $('#summaryId').textContent = generateId(); }
function closeModal(){ modal.classList.remove('show'); document.body.style.overflow=''; }
modal.addEventListener('click', (e)=>{ if(e.target === modal) closeModal(); });
function generateId(){ return Math.random().toString(36).slice(2,8).toUpperCase(); }
// Flavor prefill
const flavorInput = $('#flavorInput');
$$('#flavors .group').forEach(card => {
card.addEventListener('click', (e) => {
const flavor = card.getAttribute('data-flavor') || '';
if(e.target.tagName.toLowerCase() === 'button' || card.contains(e.target)){
flavorInput.value = flavor;
openModal();
}
});
});
// Payment tabs
const paytabs = $$('.paytab');
const paypanels = {
upi: $('#tab-upi'),
card: $('#tab-card'),
wallet: $('#tab-wallet')
};
paytabs.forEach(tab => tab.addEventListener('click', ()=>{
paytabs.forEach(t => {
t.classList.remove('active');
t.classList.remove('bg-emerald-50','border-emerald-200','text-emerald-800');
t.classList.add('bg-white','border-black/10');
});
const key = tab.dataset.tab;
tab.classList.add('active','bg-emerald-50','border-emerald-200','text-emerald-800');
Object.entries(paypanels).forEach(([k, panel]) => {
panel.classList.toggle('hidden', k !== key);
});
}));
// Payment simulation + confetti
const payBtn = $('#payBtn');
const processing = $('#processing');
const successPanel = $('#successPanel');
const ticketIdEl = $('#ticketId');
const summaryIdEl = $('#summaryId');
function disableForm(disabled){
$$('#reserveForm input, #reserveForm select').forEach(inp => inp.disabled = disabled);
paytabs.forEach(t => t.disabled = disabled);
payBtn.disabled = disabled;
}
payBtn.addEventListener('click', (e)=>{
e.preventDefault();
processing.classList.remove('hidden');
disableForm(true);
payBtn.textContent = 'Processing...';
setTimeout(()=>{
processing.classList.add('hidden');
successPanel.classList.remove('hidden');
const ticket = 'MELI-' + generateId();
ticketIdEl.textContent = ticket;
summaryIdEl.textContent = ticket.replace('MELI-','');
launchConfetti();
}, 1600);
});
$('#doneBtn').addEventListener('click', ()=>{
closeModal();
// reset
disableForm(false);
successPanel.classList.add('hidden');
payBtn.textContent = 'Pay ₹50 & Reserve';
});
$('#anotherBtn').addEventListener('click', ()=>{
successPanel.classList.add('hidden');
disableForm(false);
payBtn.textContent = 'Pay ₹50 & Reserve';
});
// Confetti
const confettiCanvas = document.getElementById('confettiCanvas');
const ctx = confettiCanvas.getContext('2d');
function resizeCanvas(){
confettiCanvas.width = window.innerWidth;
confettiCanvas.height = window.innerHeight;
}
resizeCanvas();
window.addEventListener('resize', resizeCanvas);
function launchConfetti(){
const pieces = [];
const colors = ['#16a34a','#22c55e','#f59e0b','#fbbf24','#0ea5e9','#34d399'];
const W = confettiCanvas.width, H = confettiCanvas.height;
for(let i=0;i<120;i++){
pieces.push({
x: Math.random()*W,
y: -20 - Math.random()*H*0.3,
w: 6 + Math.random()*6,
h: 10 + Math.random()*12,
r: Math.random()*Math.PI,
c: colors[Math.floor(Math.random()*colors.length)],
s: 2 + Math.random()*3,
g: 0.04 + Math.random()*0.06,
rot: (Math.random()*.2)+.02
});
}
let t = 0, maxT = 160;
function draw(){
ctx.clearRect(0,0,W,H);
pieces.forEach(p=>{
ctx.save();
ctx.translate(p.x, p.y);
ctx.rotate(p.r);
ctx.fillStyle = p.c;
ctx.fillRect(-p.w/2, -p.h/2, p.w, p.h);
ctx.restore();
p.y += p.s;
p.x += Math.sin(p.y*0.02)*1.2;
p.r += p.rot;
p.s += p.g*0.02;
});
t++;
if(t<maxT){ requestAnimationFrame(draw); }
else { ctx.clearRect(0,0,W,H); }
}
draw();
}
// Subscribe mock
const subForm = $('#subscribeForm');
const subMsg = $('#subscribeMsg');
subForm.addEventListener('submit', (e)=>{ e.preventDefault(); subMsg.classList.remove('hidden'); setTimeout(()=> subMsg.classList.add('hidden'), 4000); e.target.reset(); });
// Footer year
$('#year').textContent = new Date().getFullYear();
// Keyboard accessibility to skip to CTA
document.addEventListener('keydown', (e)=>{
if((e.key === 'r' || e.key === 'R') && e.altKey){
openModal();
}
});
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Design a invitation poster for a workshop whos detail is this "🎓 Peace Journalism Workshop Topic: The Role of Social Media in Peace and Conflict. From viral trends to online outrage — social media can make peace go viral or make conflict louder. Join our Peace Journalism Workshop to explore how stories spread online — and how we can tell better ones.. 🗓 Date: [Insert Date] 🕒 Time: [Insert Time] 📍 Venue: [Insert Venue] Expect real stories, fun discussions, and some fun group activities — not another boring lecture! Organized by: [Your Group Name / Class]." make it pop and minimal. it should be more like a landing page. one with the design simple with a bit social media element on low opacity like top with header banner, and and the date, time and venue in a transparent like boxes, and when expected session came below it 3 color full boxes with fun discussions, group activities and real stories, and at the bottom banner it says register now and when people click it it lead to second
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Peace Journalism Workshop</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
* {
font-family: 'Inter', sans-serif;
}
.social-bg {
background-image:
radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
radial-gradient(circle at 40% 60%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}
.glass-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.gradient-text {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.floating {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
.pulse-slow {
animation: pulse 3s infinite;
}
.social-icon {
opacity: 0.1;
position: absolute;
font-size: 2rem;
color: #6366f1;
}
.register-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
transition: all 0.3s ease;
}
.register-btn:hover {
transform: translateY(-2px);
box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}
.feature-card {
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
}
.registration-form {
display: none;
}
.registration-form.active {
display: block;
}
.main-content.hidden {
display: none;
}
</style>
</head>
<body class="min-h-screen social-bg relative overflow-x-hidden">
<!-- Social Media Icons Background -->
<div class="social-icon" style="top: 10%; left: 5%;"><i class="fab fa-twitter floating"></i></div>
<div class="social-icon" style="top: 20%; right: 10%;"><i class="fab fa-instagram floating" style="animation-delay: -1s;"></i></div>
<div class="social-icon" style="top: 60%; left: 8%;"><i class="fab fa-facebook floating" style="animation-delay: -2s;"></i></div>
<div class="social-icon" style="top: 70%; right: 5%;"><i class="fab fa-youtube floating" style="animation-delay: -3s;"></i></div>
<div class="social-icon" style="top: 40%; left: 15%;"><i class="fab fa-tiktok floating" style="animation-delay: -4s;"></i></div>
<div class="social-icon" style="top: 30%; right: 20%;"><i class="fab fa-linkedin floating" style="animation-delay: -5s;"></i></div>
<!-- Main Content -->
<div class="main-content">
<!-- Header -->
<header class="text-center py-16 px-4">
<div class="max-w-4xl mx-auto">
<div class="mb-6">
<span class="text-6xl">🎓</span>
</div>
<h1 class="text-5xl md:text-7xl font-bold gradient-text mb-6">
Peace Journalism Workshop
</h1>
<h2 class="text-2xl md:text-3xl font-semibold text-gray-700 mb-4">
The Role of Social Media in Peace and Conflict
</h2>
<p class="text-lg md:text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed">
From viral trends to online outrage — social media can make peace go viral or make conflict louder.
Join our workshop to explore how stories spread online and how we can tell better ones.
</p>
</div>
</header>
<!-- Event Details -->
<section class="py-12 px-4">
<div class="max-w-6xl mx-auto grid md:grid-cols-3 gap-6">
<div class="glass-card rounded-2xl p-8 text-center">
<div class="text-4xl mb-4">🗓</div>
<h3 class="text-xl font-semibold text-gray-700 mb-2">Date</h3>
<p class="text-gray-600">[Insert Date]</p>
</div>
<div class="glass-card rounded-2xl p-8 text-center">
<div class="text-4xl mb-4">🕒</div>
<h3 class="text-xl font-semibold text-gray-700 mb-2">Time</h3>
<p class="text-gray-600">[Insert Time]</p>
</div>
<div class="glass-card rounded-2xl p-8 text-center">
<div class="text-4xl mb-4">📍</div>
<h3 class="text-xl font-semibold text-gray-700 mb-2">Venue</h3>
<p class="text-gray-600">[Insert Venue]</p>
</div>
</div>
</section>
<!-- What to Expect -->
<section class="py-16 px-4">
<div class="max-w-6xl mx-auto">
<h2 class="text-4xl font-bold text-center text-gray-800 mb-4">What to Expect</h2>
<p class="text-center text-gray-600 mb-12 text-lg">Not another boring lecture!</p>
<div class="grid md:grid-cols-3 gap-8">
<div class="feature-card bg-gradient-to-br from-blue-500 to-blue-600 rounded-2xl p-8 text-white text-center">
<div class="text-5xl mb-6">💬</div>
<h3 class="text-2xl font-bold mb-4">Fun Discussions</h3>
<p class="text-blue-100">Engage in interactive conversations about social media's impact on peace and conflict</p>
</div>
<div class="feature-card bg-gradient-to-br from-green-500 to-green-600 rounded-2xl p-8 text-white text-center">
<div class="text-5xl mb-6">🎯</div>
<h3 class="text-2xl font-bold mb-4">Group Activities</h3>
<p class="text-green-100">Participate in hands-on exercises and collaborative learning experiences</p>
</div>
<div class="feature-card bg-gradient-to-br from-purple-500 to-purple-600 rounded-2xl p-8 text-white text-center">
<div class="text-5xl mb-6">📖</div>
<h3 class="text-2xl font-bold mb-4">Real Stories</h3>
<p class="text-purple-100">Explore actual case studies and real-world examples of media impact</p>
</div>
</div>
</div>
</section>
<!-- Register Button -->
<section class="py-16 px-4">
<div class="max-w-2xl mx-auto text-center">
<button onclick="showRegistration()" class="register-btn text-white px-12 py-4 rounded-full text-xl font-semibold shadow-lg">
Register Now
</button>
<p class="text-gray-600 mt-6">Organized by: [Your Group Name / Class]</p>
</div>
</section>
</div>
<!-- Registration Form -->
<div class="registration-form min-h-screen flex items-center justify-center px-4 py-16">
<div class="max-w-md w-full">
<div class="glass-card rounded-2xl p-8">
<div class="text-center mb-8">
<h2 class="text-3xl font-bold gradient-text mb-2">Register Now</h2>
<p class="text-gray-600">Join the Peace Journalism Workshop</p>
</div>
<form class="space-y-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Full Name</label>
<input type="text" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Enter your full name">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Email Address</label>
<input type="email" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Enter your email">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Phone Number</label>
<input type="tel" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Enter your phone number">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Organization/Institution</label>
<input type="text" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Enter your organization">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Why are you interested in this workshop?</label>
<textarea class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-purple-500 focus:border-transparent" rows="3" placeholder="Tell us about your interest..."></textarea>
</div>
<button type="submit" class="w-full register-btn text-white py-3 rounded-lg font-semibold">
Complete Registration
</button>
</form>
<div class="text-center mt-6">
<button onclick="showMain()" class="text-purple-600 hover:text-purple-800 font-medium">
← Back to Workshop Details
</button>
</div>
</div>
</div>
</div>
<script>
function showRegistration() {
document.querySelector('.main-content').classList.add('hidden');
document.querySelector('.registration-form').classList.add('active');
}
function showMain() {
document.querySelector('.registration-form').classList.remove('active');
document.querySelector('.main-content').classList.remove('hidden');
}
// Form submission
document.querySelector('form').addEventListener('submit', function(e) {
e.preventDefault();
alert('Thank you for registering! We will contact you soon with more details.');
});
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Build me a minimalistic dashboard for tracking my personal income and expenses...
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Minimal Dashboard — Income & Expenses</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#eef2ff',
100: '#e0e7ff',
200: '#c7d2fe',
300: '#a5b4fc',
400: '#818cf8',
500: '#6366f1',
600: '#4f46e5',
700: '#4338ca',
800: '#3730a3',
900: '#312e81',
},
accent: {
500: '#06b6d4',
600: '#0891b2',
}
},
boxShadow: {
soft: '0 10px 30px rgba(0,0,0,0.08)',
inset: 'inset 0 1px 0 rgba(255,255,255,0.08)'
},
animation: {
'fade-in': 'fadeIn 0.4s ease-out',
'slide-up': 'slideUp 0.4s ease-out',
'pulse-slow': 'pulse 3s ease-in-out infinite'
},
keyframes: {
fadeIn: { from: { opacity: 0 }, to: { opacity: 1 } },
slideUp: { from: { opacity: 0, transform: 'translateY(8px)' }, to: { opacity: 1, transform: 'translateY(0)' } }
}
}
}
}
</script>
<style>
:root {
--bg: #0b1020;
--card: rgba(255,255,255,0.06);
--card-strong: rgba(255,255,255,0.12);
--text: #e6e8f0;
--muted: #a9b0c7;
--border: rgba(255,255,255,0.12);
--success: #22c55e;
--warn: #f59e0b;
--danger: #ef4444;
}
html, body {
background: radial-gradient(1200px 600px at 80% -10%, rgba(99,102,241,0.25), transparent 60%),
radial-gradient(1000px 500px at -10% 10%, rgba(6,182,212,0.25), transparent 60%),
var(--bg);
color: var(--text);
min-height: 100%;
}
.glass {
background: var(--card);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--border);
}
.glass-strong {
background: var(--card-strong);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid var(--border);
}
.btn {
transition: all 0.2s ease;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.input {
background: rgba(255,255,255,0.06);
border: 1px solid var(--border);
color: var(--text);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus {
outline: none;
border-color: rgba(99,102,241,0.6);
box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
}
.tag {
background: rgba(99,102,241,0.15);
border: 1px solid rgba(99,102,241,0.35);
color: #c7d2fe;
}
.scroll-smooth {
scroll-behavior: smooth;
}
.table th {
position: sticky;
top: 0;
background: rgba(11,16,32,0.7);
backdrop-filter: blur(6px);
z-index: 1;
}
.gradient-text {
background: linear-gradient(90deg, #a5b4fc, #06b6d4);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.grid-auto-fit {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1rem;
}
.chip {
border: 1px solid var(--border);
background: rgba(255,255,255,0.05);
}
</style>
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
</head>
<body class="scroll-smooth">
<div class="min-h-screen">
<header class="glass sticky top-0 z-30 border-b border-white/10">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 flex items-center gap-4">
<div class="flex items-center gap-3">
<div class="w-9 h-9 rounded-xl bg-gradient-to-br from-primary-500 to-accent-500 shadow-soft flex items-center justify-center">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none">
<path d="M3 12h18M12 3v18" stroke="white" stroke-width="2" stroke-linecap="round"/>
</svg>
</div>
<div>
<h1 class="text-lg sm:text-xl font-semibold tracking-tight">Minimal Finance</h1>
<p class="text-xs text-gray-400 -mt-0.5">Income & Expenses Dashboard</p>
</div>
</div>
<div class="ml-auto flex items-center gap-2">
<div class="relative">
<input id="searchInput" type="text" placeholder="Search transactions..." class="input rounded-lg py-2 pl-9 pr-3 text-sm w-48 sm:w-64">
<svg class="absolute left-2 top-2.5 text-gray-400" width="18" height="18" viewBox="0 0 24 24" fill="none">
<path d="M21 21l-4.3-4.3M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15z" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
</div>
<button id="exportBtn" class="btn px-3 py-2 rounded-lg bg-white/10 hover:bg-white/15 border border-white/10 text-sm">Export CSV</button>
<button id="addBtn" class="btn px-3 py-2 rounded-lg bg-gradient-to-r from-primary-600 to-accent-600 shadow-soft text-sm">Add Transaction</button>
</div>
</div>
</header>
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-6">
<section class="grid lg:grid-cols-4 gap-4">
<div class="glass rounded-2xl p-4 shadow-soft">
<div class="flex items-center justify-between">
<span class="text-sm text-gray-400">This Month</span>
<span class="chip text-xs px-2 py-1 rounded-full">Overview</span>
</div>
<div class="mt-2 flex items-end gap-2">
<h2 id="totalIncome" class="text-2xl font-semibold gradient-text">—</h2>
<span class="text-xs text-gray-400 mb-1">Income</span>
</div>
<div class="mt-3 flex items-end gap-2">
<h2 id="totalExpense" class="text-2xl font-semibold text-red-400">—</h2>
<span class="text-xs text-gray-400 mb-1">Expenses</span>
</div>
<div class="mt-4">
<div class="h-2 rounded-full bg-white/10 overflow-hidden">
<div id="netProgress" class="h-2 rounded-full bg-gradient-to-r from-primary-500 to-accent-500 transition-all" style="width: 0%"></div>
</div>
<div class="mt-2 flex items-center justify-between text-xs text-gray-400">
<span>Net Flow</span>
<span id="netLabel">—</span>
</div>
</div>
</div>
<div class="glass rounded-2xl p-4 shadow-soft">
<div class="flex items-center justify-between">
<span class="text-sm text-gray-400">Avg Daily</span>
<span class="chip text-xs px-2 py-1 rounded-full">7 days</span>
</div>
<div class="mt-2 text-2xl font-semibold" id="avgDaily">$0</div>
<div class="mt-3 text-xs text-gray-400">Based on last 7 days</div>
</div>
<div class="glass rounded-2xl p-4 shadow-soft">
<div class="flex items-center justify-between">
<span class="text-sm text-gray-400">Top Category</span>
<span class="chip text-xs px-2 py-1 rounded-full">Spending</span>
</div>
<div class="mt-2 text-2xl font-semibold" id="topCategory">—</div>
<div class="mt-3 text-xs text-gray-400" id="topCategoryAmount">—</div>
</div>
<div class="glass rounded-2xl p-4 shadow-soft">
<div class="flex items-center justify-between">
<span class="text-sm text-gray-400">Budget</span>
<span class="chip text-xs px-2 py-1 rounded-full">Monthly</span>
</div>
<div class="mt-2 text-2xl font-semibold" id="budgetStatus">—</div>
<div class="mt-3 text-xs text-gray-400">Set a budget in settings</div>
</div>
</section>
<section class="grid lg:grid-cols-3 gap-6">
<div class="lg:col-span-2 glass rounded-2xl p-4 shadow-soft">
<div class="flex items-center justify-between">
<h3 class="font-semibold">Income vs Expenses</h3>
<div class="flex items-center gap-2">
<select id="chartRange" class="input rounded-lg py-1.5 px-2 text-sm">
<option value="6">Last 6 months</option>
<option value="12" selected>Last 12 months</option>
</select>
<button id="resetChart" class="btn px-3 py-1.5 rounded-lg bg-white/10 hover:bg-white/15 border border-white/10 text-sm">Reset</button>
</div>
</div>
<div class="mt-3">
<div id="chart" class="w-full h-64 sm:h-72"></div>
</div>
</div>
<div class="glass rounded-2xl p-4 shadow-soft">
<div class="flex items-center justify-between">
<h3 class="font-semibold">Category Breakdown</h3>
<button id="clearData" class="btn px-3 py-1.5 rounded-lg bg-white/10 hover:bg-white/15 border border-white/10 text-sm">Clear All</button>
</div>
<div class="mt-3">
<div id="donut" class="w-full h-64"></div>
</div>
<div class="mt-3 grid grid-cols-2 gap-2 text-sm">
<div class="chip rounded-lg p-2">
<div class="text-gray-400 text-xs">Income</div>
<div id="catIncome" class="font-semibold">$0</div>
</div>
<div class="chip rounded-lg p-2">
<div class="text-gray-400 text-xs">Expenses</div>
<div id="catExpense" class="font-semibold text-red-400">$0</div>
</div>
</div>
</div>
</section>
<section class="glass rounded-2xl p-4 shadow-soft">
<div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3">
<h3 class="font-semibold">Transactions</h3>
<div class="flex items-center gap-2">
<select id="filterType" class="input rounded-lg py-1.5 px-2 text-sm">
<option value="all">All Types</option>
<option value="income">Income</option>
<option value="expense">Expense</option>
</select>
<select id="filterCategory" class="input rounded-lg py-1.5 px-2 text-sm">
<option value="all">All Categories</option>
</select>
<input id="fromDate" type="date" class="input rounded-lg py-1.5 px-2 text-sm">
<input id="toDate" type="date" class="input rounded-lg py-1.5 px-2 text-sm">
<button id="applyFilters" class="btn px-3 py-1.5 rounded-lg bg-white/10 hover:bg-white/15 border border-white/10 text-sm">Apply</button>
</div>
</div>
<div class="mt-3 overflow-x-auto">
<table class="table w-full text-sm">
<thead>
<tr class="text-left text-gray-400">
<th class="py-2 pr-3">Date</th>
<th class="py-2 pr-3">Description</th>
<th class="py-2 pr-3">Category</th>
<th class="py-2 pr-3">Type</th>
<th class="py-2 pr-3 text-right">Amount</th>
<th class="py-2 pr-3"></th>
</tr>
</thead>
<tbody id="tableBody"></tbody>
</table>
</div>
<div class="mt-3 flex items-center justify-between text-sm">
<div class="text-gray-400" id="countLabel">—</div>
<div class="flex items-center gap-2">
<button id="prevPage" class="btn px-3 py-1.5 rounded-lg bg-white/10 hover:bg-white/15 border border-white/10 text-sm">Prev</button>
<span id="pageLabel" class="text-gray-400">1 / 1</span>
<button id="nextPage" class="btn px-3 py-1.5 rounded-lg bg-white/10 hover:bg-white/15 border border-white/10 text-sm">Next</button>
</div>
</div>
</section>
</main>
</div>
<!-- Add/Edit Transaction Modal -->
<div id="modal" class="fixed inset-0 hidden items-center justify-center z-40">
<div class="absolute inset-0 bg-black/50"></div>
<div class="relative glass-strong rounded-2xl p-5 w-full max-w-lg shadow-soft animate-slide-up">
<div class="flex items-center justify-between">
<h3 id="modalTitle" class="font-semibold">Add Transaction</h3>
<button id="closeModal" class="btn p-2 rounded-lg hover:bg-white/10">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
<path d="M6 6l12 12M18 6L6 18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
</button>
</div>
<form id="transactionForm" class="mt-3 space-y-3">
<input type="hidden" id="editId">
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div>
<label class="text-sm text-gray-400">Date</label>
<input type="date" id="date" class="input rounded-lg w-full px-3 py-2" required>
</div>
<div>
<label class="text-sm text-gray-400">Type</label>
<select id="type" class="input rounded-lg w-full px-3 py-2" required>
<option value="income">Income</option>
<option value="expense">Expense</option>
</select>
</div>
</div>
<div>
<label class="text-sm text-gray-400">Description</label>
<input type="text" id="description" class="input rounded-lg w-full px-3 py-2" placeholder="e.g., Salary, Coffee" required>
</div>
<div>
<label class="text-sm text-gray-400">Category</label>
<input type="text" id="category" class="input rounded-lg w-full px-3 py-2" placeholder="e.g., Salary, Food, Transport" required>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div>
<label class="text-sm text-gray-400">Amount</label>
<input type="number" id="amount" min="0" step="0.01" class="input rounded-lg w-full px-3 py-2" placeholder="0.00" required>
</div>
<div class="flex items-end">
<label class="text-sm text-gray-400">Color</label>
<input type="color" id="color" class="input rounded-lg w-full h-10 px-2 py-2" value="#6366f1" />
</div>
</div>
<div class="flex items-center justify-end gap-2 pt-2">
<button type="button" id="cancelModal" class="btn px-3 py-2 rounded-lg bg-white/10 hover:bg-white/15 border border-white/10">Cancel</button>
<button type="submit" class="btn px-3 py-2 rounded-lg bg-gradient-to-r from-primary-600 to-accent-600">Save</button>
</div>
</form>
</div>
</div>
<footer class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 text-center text-sm text-gray-500">
Built with simplicity. Your data is stored in your browser.
</footer>
<script>
// State
const state = {
transactions: [],
filters: {
type: 'all',
category: 'all',
from: null,
to: null,
search: ''
},
page: 1,
perPage: 6,
budget: 3000, // default monthly budget
selectedMonth: null // store selected month for chart range
};
// Helpers
const fmt = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', maximumFractionDigits: 2 });
const parseDate = (str) => new Date(str + 'T00:00:00');
const toYMD = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate()).toISOString().slice(0,10);
const clamp = (n, min, max) => Math.max(min, Math.min(max, n));
function save() {
localStorage.setItem('minifinance-data', JSON.stringify({
transactions: state.transactions,
budget: state.budget
}));
}
function load() {
const raw = localStorage.getItem('minifinance-data');
if (raw) {
try {
const data = JSON.parse(raw);
state.transactions = data.transactions || [];
state.budget = data.budget ?? state.budget;
} catch(e) {
console.warn('Failed to load data', e);
}
} else {
// Seed with sample data
const today = new Date();
const samples = [
{ date: toYMD(new Date(today.getFullYear(), today.getMonth(), today.getDate())), description: 'Salary', category: 'Salary', type: 'income', amount: 3200, color:'#22c55e' },
{ date: toYMD(new Date(today.getFullYear(), today.getMonth(), today.getDate()-1)), description: 'Coffee', category: 'Food', type: 'expense', amount: 4.50, color:'#f59e0b' },
{ date: toYMD(new Date(today.getFullYear(), today.getMonth(), today.getDate()-2)), description: 'Groceries', category: 'Food', type: 'expense', amount: 85.30, color:'#ef4444' },
{ date: toYMD(new Date(today.getFullYear(), today.getMonth(), today.getDate()-3)), description: 'Transport', category: 'Transport', type: 'expense', amount: 32.00, color:'#6366f1' },
{ date: toYMD(new Date(today.getFullYear(), today.getMonth(), today.getDate()-4)), description: 'Freelance', category: 'Income', type: 'income', amount: 650.00, color:'#22c55e' },
{ date: toYMD(new Date(today.getFullYear(), today.getMonth(), today.getDate()-5)), description: 'Utilities', category: 'Utilities', type: 'expense', amount: 120.00, color:'#06b6d4' },
{ date: toYMD(new Date(today.getFullYear(), today.getMonth(), today.getDate()-6)), description: 'Subscription', category: 'Subscription', type: 'expense', amount: 12.00, color:'#8b5cf6' },
{ date: toYMD(new Date(today.getFullYear(), today.getMonth(), today.getDate()-7)), description: 'Investment', category: 'Income', type: 'income', amount: 250.00, color:'#22c55e' },
];
state.transactions = samples;
save();
}
}
// Rendering
function updateSummary() {
const now = new Date();
const monthStart = new Date(now.getFullYear(), now.getMonth(), 1);
const monthEnd = new Date(now.getFullYear(), now.getMonth() + 1, 0);
const inMonth = state.transactions.filter(t => {
const d = parseDate(t.date);
return d >= monthStart && d <= monthEnd;
});
const income = inMonth.filter(t => t.type === 'income').reduce((a,b)=>a+b.amount,0);
const expense = inMonth.filter(t => t.type === 'expense').reduce((a,b)=>a+b.amount,0);
const net = income - expense;
document.getElementById('totalIncome').textContent = fmt.format(income);
document.getElementById('totalExpense').textContent = fmt.format(expense);
const pct = income + expense > 0 ? clamp((Math.abs(net)/(income+expense))*100, 0, 100) : 0;
document.getElementById('netProgress').style.width = pct + '%';
document.getElementById('netLabel').textContent = (net >= 0 ? '+' : '') + fmt.format(net);
// Avg daily (last 7 days)
const days = [...Array(7)].map((_,i)=> {
const d = new Date(); d.setDate(d.getDate() - (6-i));
return d;
});
const last7 = state.transactions.filter(t => days.some(d => toYMD(d) === toYMD(parseDate(t.date))));
const avg = last7.length ? last7.reduce((a,b)=>a+b.amount,0)/last7.length : 0;
document.getElementById('avgDaily').textContent = fmt.format(avg);
// Top category
const byCat = {};
inMonth.forEach(t => {
byCat[t.category] = byCat[t.category] || { income:0, expense:0 };
if (t.type==='income') byCat[t.category].income += t.amount;
else byCat[t.category].expense += t.amount;
});
const top = Object.entries(byCat).map(([cat,v]) => ({cat, expense:v.expense, income:v.income})).sort((a,b)=>b.expense-a.expense)[0];
document.getElementById('topCategory').textContent = top ? top.cat : '—';
document.getElementById('topCategoryAmount').textContent = top ? fmt.format(top.expense) : '—';
// Budget status
const statusEl = document.getElementById('budgetStatus');
const remaining = Math.max(0, state.budget - expense);
const pctBudget = clamp((remaining/state.budget)*100, 0, 100);
statusEl.textContent = fmt.format(remaining) + ' left';
statusEl.className = 'mt-2 text-2xl font-semibold ' + (remaining >= 0 ? 'text-green-400' : 'text-red-400');
const budgetBar = statusEl.parentElement.querySelector('.h-2');
if (budgetBar) budgetBar.style.width = pctBudget + '%';
}
function updateFiltersUI() {
const catSet = new Set(state.transactions.map(t=>t.category));
const select = document.getElementById('filterCategory');
const current = select.value;
select.innerHTML = '<option value="all">All Categories</option>' + [...catSet].sort().map(c=>`<option value="${c}">${c}</option>`).join('');
if ([...catSet].includes(current)) select.value = current;
}
function applyFilters(data) {
return data.filter(t => {
if (state.filters.type !== 'all' && t.type !== state.filters.type) return false;
if (state.filters.category !== 'all' && t.category !== state.filters.category) return false;
if (state.filters.from && parseDate(t.date) < state.filters.from) return false;
if (state.filters.to && parseDate(t.date) > state.filters.to) return false;
if (state.filters.search) {
const s = state.filters.search.toLowerCase();
const hay = [t.description, t.category, t.type].join(' ').toLowerCase();
if (!hay.includes(s)) return false;
}
return true;
});
}
function renderTable() {
const tbody = document.getElementById('tableBody');
const filtered = applyFilters(state.transactions).sort((a,b)=>parseDate(b.date)-parseDate(a.date));
const start = (state.page-1)*state.perPage;
const pageItems = filtered.slice(start, start+state.perPage);
tbody.innerHTML = pageItems.map(t => `
<tr class="border-t border-white/10 hover:bg-white/5 transition">
<td class="py-2 pr-3">${new Date(t.date).toLocaleDateString()}</td>
<td class="py-2 pr-3">
<div class="flex items-center gap-2">
<span class="w-2.5 h-2.5 rounded-full" style="background:${t.color}"></span>
<span class="font-medium">${t.description}</span>
</div>
</td>
<td class="py-2 pr-3">${t.category}</td>
<td class="py-2 pr-3">
<span class="px-2 py-1 rounded-full text-xs ${t.type==='income' ? 'bg-green-500/15 text-green-300 border border-green-500/30' : 'bg-red-500/15 text-red-300 border border-red-500/30'}">
${t.type}
</span>
</td>
<td class="py-2 pr-3 text-right ${t.type==='income'?'text-green-400':'text-red-400'}">${fmt.format(t.amount)}</td>
<td class="py-2 pr-3 text-right">
<button class="btn px-2 py-1 rounded-lg bg-white/10 hover:bg-white/15 border border-white/10 text-xs" data-edit="${t.id}">Edit</button>
</td>
</tr>
`).join('');
document.getElementById('countLabel').textContent = `${filtered.length} transactions`;
const totalPages = Math.max(1, Math.ceil(filtered.length / state.perPage));
document.getElementById('pageLabel').textContent = `${state.page} / ${totalPages}`;
document.getElementById('prevPage').disabled = state.page <= 1;
document.getElementById('nextPage').disabled = state.page >= totalPages;
// Edit handlers
tbody.querySelectorAll('[data-edit]').forEach(btn => {
btn.addEventListener('click', () => {
const id = btn.getAttribute('data-edit');
const tx = state.transactions.find(x=>x.id===id);
openModal(tx);
});
});
}
function updateCharts() {
// Income vs Expenses chart (by month)
const range = parseInt(document.getElementById('chartRange').value, 10);
const months = [];
const now = new Date();
for (let i = range - 1; i >= 0; i--) {
const d = new Date(now.getFullYear(), now.getMonth() - i, 1);
months.push({ key: toYMD(d), label: d.toLocaleDateString(undefined, { month:'short', year: '2-digit' }), date: d });
}
const incomeByMonth = months.map(m => {
const sum = state.transactions.filter(t => toYMD(parseDate(t.date)) === m.key && t.type==='income').reduce((a,b)=>a+b.amount,0);
return sum;
});
const expenseByMonth = months.map(m => {
const sum = state.transactions.filter(t => toYMD(parseDate(t.date)) === m.key && t.type==='expense').reduce((a,b)=>a+b.amount,0);
return sum;
});
const data = months.map((m, i) => ({
month: m.label,
income: incomeByMonth[i],
expense: expenseByMonth[i]
}));
drawLineChart('#chart', data, { incomeColor: '#22c55e', expenseColor: '#ef4444' });
// Donut chart category breakdown (expenses and income)
const byCat = {};
state.transactions.forEach(t => {
byCat[t.category] = byCat[t.category] || { income:0, expense:0 };
if (t.type==='income') byCat[t.category].income += t.amount;
else byCat[t.category].expense += t.amount;
});
const cats = Object.entries(byCat).map(([cat, v]) => ({ cat, ...v }));
const donutData = cats.map(c => ({ label: c.cat, value: c.expense, color: '#6366f1' }));
const donutDataIncome = cats.map(c => ({ label: c.cat, value: c.income, color: '#22c55e' }));
drawDonut('#donut', donutData);
drawDonut('#donut', donutDataIncome, { overlay: true });
// Category totals
const totalIncome = cats.reduce((a,b)=>a+b.income,0);
const totalExpense = cats.reduce((a,b)=>a+b.expense,0);
document.getElementById('catIncome').textContent = fmt.format(totalIncome);
document.getElementById('catExpense').textContent = fmt.format(totalExpense);
}
// D3 Charts
function drawLineChart(sel, data, opts = {}) {
const container = document.querySelector(sel);
container.innerHTML = '';
const width = container.clientWidth;
const height = container.clientHeight;
const margin = { top: 10, right: 20, bottom: 30, left: 40 };
const svg = d3.select(container).append('svg')
.attr('width', width)
.attr('height', height);
const x = d3.scalePoint()
.domain(data.map(d=>d.month))
.range([margin.left, width - margin.right]);
const maxY = d3.max(data, d => Math.max(d.income, d.expense)) || 1;
const y = d3.scaleLinear()
.domain([0, maxY * 1.2])
.range([height - margin.bottom, margin.top]);
// Axes
const xAxis = g => g
.attr('transform', `translate(0,${height - margin.bottom})`)
.call(d3.axisBottom(x).tickSizeOuter(0))
.selectAll('text')
.attr('fill', '#9CA3AF')
.attr('font-size', 10);
const yAxis = g => g
.attr('transform', `translate(${margin.left},0)`)
.call(d3.axisLeft(y).ticks(5).tickFormat(d => '$' + d3.format(',')(d)))
.call(g => g.selectAll('.domain, .tick line').attr('stroke', 'rgba(255,255,255,0.15)'))
.call(g => g.selectAll('text').attr('fill', '#9CA3AF').attr('font-size', 10));
svg.append('g').call(xAxis);
svg.append('g').call(yAxis);
// Grid
svg.append('g')
.attr('stroke', 'rgba(255,255,255,0.08)')
.selectAll('line')
.data(y.ticks(5))
.join('line')
.attr('x1', margin.left)
.attr('x2', width - margin.right)
.attr('y1', d => y(d))
.attr('y2', d => y(d));
const line = d3.line()
.x(d => x(d.month))
.y(d => y(d.value))
.curve(d3.curveMonotoneX);
// Income area
svg.append('path')
.datum(data.map(d => ({ month: d.month, value: d.income })))
.attr('fill', 'url(#gradIncome)')
.attr('d', d3.area().x(d => x(d.month)).y0(y(0)).y1(d => y(d.value)).curve(d3.curveMonotoneX));
// Expense area
svg.append('path')
.datum(data.map(d => ({ month: d.month, value: d.expense })))
.attr('fill', 'url(#gradExpense)')
.attr('d', d3.area().x(d => x(d.month)).y0(y(0)).y1(d => y(d.value)).curve(d3.curveMonotoneX));
// Gradients
const defs = svg.append('defs');
const gradInc = defs.append('linearGradient').attr('id', 'gradIncome').attr('x1',0).attr('x2',0).attr('y1',0).attr('y2',1);
gradInc.append('stop').attr('offset','0%').attr('stop-color', opts.incomeColor || '#22c55e').attr('stop-opacity',0.35);
gradInc.append('stop').attr('offset','100%').attr('stop-color', opts.incomeColor || '#22c55e').attr('stop-opacity',0.05);
const gradExp = defs.append('linearGradient').attr('id', 'gradExpense').attr('x1',0).attr('x2',0).attr('y1',0).attr('y2',1);
gradExp.append('stop').attr('offset','0%').attr('stop-color', opts.expenseColor || '#ef4444').attr('stop-opacity',0.35);
gradExp.append('stop').attr('offset','100%').attr('stop-color', opts.expenseColor || '#ef4444').attr('stop-opacity',0.05);
// Lines
svg.append('path')
.datum(data.map(d => ({ month: d.month, value: d.income })))
.attr('fill', 'none')
.attr('stroke', opts.incomeColor || '#22c55e')
.attr('stroke-width', 2)
.attr('d', line);
svg.append('path')
.datum(data.map(d => ({ month: d.month, value: d.expense })))
.attr('fill', 'none')
.attr('stroke', opts.expenseColor || '#ef4444')
.attr('stroke-width', 2)
.attr('d', line);
// Points and tooltip
const tooltip = d3.select(container).append('div')
.style('position','absolute')
.style('pointer-events','none')
.style('background','rgba(0,0,0,0.6)')
.style('color','#fff')
.style('padding','6px 8px')
.style('font-size','12px')
.style('border','1px solid rgba(255,255,255,0.15)')
.style('border-radius','8px')
.style('transform','translateY(-8px)')
.style('opacity',0);
const points = svg.selectAll('.pt')
.data(data)
.join('g')
.attr('class','pt')
.attr('transform', d => `translate(${x(d.month)},${y(d.income)})`);
points.append('circle').attr('r',4).attr('fill','#22c55e').attr('stroke','white').attr('stroke-width',1);
points.append('circle').attr('r',4).attr('fill','#ef4444').attr('stroke','white').attr('stroke-width',1)
.attr('cy', d => y(d.expense)).attr('transform', `translate(0,${y(d.expense)-y(d.income)})`);
const bisect = d3.bisector(d => d.month).left;
svg.append('rect')
.attr('fill','transparent')
.attr('x', margin.left)
.attr('y', margin.top)
.attr('width', width - margin.left - margin.right)
.attr('height', height - margin.top - margin.bottom)
.on('mousemove', function(event) {
const [mx] = d3.pointer(event, this);
const idx = bisect(x.domain(), x.invert ? x.invert(mx) : mx);
const i = clamp(idx, 0, data.length-1);
const d = data[i];
tooltip.style('opacity',1)
.style('left', (x(d.month) + 10) + 'px')
.style('top', (y((d.income+d.expense)/2) - 10) + 'px')
.html(`<div style="font-weight:600">${d.month}</div>
<div><span style="color:#22c55e">Income:</span> ${fmt.format(d.income)}</div>
<div><span style="color:#ef4444">Expense:</span> ${fmt.format(d.expense)}</div>`);
})
.on('mouseleave', () => tooltip.style('opacity',0));
}
function drawDonut(sel, data, opts = {}) {
const container = document.querySelector(sel);
container.innerHTML = '';
const width = container.clientWidth;
const height = container.clientHeight;
const radius = Math.min(width, height) / 2 - 10;
const svg = d3.select(container).append('svg')
.attr('width', width)
.attr('height', height)
.append('g')
.attr('transform', `translate(${width/2},${height/2})`);
const color = d3.scaleOrdinal()
.domain(data.map(d=>d.label))
.range(data.map(d=>d.color));
const pie = d3.pie().value(d => d.value);
const arc = d3.arc().innerRadius(radius * 0.6).outerRadius(radius);
const arcs = svg.selectAll('path')
.data(pie(data))
.join('path')
.attr('d', arc)
.attr('fill', d => d.data.color || color(d.data.label))
.attr('stroke', 'rgba(0,0,0,0.2)')
.attr('stroke-width', 1)
.style('filter', 'drop-shadow(0 2px 6px rgba(0,0,0,0.2))');
// Center label
const total = data.reduce((a,b)=>a+b.value,0);
svg.append('text')
.attr('text-anchor','middle')
.attr('dy', '-0.2em')
.attr('fill','#e5e7eb')
.style('font-weight','600')
.text(total ? fmt.format(total) : '—');
svg.append('text')
.attr('text-anchor','middle')
.attr('dy', '1.2em')
.attr('fill','#9CA3AF')
.style('font-size','12px')
.text(opts.overlay ? 'Total' : 'Expenses');
// Overlay for income
if (opts.overlay) {
const pie2 = d3.pie().value(d => d.value);
const arc2 = d3.arc().innerRadius(radius * 0.6).outerRadius(radius * 0.95);
svg.selectAll('path.overlay')
.data(pie2(data))
.join('path')
.attr('class','overlay')
.attr('d', arc2)
.attr('fill', d => d.data.color || color(d.data.label))
.attr('opacity', 0.5);
}
}
// Modal
function openModal(tx = null) {
const modal = document.getElementById('modal');
modal.classList.remove('hidden');
modal.classList.add('flex');
document.getElementById('modalTitle').textContent = tx ? 'Edit Transaction' : 'Add Transaction';
document.getElementById('editId').value = tx ? tx.id : '';
document.getElementById('date').value = tx ? toYMD(tx.date) : toYMD(new Date());
document.getElementById('type').value = tx ? tx.type : 'income';
document.getElementById('description').value = tx ? tx.description : '';
document.getElementById('category').value = tx ? tx.category : '';
document.getElementById('amount').value = tx ? tx.amount : '';
document.getElementById('color').value = tx ? tx.color : '#6366f1';
}
function closeModal() {
const modal = document.getElementById('modal');
modal.classList.add('hidden');
modal.classList.remove('flex');
document.getElementById('transactionForm').reset();
}
// CSV Export
function exportCSV() {
const headers = ['Date','Description','Category','Type','Amount','Color'];
const rows = state.transactions.map(t => [
toYMD(parseDate(t.date)),
t.description,
t.category,
t.type,
t.amount,
t.color
]);
const csv = [headers, ...rows].map(r => r.map(v => `"${String(v).replace(/"/g,'""')}"`).join(',')).join('\n');
const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'transactions.csv';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
}
// Event Listeners
function bindEvents() {
document.getElementById('addBtn').addEventListener('click', () => openModal());
document.getElementById('closeModal').addEventListener('click', closeModal);
document.getElementById('cancelModal').addEventListener('click', closeModal);
document.getElementById('transactionForm').addEventListener('submit', (e) => {
e.preventDefault();
const id = document.getElementById('editId').value || crypto.randomUUID();
const tx = {
id,
date: document.getElementById('date').value,
type: document.getElementById('type').value,
description: document.getElementById('description').value.trim(),
category: document.getElementById('category').value.trim(),
amount: parseFloat(document.getElementById('amount').value),
color: document.getElementById('color').value
};
const idx = state.transactions.findIndex(t=>t.id===id);
if (idx >= 0) state.transactions[idx] = tx;
else state.transactions.push(tx);
save();
updateFiltersUI();
updateSummary();
updateCharts();
renderTable();
closeModal();
});
document.getElementById('searchInput').addEventListener('input', (e) => {
state.filters.search = e.target.value;
state.page = 1;
renderTable();
});
document.getElementById('filterType').addEventListener('change', (e) => {
state.filters.type = e.target.value;
state.page = 1;
renderTable();
});
document.getElementById('filterCategory').addEventListener('change', (e) => {
state.filters.category = e.target.value;
state.page = 1;
renderTable();
});
document.getElementById('fromDate').addEventListener('change', (e) => state.filters.from = e.target.value ? parseDate(e.target.value) : null);
document.getElementById('toDate').addEventListener('change', (e) => state.filters.to = e.target.value ? parseDate(e.target.value) : null);
document.getElementById('applyFilters').addEventListener('click', () => {
state.page = 1;
renderTable();
});
document.getElementById('prevPage').addEventListener('click', () => {
if (state.page > 1) { state.page--; renderTable(); }
});
document.getElementById('nextPage').addEventListener('click', () => {
state.page++; renderTable();
});
document.getElementById('chartRange').addEventListener('change', updateCharts);
document.getElementById('resetChart').addEventListener('click', () => {
document.getElementById('chartRange').value = '12';
updateCharts();
});
document.getElementById('clearData').addEventListener('click', () => {
if (confirm('Clear all transactions? This cannot be undone.')) {
state.transactions = [];
save();
updateFiltersUI();
updateSummary();
updateCharts();
renderTable();
}
});
document.getElementById('exportBtn').addEventListener('click', exportCSV);
window.addEventListener('resize', () => {
updateCharts();
});
}
// Initialization
load();
document.addEventListener('DOMContentLoaded', () => {
updateFiltersUI();
updateSummary();
updateCharts();
renderTable();
bindEvents();
});
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
AARNA Herbal Hair Oil — Premium Ad Poster Prompt Premium advertisement poster for Aarna Herbal Hair Oil. Replace beige background with an elegant, professional gradient background — soft golden and dark green tones, creating a luxurious Ayurvedic look. Center a transparent 100ml bottle with black flip-top cap, filled with dark green oil. Surround the bottle with Ayurvedic ingredients — Amla, Bhringraj, Hibiscus, and Coconut — arranged naturally around the base. Add elegant text: Main Brand Title (large & bold): “AARNA HERBAL HAIR OIL” Headline: “Reduce Hair Fall, Naturally.” Tagline: “Ancient Roots. Modern Care.” Call to Action Button: “SHOP NOW | 100% Ayurvedic | COD Available” Use deep green (#2E5339) and warm gold (#D4A017) colors for a premium finish. Lighting: soft, golden glow with clean highlights for realistic reflection. Typography: Playfair Display (serif) for heading and Poppins (sans-serif) for tagline. Style: modern luxury Ayurvedic, trust-building, high-end brand aestheti
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AARNA Herbal Hair Oil - Reduce Hair Fall Naturally</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
overflow-x: hidden;
background: linear-gradient(135deg, #D4A017 0%, #2E5339 50%, #1a3020 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.3) 0%, transparent 50%),
radial-gradient(circle at 80% 70%, rgba(46, 83, 57, 0.4) 0%, transparent 50%);
pointer-events: none;
}
.container {
position: relative;
width: 100%;
max-width: 1400px;
padding: 40px 20px;
z-index: 1;
}
.poster {
background: rgba(255, 255, 255, 0.95);
border-radius: 30px;
padding: 60px 40px;
box-shadow:
0 30px 80px rgba(0, 0, 0, 0.3),
0 0 0 1px rgba(212, 160, 23, 0.2);
position: relative;
overflow: hidden;
}
.poster::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
pointer-events: none;
}
.poster::after {
content: '';
position: absolute;
bottom: -50%;
left: -50%;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(46, 83, 57, 0.08) 0%, transparent 70%);
pointer-events: none;
}
.content {
position: relative;
z-index: 2;
}
.brand-title {
font-family: 'Playfair Display', serif;
font-size: clamp(2.5rem, 5vw, 4.5rem);
font-weight: 900;
text-align: center;
background: linear-gradient(135deg, #2E5339 0%, #1a3020 50%, #D4A017 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 10px;
letter-spacing: 3px;
text-transform: uppercase;
animation: fadeInDown 1s ease-out;
}
.subtitle {
text-align: center;
color: #D4A017;
font-size: clamp(0.9rem, 2vw, 1.1rem);
font-weight: 500;
letter-spacing: 4px;
margin-bottom: 40px;
animation: fadeInDown 1s ease-out 0.2s both;
}
.main-content {
display: grid;
grid-template-columns: 1fr 1.2fr 1fr;
gap: 40px;
align-items: center;
margin-bottom: 50px;
}
.ingredients-left, .ingredients-right {
display: flex;
flex-direction: column;
gap: 30px;
}
.ingredient {
display: flex;
align-items: center;
gap: 15px;
padding: 20px;
background: linear-gradient(135deg, rgba(46, 83, 57, 0.05) 0%, rgba(212, 160, 23, 0.05) 100%);
border-radius: 15px;
border: 2px solid rgba(212, 160, 23, 0.2);
transition: all 0.3s ease;
animation: fadeInLeft 0.8s ease-out both;
}
.ingredient:hover {
transform: translateX(10px) scale(1.05);
box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
border-color: #D4A017;
}
.ingredients-right .ingredient {
animation: fadeInRight 0.8s ease-out both;
}
.ingredients-right .ingredient:hover {
transform: translateX(-10px) scale(1.05);
}
.ingredient:nth-child(2) {
animation-delay: 0.2s;
}
.ingredient-icon {
width: 60px;
height: 60px;
background: linear-gradient(135deg, #2E5339, #D4A017);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
flex-shrink: 0;
box-shadow: 0 5px 15px rgba(46, 83, 57, 0.3);
}
.ingredient-info h3 {
font-family: 'Playfair Display', serif;
color: #2E5339;
font-size: 1.3rem;
margin-bottom: 5px;
}
.ingredient-info p {
color: #666;
font-size: 0.9rem;
line-height: 1.4;
}
.bottle-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
animation: fadeInUp 1s ease-out 0.4s both;
}
.bottle-glow {
position: absolute;
width: 300px;
height: 300px;
background: radial-gradient(circle, rgba(212, 160, 23, 0.3) 0%, transparent 70%);
border-radius: 50%;
animation: pulse 3s ease-in-out infinite;
z-index: 0;
}
.bottle {
position: relative;
width: 180px;
height: 400px;
z-index: 1;
filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
animation: float 4s ease-in-out infinite;
}
.bottle-body {
width: 100%;
height: 85%;
background: linear-gradient(135deg,
rgba(255, 255, 255, 0.9) 0%,
rgba(255, 255, 255, 0.6) 20%,
rgba(46, 83, 57, 0.3) 40%,
rgba(26, 48, 32, 0.8) 70%,
rgba(46, 83, 57, 0.9) 100%
);
border-radius: 10px 10px 20px 20px;
position: relative;
overflow: hidden;
box-shadow:
inset -10px 0 30px rgba(255, 255, 255, 0.5),
inset 10px 0 30px rgba(0, 0, 0, 0.2);
}
.bottle-shine {
position: absolute;
left: 20px;
top: 30px;
width: 30px;
height: 200px;
background: linear-gradient(180deg,
rgba(255, 255, 255, 0.9) 0%,
rgba(255, 255, 255, 0.6) 50%,
transparent 100%
);
border-radius: 50px;
transform: rotate(-10deg);
}
.bottle-cap {
width: 60%;
height: 50px;
background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
margin: 0 auto;
border-radius: 5px 5px 0 0;
position: relative;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.bottle-cap::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
height: 3px;
background: #555;
border-radius: 2px;
}
.bottle-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 85%;
background: rgba(255, 255, 255, 0.95);
padding: 15px;
border-radius: 10px;
text-align: center;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.bottle-label h4 {
font-family: 'Playfair Display', serif;
color: #2E5339;
font-size: 1.1rem;
margin-bottom: 5px;
}
.bottle-label p {
color: #D4A017;
font-size: 0.75rem;
font-weight: 600;
}
.headline {
font-family: 'Playfair Display', serif;
font-size: clamp(1.8rem, 3vw, 2.8rem);
color: #2E5339;
text-align: center;
margin-bottom: 15px;
font-weight: 700;
line-height: 1.3;
animation: fadeIn 1s ease-out 0.6s both;
}
.tagline {
font-size: clamp(1rem, 2vw, 1.4rem);
color: #666;
text-align: center;
margin-bottom: 40px;
font-weight: 400;
font-style: italic;
animation: fadeIn 1s ease-out 0.8s both;
}
.cta-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
animation: fadeInUp 1s ease-out 1s both;
}
.cta-button {
background: linear-gradient(135deg, #2E5339 0%, #1a3020 100%);
color: white;
padding: 20px 60px;
border-radius: 50px;
font-size: 1.2rem;
font-weight: 600;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
box-shadow: 0 10px 30px rgba(46, 83, 57, 0.4);
border: 2px solid #D4A017;
text-transform: uppercase;
letter-spacing: 1px;
}
.cta-button:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(46, 83, 57, 0.6);
background: linear-gradient(135deg, #1a3020 0%, #2E5339 100%);
}
.features {
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
}
.feature-badge {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 25px;
background: linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(46, 83, 57, 0.1));
border-radius: 25px;
border: 2px solid rgba(212, 160, 23, 0.3);
font-size: 0.95rem;
color: #2E5339;
font-weight: 600;
}
.feature-badge::before {
content: '✓';
background: #D4A017;
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
opacity: 0.5;
}
50% {
transform: scale(1.1);
opacity: 0.8;
}
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-15px);
}
}
@media (max-width: 1024px) {
.main-content {
grid-template-columns: 1fr;
gap: 50px;
}
.ingredients-left, .ingredients-right {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.ingredient {
flex: 0 1 calc(50% - 15px);
}
}
@media (max-width: 768px) {
.poster {
padding: 40px 20px;
}
.ingredient {
flex: 0 1 100%;
}
.bottle {
width: 140px;
height: 320px;
}
.cta-button {
padding: 18px 40px;
font-size: 1rem;
}
.features {
gap: 15px;
}
.feature-badge {
font-size: 0.85rem;
padding: 10px 20px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="poster">
<div class="content">
<h1 class="brand-title">AARNA</h1>
<p class="subtitle">HERBAL HAIR OIL</p>
<div class="main-content">
<div class="ingredients-left">
<div class="ingredient">
<div class="ingredient-icon">🍇</div>
<div class="ingredient-info">
<h3>Amla</h3>
<p>Rich in Vitamin C, strengthens hair roots</p>
</div>
</div>
<div class="ingredient">
<div class="ingredient-icon">🌿</div>
<div class="ingredient-info">
<h3>Bhringraj</h3>
<p>The king of herbs for hair growth</p>
</div>
</div>
</div>
<div class="bottle-container">
<div class="bottle-glow"></div>
<div class="bottle">
<div class="bottle-cap"></div>
<div class="bottle-body">
<div class="bottle-shine"></div>
<div class="bottle-label">
<h4>AARNA</h4>
<p>100ml</p>
</div>
</div>
</div>
</div>
<div class="ingredients-right">
<div class="ingredient">
<div class="ingredient-icon">🌺</div>
<div class="ingredient-info">
<h3>Hibiscus</h3>
<p>Prevents premature greying</p>
</div>
</div>
<div class="ingredient">
<div class="ingredient-icon">🥥</div>
<div class="ingredient-info">
<h3>Coconut</h3>
<p>Deep nourishment and shine</p>
</div>
</div>
</div>
</div>
<h2 class="headline">Reduce Hair Fall, Naturally.</h2>
<p class="tagline">Ancient Roots. Modern Care.</p>
<div class="cta-section">
<a href="#" class="cta-button">SHOP NOW</a>
<div class="features">
<div class="feature-badge">100% Ayurvedic</div>
<div class="feature-badge">COD Available</div>
<div class="feature-badge">Chemical Free</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Data breach landing page. tema chiaro, colore di accento principale 1a1f50. stile futuristico.
|
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DataShield - Protezione Data Breach</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
* {
font-family: 'Inter', sans-serif;
}
:root {
--accent: #1a1f50;
--accent-light: rgba(26, 31, 80, 0.1);
--accent-glow: rgba(26, 31, 80, 0.3);
}
body {
background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
overflow-x: hidden;
}
.glow-effect {
box-shadow: 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow);
animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
0%, 100% { box-shadow: 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow); }
50% { box-shadow: 0 0 60px var(--accent-glow), 0 0 120px var(--accent-glow); }
}
.glass-card {
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
border: 1px solid rgba(26, 31, 80, 0.1);
box-shadow: 0 8px 32px rgba(26, 31, 80, 0.08);
}
.floating {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
.grid-pattern {
background-image:
linear-gradient(rgba(26, 31, 80, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(26, 31, 80, 0.03) 1px, transparent 1px);
background-size: 50px 50px;
}
.stat-number {
background: linear-gradient(135deg, var(--accent) 0%, #4a5fc1 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.btn-primary {
background: var(--accent);
color: white;
padding: 16px 32px;
border-radius: 12px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(26, 31, 80, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(26, 31, 80, 0.4);
}
.feature-icon {
background: linear-gradient(135deg, var(--accent) 0%, #4a5fc1 100%);
width: 64px;
height: 64px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 28px;
margin-bottom: 20px;
box-shadow: 0 4px 20px var(--accent-glow);
}
.alert-badge {
background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
color: white;
padding: 8px 16px;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
display: inline-block;
animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.scan-line {
position: relative;
overflow: hidden;
}
.scan-line::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(26, 31, 80, 0.3), transparent);
animation: scan 3s linear infinite;
}
@keyframes scan {
0% { left: -100%; }
100% { left: 100%; }
}
.hexagon {
position: absolute;
opacity: 0.05;
animation: rotate-hex 20s linear infinite;
}
@keyframes rotate-hex {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
</style>
</head>
<body class="grid-pattern">
<!-- Decorative Elements -->
<svg class="hexagon" style="top: 10%; right: 5%; width: 200px;" viewBox="0 0 100 100">
<polygon points="50,1 95,25 95,75 50,99 5,75 5,25" fill="none" stroke="#1a1f50" stroke-width="0.5"/>
</svg>
<svg class="hexagon" style="bottom: 15%; left: 8%; width: 150px;" viewBox="0 0 100 100">
<polygon points="50,1 95,25 95,75 50,99 5,75 5,25" fill="none" stroke="#1a1f50" stroke-width="0.5"/>
</svg>
<!-- Navigation -->
<nav class="glass-card fixed w-full top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-20">
<div class="flex items-center space-x-2">
<div style="width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 20px;">D</div>
<span style="color: var(--accent); font-weight: 700; font-size: 24px;">DataShield</span>
</div>
<div class="hidden md:flex space-x-8" style="color: var(--accent); font-weight: 500;">
<a href="#features" class="hover:opacity-70 transition">Funzionalità</a>
<a href="#stats" class="hover:opacity-70 transition">Statistiche</a>
<a href="#protection" class="hover:opacity-70 transition">Protezione</a>
<a href="#contact" class="hover:opacity-70 transition">Contatti</a>
</div>
<button class="btn-primary">Inizia Ora</button>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="pt-40 pb-20 px-4 sm:px-6 lg:px-8">
<div class="max-w-7xl mx-auto">
<div class="text-center mb-8">
<span class="alert-badge mb-4">⚠️ ALLERTA SICUREZZA</span>
</div>
<div class="text-center max-w-4xl mx-auto">
<h1 style="color: var(--accent); font-size: clamp(40px, 8vw, 80px); font-weight: 800; line-height: 1.1; margin-bottom: 24px;">
Proteggi i Tuoi Dati<br/>da Violazioni
</h1>
<p style="color: #64748b; font-size: clamp(18px, 3vw, 24px); font-weight: 400; margin-bottom: 40px;">
Monitoraggio in tempo reale delle violazioni di dati. Protezione avanzata per la tua azienda e i tuoi clienti.
</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center mb-16">
<button class="btn-primary text-lg">Scansione Gratuita</button>
<button style="background: white; color: var(--accent); padding: 16px 32px; border-radius: 12px; font-weight: 600; border: 2px solid var(--accent); transition: all 0.3s ease;">
Scopri di Più
</button>
</div>
<!-- Hero Visual -->
<div class="relative floating">
<div class="glass-card scan-line glow-effect p-12 rounded-3xl max-w-4xl mx-auto">
<div class="grid grid-cols-3 gap-8 mb-8">
<div class="text-center">
<div class="stat-number" style="font-size: 48px; font-weight: 800;">15M+</div>
<p style="color: #64748b; font-weight: 500;">Record Protetti</p>
</div>
<div class="text-center">
<div class="stat-number" style="font-size: 48px; font-weight: 800;">99.9%</div>
<p style="color: #64748b; font-weight: 500;">Uptime</p>
</div>
<div class="text-center">
<div class="stat-number" style="font-size: 48px; font-weight: 800;">24/7</div>
<p style="color: #64748b; font-weight: 500;">Monitoraggio</p>
</div>
</div>
<div style="height: 200px; background: linear-gradient(135deg, rgba(26, 31, 80, 0.05) 0%, rgba(74, 95, 193, 0.05) 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;">
<svg width="100%" height="100%" style="position: absolute;">
<defs>
<linearGradient id="lineGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:#1a1f50;stop-opacity:0.3" />
<stop offset="100%" style="stop-color:#4a5fc1;stop-opacity:0.6" />
</linearGradient>
</defs>
<polyline points="0,150 100,120 200,140 300,90 400,100 500,70 600,85 700,60 800,50"
fill="none" stroke="url(#lineGradient)" stroke-width="3"/>
</svg>
<span style="color: var(--accent); font-weight: 700; font-size: 24px; z-index: 10;">📊 Dashboard Analytics</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section id="features" class="py-20 px-4 sm:px-6 lg:px-8">
<div class="max-w-7xl mx-auto">
<div class="text-center mb-16">
<h2 style="color: var(--accent); font-size: clamp(36px, 6vw, 56px); font-weight: 800; margin-bottom: 16px;">
Protezione Completa
</h2>
<p style="color: #64748b; font-size: 20px;">Tecnologia avanzata per la sicurezza dei tuoi dati</p>
</div>
<div class="grid md:grid-cols-3 gap-8">
<div class="glass-card p-8 rounded-2xl hover:transform hover:scale-105 transition duration-300">
<div class="feature-icon">🛡️</div>
<h3 style="color: var(--accent); font-size: 24px; font-weight: 700; margin-bottom: 12px;">
Rilevamento Istantaneo
</h3>
<p style="color: #64748b; font-size: 16px; line-height: 1.6;">
Identifica le violazioni di dati in tempo reale con algoritmi di machine learning avanzati.
</p>
</div>
<div class="glass-card p-8 rounded-2xl hover:transform hover:scale-105 transition duration-300">
<div class="feature-icon">🔐</div>
<h3 style="color: var(--accent); font-size: 24px; font-weight: 700; margin-bottom: 12px;">
Crittografia Avanzata
</h3>
<p style="color: #64748b; font-size: 16px; line-height: 1.6;">
Proteggi i dati sensibili con crittografia AES-256 e protocolli di sicurezza all'avanguardia.
</p>
</div>
<div class="glass-card p-8 rounded-2xl hover:transform hover:scale-105 transition duration-300">
<div class="feature-icon">📱</div>
<h3 style="color: var(--accent); font-size: 24px; font-weight: 700; margin-bottom: 12px;">
Allerte Immediate
</h3>
<p style="color: #64748b; font-size: 16px; line-height: 1.6;">
Ricevi notifiche istantanee su qualsiasi attività sospetta tramite SMS, email o app mobile.
</p>
</div>
<div class="glass-card p-8 rounded-2xl hover:transform hover:scale-105 transition duration-300">
<div class="feature-icon">📊</div>
<h3 style="color: var(--accent); font-size: 24px; font-weight: 700; margin-bottom: 12px;">
Analytics Dettagliati
</h3>
<p style="color: #64748b; font-size: 16px; line-height: 1.6;">
Dashboard completo con report personalizzabili e insights sulla sicurezza dei dati.
</p>
</div>
<div class="glass-card p-8 rounded-2xl hover:transform hover:scale-105 transition duration-300">
<div class="feature-icon">🌐</div>
<h3 style="color: var(--accent); font-size: 24px; font-weight: 700; margin-bottom: 12px;">
Monitoraggio Globale
</h3>
<p style="color: #64748b; font-size: 16px; line-height: 1.6;">
Scansiona database compromessi e dark web per tracciare eventuali esposizioni di dati.
</p>
</div>
<div class="glass-card p-8 rounded-2xl hover:transform hover:scale-105 transition duration-300">
<div class="feature-icon">⚡</div>
<h3 style="color: var(--accent); font-size: 24px; font-weight: 700; margin-bottom: 12px;">
Risposta Rapida
</h3>
<p style="color: #64748b; font-size: 16px; line-height: 1.6;">
Piano di risposta automatizzato agli incidenti per contenere e risolvere le violazioni.
</p>
</div>
</div>
</div>
</section>
<!-- Stats Section -->
<section id="stats" class="py-20 px-4 sm:px-6 lg:px-8" style="background: white;">
<div class="max-w-7xl mx-auto">
<div class="glass-card p-12 rounded-3xl">
<div class="grid md:grid-cols-4 gap-8 text-center">
<div>
<div class="stat-number" style="font-size: 56px; font-weight: 800;">2.4s</div>
<p style="color: #64748b; font-weight: 600; font-size: 18px;">Tempo di Rilevamento</p>
</div>
<div>
<div class="stat-number" style="font-size: 56px; font-weight: 800;">5000+</div>
<p style="color: #64748b; font-weight: 600; font-size: 18px;">Aziende Protette</p>
</div>
<div>
<div class="stat-number" style="font-size: 56px; font-weight: 800;">1.2M</div>
<p style="color: #64748b; font-weight: 600; font-size: 18px;">Breach Prevenuti</p>
</div>
<div>
<div class="stat-number" style="font-size: 56px; font-weight: 800;">100%</div>
<p style="color: #64748b; font-weight: 600; font-size: 18px;">Conformità GDPR</p>
</div>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section id="protection" class="py-20 px-4 sm:px-6 lg:px-8">
<div class="max-w-5xl mx-auto">
<div class="glass-card glow-effect p-12 rounded-3xl text-center" style="background: linear-gradient(135deg, rgba(26, 31, 80, 0.05) 0%, rgba(74, 95, 193, 0.05) 100%);">
<h2 style="color: var(--accent); font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 16px;">
Non Aspettare la Prossima Violazione
</h2>
<p style="color: #64748b; font-size: 20px; margin-bottom: 32px;">
Inizia subito a proteggere la tua azienda con una scansione gratuita
</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center items-center">
<input type="email" placeholder="La tua email aziendale"
style="padding: 16px 24px; border-radius: 12px; border: 2px solid var(--accent); width: 100%; max-width: 400px; font-size: 16px; background: white;">
<button class="btn-primary text-lg whitespace-nowrap">Inizia Scansione</button>
</div>
<p style="color: #94a3b8; font-size: 14px; margin-top: 16px;">
✓ Nessuna carta di credito richiesta • ✓ Report completo in 60 secondi
</p>
</div>
</div>
</section>
<!-- Footer -->
<footer style="background: white; padding: 60px 0 30px;">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid md:grid-cols-4 gap-12 mb-12">
<div>
<div class="flex items-center space-x-2 mb-4">
<div style="width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 20px;">D</div>
<span style="color: var(--accent); font-weight: 700; font-size: 24px;">DataShield</span>
</div>
<p style="color: #64748b;">Protezione avanzata contro le violazioni di dati per aziende moderne.</p>
</div>
<div>
<h4 style="color: var(--accent); font-weight: 700; margin-bottom: 16px;">Prodotto</h4>
<ul style="color: #64748b; space-y: 8px;">
<li class="mb-2"><a href="#" class="hover:opacity-70">Funzionalità</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">Prezzi</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">API</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">Documentazione</a></li>
</ul>
</div>
<div>
<h4 style="color: var(--accent); font-weight: 700; margin-bottom: 16px;">Azienda</h4>
<ul style="color: #64748b;">
<li class="mb-2"><a href="#" class="hover:opacity-70">Chi Siamo</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">Blog</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">Carriere</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">Contatti</a></li>
</ul>
</div>
<div>
<h4 style="color: var(--accent); font-weight: 700; margin-bottom: 16px;">Legale</h4>
<ul style="color: #64748b;">
<li class="mb-2"><a href="#" class="hover:opacity-70">Privacy</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">Termini</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">Cookie</a></li>
<li class="mb-2"><a href="#" class="hover:opacity-70">GDPR</a></li>
</ul>
</div>
</div>
<div style="border-top: 1px solid rgba(26, 31, 80, 0.1); padding-top: 30px; text-align: center; color: #64748b;">
<p>© 2024 DataShield. Tutti i diritti riservati.</p>
</div>
</div>
</footer>
<script>
// 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'
});
}
});
});
// Add scroll effect to navigation
window.addEventListener('scroll', () => {
const nav = document.querySelector('nav');
if (window.scrollY > 50) {
nav.style.boxShadow = '0 4px 20px rgba(26, 31, 80, 0.1)';
} else {
nav.style.boxShadow = 'none';
}
});
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Create a beautiful wedding planner multistep form widget that is using phd 200 iq level javascirpt logic and animation s tha tare high performance and won 23 times the awwwared awards for best ui in the world
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ethereal Wedding Planner</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #D4A574;
--primary-dark: #B8935F;
--secondary: #F5E6D3;
--accent: #E8D5C4;
--text-dark: #2C2C2C;
--text-light: #6B6B6B;
--white: #FFFFFF;
--glass: rgba(255, 255, 255, 0.1);
--shadow: rgba(0, 0, 0, 0.1);
--success: #4CAF50;
--cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #F5E6D3 0%, #FFFFFF 50%, #E8D5C4 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow-x: hidden;
position: relative;
}
.floating-elements {
position: fixed;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.petal {
position: absolute;
width: 20px;
height: 20px;
background: var(--primary);
opacity: 0.3;
border-radius: 0 100% 0 100%;
animation: float 15s infinite;
filter: blur(1px);
}
@keyframes float {
0% {
transform: translateY(100vh) rotate(0deg);
}
100% {
transform: translateY(-100vh) rotate(720deg);
}
}
.container {
width: 90%;
max-width: 600px;
background: var(--white);
border-radius: 30px;
box-shadow:
0 20px 60px -10px rgba(0, 0, 0, 0.15),
0 10px 40px -20px rgba(0, 0, 0, 0.1);
overflow: hidden;
position: relative;
z-index: 10;
backdrop-filter: blur(20px);
transform: translateY(0);
animation: containerEntry 0.8s var(--cubic-bezier);
}
@keyframes containerEntry {
from {
opacity: 0;
transform: translateY(40px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.form-header {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
padding: 3rem 2rem;
text-align: center;
position: relative;
overflow: hidden;
}
.form-header::before {
content: '';
position: absolute;
width: 200%;
height: 200%;
top: -50%;
left: -50%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
background-size: 20px 20px;
animation: headerPattern 20s linear infinite;
}
@keyframes headerPattern {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(20px, 20px);
}
}
.form-header h1 {
color: var(--white);
font-size: 2rem;
font-weight: 300;
letter-spacing: 2px;
margin-bottom: 0.5rem;
position: relative;
z-index: 1;
}
.form-header p {
color: rgba(255, 255, 255, 0.9);
font-size: 0.95rem;
position: relative;
z-index: 1;
}
.progress-container {
padding: 2rem;
background: var(--secondary);
position: relative;
}
.progress-bar {
display: flex;
justify-content: space-between;
position: relative;
max-width: 400px;
margin: 0 auto;
}
.progress-line {
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background: var(--accent);
transform: translateY(-50%);
z-index: 1;
}
.progress-line-fill {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: var(--primary);
width: 0%;
transition: width 0.6s var(--cubic-bezier);
}
.progress-step {
width: 40px;
height: 40px;
background: var(--white);
border: 2px solid var(--accent);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
color: var(--text-light);
position: relative;
z-index: 2;
cursor: pointer;
transition: all 0.3s var(--cubic-bezier);
}
.progress-step.active {
background: var(--primary);
color: var(--white);
border-color: var(--primary);
transform: scale(1.2);
box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.2);
}
.progress-step.completed {
background: var(--primary);
color: var(--white);
border-color: var(--primary);
}
.progress-step.completed::after {
content: '✓';
position: absolute;
font-size: 1rem;
animation: checkmark 0.3s ease-out;
}
@keyframes checkmark {
0% {
transform: scale(0) rotate(0deg);
}
50% {
transform: scale(1.2) rotate(10deg);
}
100% {
transform: scale(1) rotate(0deg);
}
}
.form-content {
padding: 3rem 2rem;
min-height: 400px;
position: relative;
}
.step-content {
display: none;
opacity: 0;
transform: translateX(20px);
animation: stepEntry 0.5s var(--cubic-bezier) forwards;
}
.step-content.active {
display: block;
opacity: 1;
transform: translateX(0);
}
@keyframes stepEntry {
to {
opacity: 1;
transform: translateX(0);
}
}
.step-title {
font-size: 1.5rem;
color: var(--text-dark);
margin-bottom: 2rem;
text-align: center;
font-weight: 300;
}
.form-group {
margin-bottom: 1.5rem;
position: relative;
}
.form-label {
display: block;
color: var(--text-dark);
font-size: 0.875rem;
margin-bottom: 0.5rem;
font-weight: 500;
transition: color 0.3s ease;
}
.form-input {
width: 100%;
padding: 0.875rem 1rem;
border: 2px solid var(--accent);
border-radius: 12px;
font-size: 1rem;
transition: all 0.3s var(--cubic-bezier);
background: var(--white);
color: var(--text-dark);
}
.form-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
transform: translateY(-2px);
}
.form-input.error {
border-color: #ff6b6b;
animation: shake 0.3s ease-out;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
75% { transform: translateX(5px); }
}
.radio-group {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.radio-card {
position: relative;
cursor: pointer;
transition: all 0.3s var(--cubic-bezier);
}
.radio-card input[type="radio"] {
position: absolute;
opacity: 0;
}
.radio-card-label {
display: block;
padding: 1.5rem;
background: var(--secondary);
border-radius: 15px;
text-align: center;
border: 2px solid transparent;
transition: all 0.3s var(--cubic-bezier);
}
.radio-card:hover .radio-card-label {
transform: translateY(-3px);
box-shadow: 0 10px 20px -10px var(--shadow);
}
.radio-card input[type="radio"]:checked + .radio-card-label {
background: var(--primary);
color: var(--white);
border-color: var(--primary);
transform: scale(1.05);
box-shadow: 0 10px 30px -10px rgba(212, 165, 116, 0.5);
}
.date-picker {
position: relative;
}
.date-picker input {
cursor: pointer;
}
.guest-counter {
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
margin: 2rem 0;
}
.counter-btn {
width: 40px;
height: 40px;
border: none;
background: var(--primary);
color: var(--white);
border-radius: 50%;
cursor: pointer;
font-size: 1.25rem;
transition: all 0.3s var(--cubic-bezier);
display: flex;
align-items: center;
justify-content: center;
}
.counter-btn:hover {
transform: scale(1.1);
box-shadow: 0 10px 20px -10px rgba(212, 165, 116, 0.6);
}
.counter-btn:active {
transform: scale(0.95);
}
.guest-count {
font-size: 2.5rem;
font-weight: 300;
color: var(--text-dark);
min-width: 80px;
text-align: center;
}
.form-actions {
display: flex;
justify-content: space-between;
gap: 1rem;
margin-top: 3rem;
}
.btn {
padding: 0.875rem 2rem;
border: none;
border-radius: 30px;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s var(--cubic-bezier);
font-weight: 500;
letter-spacing: 0.5px;
position: relative;
overflow: hidden;
}
.btn-prev {
background: transparent;
color: var(--text-dark);
border: 2px solid var(--accent);
}
.btn-prev:hover {
border-color: var(--primary);
color: var(--primary);
transform: translateY(-2px);
box-shadow: 0 10px 20px -10px var(--shadow);
}
.btn-next {
background: var(--primary);
color: var(--white);
flex: 1;
max-width: 200px;
margin-left: auto;
}
.btn-next::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.btn-next:hover::before {
width: 300px;
height: 300px;
}
.btn-next:hover {
transform: translateY(-2px);
box-shadow: 0 15px 30px -10px rgba(212, 165, 116, 0.5);
}
.summary-card {
background: var(--secondary);
border-radius: 15px;
padding: 1.5rem;
margin-bottom: 1.5rem;
border: 1px solid var(--accent);
position: relative;
overflow: hidden;
}
.summary-card::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, var(--primary), transparent);
opacity: 0;
transition: opacity 0.3s ease;
z-index: -1;
border-radius: 15px;
}
.summary-card:hover::before {
opacity: 0.1;
}
.summary-item {
display: flex;
justify-content: space-between;
margin-bottom: 0.75rem;
font-size: 0.95rem;
}
.summary-label {
color: var(--text-light);
}
.summary-value {
color: var(--text-dark);
font-weight: 500;
}
.success-animation {
display: none;
text-align: center;
padding: 3rem;
}
.success-animation.show {
display: block;
animation: successEntry 0.8s var(--cubic-bezier);
}
@keyframes successEntry {
0% {
opacity: 0;
transform: scale(0.8) translateY(20px);
}
50% {
transform: scale(1.05) translateY(-5px);
}
100% {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.success-icon {
width: 100px;
height: 100px;
background: var(--success);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 2rem;
color: var(--white);
font-size: 3rem;
animation: successIcon 0.5s ease-out 0.3s both;
}
@keyframes successIcon {
0% {
transform: scale(0) rotate(-180deg);
}
50% {
transform: scale(1.2) rotate(10deg);
}
100% {
transform: scale(1) rotate(0deg);
}
}
.error-message {
color: #ff6b6b;
font-size: 0.75rem;
margin-top: 0.5rem;
display: none;
}
.error-message.show {
display: block;
animation: errorFade 0.3s ease-out;
}
@keyframes errorFade {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 600px) {
.form-header h1 {
font-size: 1.5rem;
}
.form-content {
padding: 2rem 1.5rem;
}
.radio-group {
grid-template-columns: 1fr;
}
.guest-counter {
gap: 1.5rem;
}
.progress-step {
width: 35px;
height: 35px;
font-size: 0.7rem;
}
}
</style>
</head>
<body>
<div class="floating-elements" id="floatingElements"></div>
<div class="container">
<div class="form-header">
<h1>DREAM WEDDING</h1>
<p>Let's plan your perfect day together</p>
</div>
<div class="progress-container">
<div class="progress-bar">
<div class="progress-line">
<div class="progress-line-fill" id="progressFill"></div>
</div>
<div class="progress-step active" data-step="1">1</div>
<div class="progress-step" data-step="2">2</div>
<div class="progress-step" data-step="3">3</div>
<div class="progress-step" data-step="4">4</div>
<div class="progress-step" data-step="5">5</div>
</div>
</div>
<div class="form-content">
<form id="weddingForm">
<!-- Step 1: Personal Info -->
<div class="step-content active" data-step="1">
<h2 class="step-title">Tell us about yourselves</h2>
<div class="form-group">
<label class="form-label" for="partner1">Partner 1 Name</label>
<input type="text" class="form-input" id="partner1" name="partner1" required>
<div class="error-message">Please enter partner 1's name</div>
</div>
<div class="form-group">
<label class="form-label" for="partner2">Partner 2 Name</label>
<input type="text" class="form-input" id="partner2" name="partner2" required>
<div class="error-message">Please enter partner 2's name</div>
</div>
<div class="form-group">
<label class="form-label" for="email">Email Address</label>
<input type="email" class="form-input" id="email" name="email" required>
<div class="error-message">Please enter a valid email</div>
</div>
<div class="form-group">
<label class="form-label" for="phone">Phone Number</label>
<input type="tel" class="form-input" id="phone" name="phone" required>
<div class="error-message">Please enter your phone number</div>
</div>
</div>
<!-- Step 2: Wedding Style -->
<div class="step-content" data-step="2">
<h2 class="step-title">Choose your wedding style</h2>
<div class="radio-group">
<div class="radio-card">
<input type="radio" id="classic" name="style" value="classic">
<label class="radio-card-label" for="classic">
<div>✨</div>
<div>Classic Elegance</div>
</label>
</div>
<div class="radio-card">
<input type="radio" id="bohemian" name="style" value="bohemian">
<label class="radio-card-label" for="bohemian">
<div>🌿</div>
<div>Bohemian Chic</div>
</label>
</div>
<div class="radio-card">
<input type="radio" id="modern" name="style" value="modern">
<label class="radio-card-label" for="modern">
<div>💎</div>
<div>Modern Luxury</div>
</label>
</div>
<div class="radio-card">
<input type="radio" id="rustic" name="style" value="rustic">
<label class="radio-card-label" for="rustic">
<div>🌻</div>
<div>Rustic Romance</div>
</label>
</div>
<div class="radio-card">
<input type="radio" id="beach" name="style" value="beach">
<label class="radio-card-label" for="beach">
<div>🏖️</div>
<div>Beach Paradise</div>
</label>
</div>
<div class="radio-card">
<input type="radio" id="garden" name="style" value="garden">
<label class="radio-card-label" for="garden">
<div>🌺</div>
<div>Garden Party</div>
</label>
</div>
</div>
</div>
<!-- Step 3: Date & Location -->
<div class="step-content" data-step="3">
<h2 class="step-title">When and where?</h2>
<div class="form-group date-picker">
<label class="form-label" for="date">Wedding Date</label>
<input type="date" class="form-input" id="date" name="date" required>
<div class="error-message">Please select a date</div>
</div>
<div class="form-group">
<label class="form-label" for="venue">Preferred Venue Type</label>
<select class="form-input" id="venue" name="venue" required>
<option value="">Select venue type</option>
<option value="ballroom">Grand Ballroom</option>
<option value="outdoor">Outdoor Garden</option>
<option value="beach">Beach Resort</option>
<option value="vineyard">Vineyard Estate</option>
<option value="historic">Historic Mansion</option>
<option value="rooftop">Rooftop Terrace</option>
</select>
<div class="error-message">Please select a venue type</div>
</div>
<div class="form-group">
<label class="form-label" for="city">City</label>
<input type="text" class="form-input" id="city" name="city" placeholder="Where will your wedding be?" required>
<div class="error-message">Please enter a city</div>
</div>
</div>
<!-- Step 4: Guest Details -->
<div class="step-content" data-step="4">
<h2 class="step-title">Guest Information</h2>
<div class="form-group">
<label class="form-label">Estimated Number of Guests</label>
<div class="guest-counter">
<button type="button" class="counter-btn" id="decreaseGuests">−</button>
<div class="guest-count" id="guestCount">100</div>
<button type="button" class="counter-btn" id="increaseGuests">+</button>
</div>
<input type="hidden" id="guests" name="guests" value="100">
</div>
<div class="form-group">
<label class="form-label" for="budget">Estimated Budget</label>
<select class="form-input" id="budget" name="budget" required>
<option value="">Select budget range</option>
<option value="10-25">$10,000 - $25,000</option>
<option value="25-50">$25,000 - $50,000</option>
<option value="50-75">$50,000 - $75,000</option>
<option value="75-100">$75,000 - $100,000</option>
<option value="100+">$100,000+</option>
</select>
<div class="error-message">Please select a budget range</div>
</div>
<div class="form-group">
<label class="form-label" for="notes">Special Requests</label>
<textarea class="form-input" id="notes" name="notes" rows="4" placeholder="Tell us about your dream wedding..."></textarea>
</div>
</div>
<!-- Step 5: Summary -->
<div class="step-content" data-step="5">
<h2 class="step-title">Review Your Details</h2>
<div class="summary-card">
<div class="summary-item">
<span class="summary-label">Couple Names:</span>
<span class="summary-value" id="summaryNames">-</span>
</div>
<div class="summary-item">
<span class="summary-label">Wedding Style:</span>
<span class="summary-value" id="summaryStyle">-</span>
</div>
<div class="summary-item">
<span class="summary-label">Wedding Date:</span>
<span class="summary-value" id="summaryDate">-</span>
</div>
<div class="summary-item">
<span class="summary-label">Venue Type:</span>
<span class="summary-value" id="summaryVenue">-</span>
</div>
<div class="summary-item">
<span class="summary-label">Location:</span>
<span class="summary-value" id="summaryCity">-</span>
</div>
<div class="summary-item">
<span class="summary-label">Guest Count:</span>
<span class="summary-value" id="summaryGuests">-</span>
</div>
<div class="summary-item">
<span class="summary-label">Budget Range:</span>
<span class="summary-value" id="summaryBudget">-</span>
</div>
</div>
<div class="form-group">
<label class="form-label">
<input type="checkbox" id="terms" name="terms" required>
I agree to receive wedding planning tips and updates
</label>
<div class="error-message">Please accept the terms</div>
</div>
</div>
<!-- Success Message -->
<div class="success-animation" id="successAnimation">
<div class="success-icon">✓</div>
<h2 style="color: var(--text-dark); margin-bottom: 1rem;">Perfect! Your Dream Wedding Awaits</h2>
<p style="color: var(--text-light);">We've received your information and our wedding specialists will contact you within 24 hours.</p>
</div>
<div class="form-actions" id="formActions">
<button type="button" class="btn btn-prev" id="prevBtn" style="display: none;">Previous</button>
<button type="button" class="btn btn-next" id="nextBtn">Continue</button>
</div>
</form>
</div>
</div>
<script>
// Advanced form logic with validation and animations
class WeddingPlannerForm {
constructor() {
this.currentStep = 1;
this.totalSteps = 5;
this.formData = {};
this.init();
this.createFloatingElements();
this.initializeAnimations();
}
init() {
this.form = document.getElementById('weddingForm');
this.nextBtn = document.getElementById('nextBtn');
this.prevBtn = document.getElementById('prevBtn');
this.progressFill = document.getElementById('progressFill');
this.nextBtn.addEventListener('click', () => this.nextStep());
this.prevBtn.addEventListener('click', () => this.prevStep());
// Guest counter
const decreaseBtn = document.getElementById('decreaseGuests');
const increaseBtn = document.getElementById('increaseGuests');
const guestCount = document.getElementById('guestCount');
const guestInput = document.getElementById('guests');
decreaseBtn.addEventListener('click', () => {
let count = parseInt(guestCount.textContent);
if (count > 10) {
count -= 10;
guestCount.textContent = count;
guestInput.value = count;
this.animateValue(guestCount, count + 10, count, 200);
}
});
increaseBtn.addEventListener('click', () => {
let count = parseInt(guestCount.textContent);
if (count < 500) {
count += 10;
guestCount.textContent = count;
guestInput.value = count;
this.animateValue(guestCount, count - 10, count, 200);
}
});
// Progress step clicks
document.querySelectorAll('.progress-step').forEach(step => {
step.addEventListener('click', () => {
const stepNum = parseInt(step.dataset.step);
if (stepNum < this.currentStep) {
this.goToStep(stepNum);
}
});
});
// Real-time validation
this.initializeValidation();
}
initializeValidation() {
const inputs = this.form.querySelectorAll('.form-input');
inputs.forEach(input => {
input.addEventListener('blur', () => this.validateField(input));
input.addEventListener('input', () => {
input.classList.remove('error');
const errorMsg = input.parentElement.querySelector('.error-message');
if (errorMsg) errorMsg.classList.remove('show');
});
});
}
validateField(field) {
const value = field.value.trim();
const type = field.type;
const name = field.name;
let isValid = true;
if (field.hasAttribute('required') && !value) {
isValid = false;
} else if (type === 'email') {
isValid = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
} else if (type === 'tel') {
isValid = /^[\d\s\-\+\(\)]+$/.test(value) && value.length >= 10;
}
if (!isValid) {
field.classList.add('error');
const errorMsg = field.parentElement.querySelector('.error-message');
if (errorMsg) errorMsg.classList.add('show');
}
return isValid;
}
validateStep(step) {
const stepContent = document.querySelector(`.step-content[data-step="${step}"]`);
const inputs = stepContent.querySelectorAll('.form-input[required]');
const radioGroups = stepContent.querySelectorAll('input[type="radio"][required]');
let isValid = true;
inputs.forEach(input => {
if (!this.validateField(input)) {
isValid = false;
}
});
// Validate radio groups
if (step === 2) {
const styleSelected = document.querySelector('input[name="style"]:checked');
if (!styleSelected) {
isValid = false;
this.showNotification('Please select a wedding style');
}
}
return isValid;
}
nextStep() {
if (this.currentStep < this.totalSteps) {
if (this.validateStep(this.currentStep)) {
this.saveStepData(this.currentStep);
this.currentStep++;
this.updateUI();
if (this.currentStep === this.totalSteps) {
this.updateSummary();
this.nextBtn.textContent = 'Submit';
}
}
} else {
this.submitForm();
}
}
prevStep() {
if (this.currentStep > 1) {
this.currentStep--;
this.updateUI();
this.nextBtn.textContent = 'Continue';
}
}
goToStep(step) {
this.saveStepData(this.currentStep);
this.currentStep = step;
this.updateUI();
if (this.currentStep === this.totalSteps) {
this.updateSummary();
this.nextBtn.textContent = 'Submit';
} else {
this.nextBtn.textContent = 'Continue';
}
}
updateUI() {
// Update progress bar
const progress = ((this.currentStep - 1) / (this.totalSteps - 1)) * 100;
this.progressFill.style.width = `${progress}%`;
// Update progress steps
document.querySelectorAll('.progress-step').forEach((step, index) => {
const stepNum = index + 1;
step.classList.remove('active', 'completed');
if (stepNum === this.currentStep) {
step.classList.add('active');
} else if (stepNum < this.currentStep) {
step.classList.add('completed');
}
});
// Update step content
document.querySelectorAll('.step-content').forEach(content => {
content.classList.remove('active');
});
document.querySelector(`.step-content[data-step="${this.currentStep}"]`).classList.add('active');
// Update buttons
this.prevBtn.style.display = this.currentStep === 1 ? 'none' : 'block';
}
saveStepData(step) {
const stepContent = document.querySelector(`.step-content[data-step="${step}"]`);
const inputs = stepContent.querySelectorAll('.form-input');
const radios = stepContent.querySelectorAll('input[type="radio"]:checked');
inputs.forEach(input => {
this.formData[input.name] = input.value;
});
radios.forEach(radio => {
this.formData[radio.name] = radio.value;
});
}
updateSummary() {
const styleMap = {
'classic': 'Classic Elegance',
'bohemian': 'Bohemian Chic',
'modern': 'Modern Luxury',
'rustic': 'Rustic Romance',
'beach': 'Beach Paradise',
'garden': 'Garden Party'
};
const venueMap = {
'ballroom': 'Grand Ballroom',
'outdoor': 'Outdoor Garden',
'beach': 'Beach Resort',
'vineyard': 'Vineyard Estate',
'historic': 'Historic Mansion',
'rooftop': 'Rooftop Terrace'
};
document.getElementById('summaryNames').textContent =
`${this.formData.partner1 || '-'} & ${this.formData.partner2 || '-'}`;
document.getElementById('summaryStyle').textContent =
styleMap[this.formData.style] || '-';
document.getElementById('summaryDate').textContent =
this.formatDate(this.formData.date) || '-';
document.getElementById('summaryVenue').textContent =
venueMap[this.formData.venue] || '-';
document.getElementById('summaryCity').textContent =
this.formData.city || '-';
document.getElementById('summaryGuests').textContent =
this.formData.guests || '100';
document.getElementById('summaryBudget').textContent =
this.formData.budget ? `$${this.formData.budget}k` : '-';
}
formatDate(dateString) {
if (!dateString) return null;
const date = new Date(dateString);
const options = { year: 'numeric', month: 'long', day: 'numeric' };
return date.toLocaleDateString('en-US', options);
}
submitForm() {
const termsChecked = document.getElementById('terms').checked;
if (!termsChecked) {
document.getElementById('terms').parentElement.parentElement.querySelector('.error-message').classList.add('show');
return;
}
this.saveStepData(this.currentStep);
// Simulate form submission
this.nextBtn.disabled = true;
this.nextBtn.textContent = 'Submitting...';
setTimeout(() => {
// Hide form content and show success
document.querySelectorAll('.step-content').forEach(content => {
content.style.display = 'none';
});
document.getElementById('formActions').style.display = 'none';
document.getElementById('successAnimation').classList.add('show');
// Trigger confetti
this.triggerConfetti();
}, 1000);
}
animateValue(element, start, end, duration) {
const range = end - start;
const increment = range / (duration / 16);
let current = start;
const timer = setInterval(() => {
current += increment;
if ((increment > 0 && current >= end) || (increment < 0 && current <= end)) {
element.textContent = end;
clearInterval(timer);
} else {
element.textContent = Math.floor(current);
}
}, 16);
}
createFloatingElements() {
const container = document.getElementById('floatingElements');
const petalCount = 10;
for (let i = 0; i < petalCount; i++) {
const petal = document.createElement('div');
petal.className = 'petal';
petal.style.left = `${Math.random() * 100}%`;
petal.style.animationDelay = `${Math.random() * 15}s`;
petal.style.animationDuration = `${15 + Math.random() * 10}s`;
container.appendChild(petal);
}
}
triggerConfetti() {
const colors = ['#D4A574', '#F5E6D3', '#E8D5C4', '#FFD700'];
const confettiCount = 100;
const container = document.body;
for (let i = 0; i < confettiCount; i++) {
const confetti = document.createElement('div');
confetti.style.position = 'fixed';
confetti.style.width = '10px';
confetti.style.height = '10px';
confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
confetti.style.left = `${Math.random() * 100}%`;
confetti.style.top = '-10px';
confetti.style.opacity = '0.8';
confetti.style.transform = `rotate(${Math.random() * 360}deg)`;
confetti.style.pointerEvents = 'none';
confetti.style.zIndex = '9999';
container.appendChild(confetti);
const animation = confetti.animate([
{
transform: `translateY(0) rotate(0deg)`,
opacity: 1
},
{
transform: `translateY(${window.innerHeight + 100}px) rotate(${Math.random() * 720}deg)`,
opacity: 0
}
], {
duration: 3000 + Math.random() * 2000,
easing: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)'
});
animation.onfinish = () => confetti.remove();
}
}
showNotification(message) {
const notification = document.createElement('div');
notification.style.cssText = `
position: fixed;
top: 20px;
right: 20px;
background: #ff6b6b;
color: white;
padding: 1rem 1.5rem;
border-radius: 10px;
box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
z-index: 1000;
animation: slideIn 0.3s ease-out;
`;
notification.textContent = message;
document.body.appendChild(notification);
setTimeout(() => {
notification.style.animation = 'slideOut 0.3s ease-out';
setTimeout(() => notification.remove(), 300);
}, 3000);
}
initializeAnimations() {
// Intersection Observer for scroll animations
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.animation = 'fadeInUp 0.6s ease-out';
}
});
});
document.querySelectorAll('.form-group').forEach(group => {
observer.observe(group);
});
}
}
// Initialize the form when DOM is ready
document.addEventListener('DOMContentLoaded', () => {
new WeddingPlannerForm();
});
// Add required CSS animations
const style = document.createElement('style');
style.textContent = `
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
`;
document.head.appendChild(style);
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Build me a aesthetic landing page for my Mock test platform with animation
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Mockly — Ace Your Mock Tests</title>
<meta name="description" content="Aesthetic, fast, and powerful mock test platform with intelligent analytics and rich animations."/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: { sans: ['Inter', 'ui-sans-serif', 'system-ui'] },
colors: {
primary: { 50:'#eef2ff', 100:'#e0e7ff', 200:'#c7d2fe', 300:'#a5b4fc', 400:'#818cf8', 500:'#6366f1', 600:'#4f46e5', 700:'#4338ca', 800:'#3730a3', 900:'#312e81' },
accent: { 50:'#fdf4ff', 100:'#fae8ff', 200:'#f5d0fe', 300:'#f0abfc', 400:'#e879f9', 500:'#d946ef', 600:'#c026d3', 700:'#a21caf', 800:'#86198f', 900:'#701a75' },
slate: {
950: '#0b1020'
}
},
boxShadow: {
soft: '0 10px 30px rgba(2, 6, 23, 0.15)',
glass: 'inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 40px rgba(0,0,0,0.25)'
},
backdropBlur: { xs: '2px' },
keyframes: {
float: { '0%,100%': { transform:'translateY(0)' }, '50%': { transform:'translateY(-10px)' } },
glow: { '0%,100%': { opacity: .8 }, '50%': { opacity: .3 } },
marquee: { '0%': { transform:'translateX(0)' }, '100%': { transform:'translateX(-50%)' } },
fadeUp: { '0%': { opacity:0, transform:'translateY(20px)' }, '100%': { opacity:1, transform:'translateY(0)' } }
},
animation: {
float: 'float 6s ease-in-out infinite',
glow: 'glow 6s ease-in-out infinite',
marquee: 'marquee 30s linear infinite',
fadeUp: 'fadeUp .8s ease both'
}
}
}
}
</script>
<style>
:root { color-scheme: dark; }
html, body { height: 100%; }
.noise {
pointer-events: none;
position: fixed;
inset: 0;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" opacity="0.06"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" /></svg>');
mix-blend-mode: soft-light;
}
.glass {
background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
border: 1px solid rgba(255,255,255,0.12);
backdrop-filter: blur(8px);
}
.ring-gradient {
position: absolute;
inset: -1px;
border-radius: inherit;
padding: 1px;
background: linear-gradient(135deg, rgba(99,102,241,.35), rgba(217,70,239,.25), rgba(56,189,248,.2));
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
}
.gradient-text {
background: linear-gradient(90deg, #c7d2fe, #e879f9, #60a5fa);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.btn {
transition: transform .2s ease, box-shadow .2s ease, background .3s ease;
box-shadow: 0 10px 20px rgba(99,102,241,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.shine {
position: relative;
overflow: hidden;
}
.shine::after {
content: '';
position: absolute;
top: -150%;
left: -50%;
width: 60%;
height: 400%;
transform: rotate(20deg);
background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
transition: transform .6s ease;
}
.shine:hover::after { transform: translateX(250%) rotate(20deg); }
.chip {
border: 1px solid rgba(255,255,255,.1);
background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
box-shadow: 0 10px 30px rgba(2,6,23,.25), inset 0 1px rgba(255,255,255,.06);
backdrop-filter: blur(6px);
}
.testimonial-card:hover { transform: translateY(-6px); }
.nav-blur {
background: rgba(11,16,32,.45);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255,255,255,.08);
}
.dot {
width: 10px; height: 10px; border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #fff, #a5b4fc 30%, transparent 70%);
box-shadow: 0 0 40px rgba(99,102,241,.55), inset 0 0 6px rgba(255,255,255,.6);
animation: float 8s ease-in-out infinite;
}
.bg-grid {
background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
background-size: 24px 24px;
mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.9), rgba(0,0,0,0.15));
}
.card-cta:hover .cta-arrow { transform: translateX(4px); }
.kbd {
border: 1px solid rgba(255,255,255,.15);
background: rgba(255,255,255,.05);
border-bottom-width: 3px;
border-radius: 6px;
padding: 2px 6px;
font-size: 12px;
}
</style>
</head>
<body class="bg-slate-950 text-slate-100 font-sans antialiased selection:bg-primary-600 selection:text-white">
<div class="noise"></div>
<header class="fixed top-0 inset-x-0 z-50 nav-blur">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<a href="#" class="flex items-center gap-3 group">
<div class="relative">
<div class="w-9 h-9 rounded-xl bg-gradient-to-br from-primary-500 via-accent-500 to-sky-400 shadow-glass grid place-items-center">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
<path d="M5 12h14M12 5l7 7-7 7" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</div>
<span class="text-lg font-semibold tracking-tight">
<span class="gradient-text">Mockly</span>
</span>
</a>
<nav class="hidden md:flex items-center gap-8">
<a href="#features" class="text-sm text-slate-300 hover:text-white transition">Features</a>
<a href="#demo" class="text-sm text-slate-300 hover:text-white transition">Demo</a>
<a href="#pricing" class="text-sm text-slate-300 hover:text-white transition">Pricing</a>
<a href="#faq" class="text-sm text-slate-300 hover:text-white transition">FAQ</a>
</nav>
<div class="flex items-center gap-3">
<button id="themeToggle" class="hidden kbd md:inline-flex items-center gap-2 text-slate-200/90">
<span class="i">Theme</span><span class="opacity-70">⌘K</span>
</button>
<a href="#signup" class="btn shine inline-flex items-center px-4 py-2 rounded-lg bg-primary-600 hover:bg-primary-500 text-white text-sm font-medium">Sign in</a>
<a href="#get-started" class="btn shine hidden sm:inline-flex items-center px-4 py-2 rounded-lg bg-gradient-to-r from-primary-600 to-accent-600 hover:from-primary-500 hover:to-accent-500 text-white text-sm font-semibold">Get Started</a>
</div>
</div>
</div>
</header>
<section class="relative overflow-hidden pt-28 md:pt-32 pb-20 md:pb-28">
<div class="absolute inset-0 -z-10">
<div class="absolute -top-40 -right-40 w-[36rem] h-[36rem] rounded-full bg-primary-600/30 blur-3xl animate-glow"></div>
<div class="absolute -bottom-40 -left-40 w-[40rem] h-[40rem] rounded-full bg-accent-600/25 blur-3xl animate-glow" style="animation-delay:1s"></div>
<div class="absolute inset-x-0 top-0 h-[55%] bg-grid"></div>
<div class="absolute inset-x-0 -bottom-10 h-40 bg-gradient-to-t from-slate-950 to-transparent"></div>
</div>
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative">
<div class="grid lg:grid-cols-2 gap-12 items-center">
<div class="space-y-7 animate-fadeUp">
<div class="inline-flex items-center gap-2 chip rounded-full px-3 py-1 text-xs text-slate-200">
<span class="w-2 h-2 rounded-full bg-emerald-400 shadow-[0_0_12px_rgba(52,211,153,.8)]"></span>
New: Smart Performance Insights v2.1
</div>
<h1 class="text-4xl sm:text-5xl lg:text-6xl font-extrabold leading-tight">
Ace your exams with beautiful, blazing-fast
<span class="gradient-text">Mock Tests</span>
</h1>
<p class="text-slate-300 text-lg leading-relaxed">
Practice real exam environments, get instant feedback, and visualize progress with interactive analytics. Built for speed, designed for focus.
</p>
<div class="flex flex-col sm:flex-row gap-3">
<a href="#get-started" class="btn shine inline-flex items-center justify-center px-6 py-3 rounded-xl bg-gradient-to-r from-primary-600 to-accent-600 hover:from-primary-500 hover:to-accent-500 text-white font-semibold">
Start a Free Mock
<svg class="ml-2 cta-arrow transition-transform" width="18" height="18" viewBox="0 0 24 24" fill="none">
<path d="M5 12h14M12 5l7 7-7 7" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
<button id="watchDemo" class="btn inline-flex items-center justify-center px-6 py-3 rounded-xl bg-white/5 hover:bg-white/10 text-white font-medium border border-white/10">
Watch Demo
<svg class="ml-2" width="16" height="16" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="1.6" opacity=".7"/>
<path d="M10 9l5 3-5 3V9z" fill="currentColor"/>
</svg>
</button>
</div>
<div class="flex items-center gap-6 pt-4">
<div class="flex -space-x-3">
<img class="w-9 h-9 rounded-full ring-2 ring-slate-900" src="https://i.pravatar.cc/40?img=1" alt="user"/>
<img class="w-9 h-9 rounded-full ring-2 ring-slate-900" src="https://i.pravatar.cc/40?img=5" alt="user"/>
<img class="w-9 h-9 rounded-full ring-2 ring-slate-900" src="https://i.pravatar.cc/40?img=8" alt="user"/>
<img class="w-9 h-9 rounded-full ring-2 ring-slate-900" src="https://i.pravatar.cc/40?img=11" alt="user"/>
</div>
<p class="text-sm text-slate-300">
Trusted by 25,000+ learners • Avg score improvement 18%
</p>
</div>
</div>
<div class="relative">
<div class="absolute -inset-6 rounded-3xl bg-gradient-to-tr from-primary-500/20 via-accent-500/10 to-sky-400/10 blur-2xl"></div>
<div class="relative glass rounded-3xl p-4 sm:p-5 shadow-glass">
<div class="ring-gradient rounded-3xl pointer-events-none"></div>
<div class="grid grid-cols-12 gap-4">
<div class="col-span-12">
<div class="chip rounded-2xl p-4">
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
<div class="dot"></div>
<h3 class="font-semibold">Mock Test — Quant Aptitude</h3>
</div>
<div class="text-xs text-slate-300">Timer: <span id="demoTimer">29:59</span></div>
</div>
<div class="mt-4 grid md:grid-cols-2 gap-4">
<div class="space-y-3">
<div class="text-sm text-slate-300">Question 7 of 25</div>
<div class="text-slate-100 font-medium">If x + y = 12 and x - y = 4, what is the value of xy?</div>
<div class="grid grid-cols-2 gap-2">
<button class="chip rounded-lg px-3 py-2 text-left hover:bg-white/10">A. 20</button>
<button class="chip rounded-lg px-3 py-2 text-left hover:bg-white/10">B. 32</button>
<button class="chip rounded-lg px-3 py-2 text-left hover:bg-white/10">C. 16</button>
<button class="chip rounded-lg px-3 py-2 text-left hover:bg-white/10">D. 24</button>
</div>
</div>
<div class="space-y-3">
<div class="text-sm text-slate-300">Live Analytics</div>
<div class="rounded-xl overflow-hidden border border-white/10">
<canvas id="spark" height="120"></canvas>
</div>
<div class="flex items-center justify-between text-xs text-slate-300">
<span>Accuracy: <strong class="text-slate-100">78%</strong></span>
<span>Avg. Time: <strong class="text-slate-100">41s</strong></span>
<span>Rank: <strong class="text-slate-100">Top 12%</strong></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-span-12">
<div class="grid sm:grid-cols-3 gap-4">
<div class="chip rounded-2xl p-4 card-cta transition-transform">
<div class="flex items-center justify-between">
<span class="text-slate-300 text-sm">Focus Mode</span>
<span class="kbd">F</span>
</div>
<div class="mt-2 font-semibold">Block distractions</div>
</div>
<div class="chip rounded-2xl p-4 card-cta transition-transform">
<div class="flex items-center justify-between">
<span class="text-slate-300 text-sm">Review</span>
<span class="kbd">R</span>
</div>
<div class="mt-2 font-semibold">Flag questions fast</div>
</div>
<div class="chip rounded-2xl p-4 card-cta transition-transform">
<div class="flex items-center justify-between">
<span class="text-slate-300 text-sm">Themes</span>
<span class="kbd">T</span>
</div>
<div class="mt-2 font-semibold">Light, Dark, Solar</div>
</div>
</div>
</div>
</div>
<div class="absolute -top-6 -right-6 hidden md:block">
<div class="w-24 h-24 rounded-2xl bg-gradient-to-br from-primary-500/30 to-accent-500/30 blur-xl animate-float"></div>
</div>
</div>
</div>
</div>
<div class="mt-14 sm:mt-20 opacity-90">
<div class="overflow-hidden">
<div class="flex items-center gap-8 whitespace-nowrap animate-marquee">
<img src="https://dummyimage.com/120x30/ffffff/000&text=Exam+Prep" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=Uni+Tests" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=SkillUp" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=PrepLabs" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=Assessly" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=GradeGo" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=Exam+Prep" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=Uni+Tests" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=SkillUp" class="h-6 opacity-60" alt="brand"/>
<img src="https://dummyimage.com/120x30/ffffff/000&text=PrepLabs" class="h-6 opacity-60" alt="brand"/>
</div>
</div>
</div>
</div>
</section>
<section id="features" class="relative py-20 md:py-28">
<div class="absolute inset-0 pointer-events-none">
<div class="absolute top-10 left-10 w-1.5 h-1.5 rounded-full bg-white/30"></div>
<div class="absolute bottom-10 right-16 w-1.5 h-1.5 rounded-full bg-white/30"></div>
</div>
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center max-w-2xl mx-auto">
<h2 class="text-3xl md:text-4xl font-bold">Everything you need to practice smarter</h2>
<p class="text-slate-300 mt-3">Polished tools, adaptive sessions, and analytics designed to move your score.</p>
</div>
<div class="mt-12 grid md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="glass rounded-2xl p-6 hover:shadow-soft transition group">
<div class="w-11 h-11 rounded-xl bg-gradient-to-br from-primary-500 to-primary-700 grid place-items-center shadow-soft">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M4 6h16M4 12h16M4 18h7" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Real Exam Modes</h3>
<p class="text-slate-300 mt-2 text-sm">Timed, untimed, sectional, and adaptive mocks that mirror actual test interfaces.</p>
</div>
<div class="glass rounded-2xl p-6 hover:shadow-soft transition group">
<div class="w-11 h-11 rounded-xl bg-gradient-to-br from-accent-500 to-accent-700 grid place-items-center shadow-soft">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M12 6v12M6 12h12" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Smart Explanations</h3>
<p class="text-slate-300 mt-2 text-sm">Step-by-step solutions and tips tailored to your mistakes.</p>
</div>
<div class="glass rounded-2xl p-6 hover:shadow-soft transition group">
<div class="w-11 h-11 rounded-xl bg-gradient-to-br from-sky-500 to-sky-700 grid place-items-center shadow-soft">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M3 12a9 9 0 1018 0A9 9 0 003 12z" stroke="#fff" stroke-width="2"/><path d="M12 7v5l3 3" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Focus Timer</h3>
<p class="text-slate-300 mt-2 text-sm">Pomodoro sessions with auto lock to stay in the zone.</p>
</div>
<div class="glass rounded-2xl p-6 hover:shadow-soft transition group">
<div class="w-11 h-11 rounded-xl bg-gradient-to-br from-emerald-500 to-emerald-700 grid place-items-center shadow-soft">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M4 12l5 5L20 6" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Insights & Goals</h3>
<p class="text-slate-300 mt-2 text-sm">Track accuracy, time, weak topics and set weekly targets.</p>
</div>
<div class="glass rounded-2xl p-6 hover:shadow-soft transition group">
<div class="w-11 h-11 rounded-xl bg-gradient-to-br from-amber-500 to-amber-700 grid place-items-center shadow-soft">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M7 17l5-5 5 5" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Question Bank</h3>
<p class="text-slate-300 mt-2 text-sm">10k+ curated questions with difficulty tagging and bookmarking.</p>
</div>
<div class="glass rounded-2xl p-6 hover:shadow-soft transition group">
<div class="w-11 h-11 rounded-xl bg-gradient-to-br from-rose-500 to-rose-700 grid place-items-center shadow-soft">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M12 3v3M12 18v3M3 12h3M18 12h3M5 5l2 2M17 17l2 2M5 19l2-2M17 7l2-2" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</div>
<h3 class="mt-4 font-semibold text-lg">Themes & Accessibility</h3>
<p class="text-slate-300 mt-2 text-sm">Beautiful themes, keyboard shortcuts, and screen-reader support.</p>
</div>
</div>
</div>
</section>
<section id="demo" class="relative py-20">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid lg:grid-cols-2 gap-8 items-start">
<div class="glass rounded-2xl p-6 shadow-soft">
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold">Interactive Leaderboard</h3>
<div class="text-sm text-slate-300">Today</div>
</div>
<div class="mt-4">
<canvas id="chart" height="200"></canvas>
</div>
<div class="mt-4 text-sm text-slate-300">Hover to explore cohort performance. Your score is highlighted.</div>
</div>
<div class="glass rounded-2xl p-6 shadow-soft">
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold">Question Review</h3>
<div class="text-sm text-slate-300">Quick Filters</div>
</div>
<div class="mt-4 grid gap-3 sm:grid-cols-3">
<button class="chip rounded-lg px-3 py-2 text-left hover:bg-white/10">Incorrect</button>
<button class="chip rounded-lg px-3 py-2 text-left hover:bg-white/10">Unattempted</button>
<button class="chip rounded-lg px-3 py-2 text-left hover:bg-white/10">Marked</button>
</div>
<div class="mt-5 space-y-4">
<div class="chip rounded-xl p-4">
<div class="text-sm text-slate-300">Algebra • Medium</div>
<div class="mt-1 font-medium">Solve for k: 3k - 7 = 11</div>
<div class="mt-3 flex gap-2">
<span class="kbd">Reveal</span>
<span class="kbd">Explain</span>
</div>
</div>
<div class="chip rounded-xl p-4">
<div class="text-sm text-slate-300">Statistics • Hard</div>
<div class="mt-1 font-medium">Mean of first 10 odd numbers?</div>
<div class="mt-3 flex gap-2">
<span class="kbd">Reveal</span>
<span class="kbd">Explain</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="pricing" class="relative py-20 md:py-28">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center max-w-2xl mx-auto">
<h2 class="text-3xl md:text-4xl font-bold">Simple pricing, serious results</h2>
<p class="text-slate-300 mt-3">Start free. Upgrade when you’re ready to go all in.</p>
</div>
<div class="mt-12 grid md:grid-cols-3 gap-6">
<div class="glass rounded-2xl p-6">
<h3 class="font-semibold">Starter</h3>
<p class="text-slate-300 text-sm mt-1">Get a taste of the platform</p>
<div class="mt-6 flex items-end gap-1">
<span class="text-3xl font-bold">$0</span><span class="text-slate-400">/mo</span>
</div>
<ul class="mt-4 space-y-2 text-sm text-slate-200">
<li>• 5 mock tests/month</li>
<li>• Basic analytics</li>
<li>• Community support</li>
</ul>
<a href="#get-started" class="btn shine mt-6 inline-flex items-center justify-center w-full px-4 py-2 rounded-lg bg-white/10 hover:bg-white/15">Get Started</a>
</div>
<div class="glass rounded-2xl p-6 ring-1 ring-white/10 relative overflow-hidden">
<div class="absolute -top-10 -right-10 w-28 h-28 bg-gradient-to-br from-primary-500/30 to-accent-500/30 blur-xl"></div>
<div class="chip rounded-full inline-flex px-3 py-1 text-xs">Most Popular</div>
<h3 class="mt-3 font-semibold">Pro</h3>
<p class="text-slate-300 text-sm mt-1">Unlock your full potential</p>
<div class="mt-6 flex items-end gap-1">
<span class="text-3xl font-bold">$12</span><span class="text-slate-400">/mo</span>
</div>
<ul class="mt-4 space-y-2 text-sm text-slate-200">
<li>• Unlimited mocks</li>
<li>• Advanced insights</li>
<li>• Priority support</li>
</ul>
<a href="#get-started" class="btn shine mt-6 inline-flex items-center justify-center w-full px-4 py-2 rounded-lg bg-gradient-to-r from-primary-600 to-accent-600 hover:from-primary-500 hover:to-accent-500">Upgrade to Pro</a>
</div>
<div class="glass rounded-2xl p-6">
<h3 class="font-semibold">Team</h3>
<p class="text-slate-300 text-sm mt-1">For classrooms and clubs</p>
<div class="mt-6 flex items-end gap-1">
<span class="text-3xl font-bold">$49</span><span class="text-slate-400">/mo</span>
</div>
<ul class="mt-4 space-y-2 text-sm text-slate-200">
<li>• 10 seats included</li>
<li>• Group reports</li>
<li>• Admin controls</li>
</ul>
<a href="#get-started" class="btn shine mt-6 inline-flex items-center justify-center w-full px-4 py-2 rounded-lg bg-white/10 hover:bg-white/15">Contact Sales</a>
</div>
</div>
</div>
</section>
<section id="faq" class="relative py-16">
<div class="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid md:grid-cols-2 gap-6">
<div class="glass rounded-2xl p-6">
<details class="group">
<summary class="cursor-pointer list-none flex items-center justify-between">
<span class="font-semibold">Can I create custom mock tests?</span>
<span class="transition group-open:rotate-180">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M6 9l6 6 6-6" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</span>
</summary>
<p class="text-slate-300 mt-3 text-sm">Yes, choose topics, difficulty, and time limits to build personalized sessions.</p>
</details>
</div>
<div class="glass rounded-2xl p-6">
<details class="group">
<summary class="cursor-pointer list-none flex items-center justify-between">
<span class="font-semibold">Is there a refund policy?</span>
<span class="transition group-open:rotate-180">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M6 9l6 6 6-6" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</span>
</summary>
<p class="text-slate-300 mt-3 text-sm">We offer a 7-day no-questions-asked refund for new Pro subscribers.</p>
</details>
</div>
<div class="glass rounded-2xl p-6">
<details class="group">
<summary class="cursor-pointer list-none flex items-center justify-between">
<span class="font-semibold">Do you support mobile?</span>
<span class="transition group-open:rotate-180">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M6 9l6 6 6-6" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</span>
</summary>
<p class="text-slate-300 mt-3 text-sm">Absolutely. The experience is optimized for phones and tablets.</p>
</details>
</div>
<div class="glass rounded-2xl p-6">
<details class="group">
<summary class="cursor-pointer list-none flex items-center justify-between">
<span class="font-semibold">Can teachers track performance?</span>
<span class="transition group-open:rotate-180">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M6 9l6 6 6-6" stroke="#fff" stroke-width="2" stroke-linecap="round"/></svg>
</span>
</summary>
<p class="text-slate-300 mt-3 text-sm">Yes, with the Team plan teachers get group-level reports and insights.</p>
</details>
</div>
</div>
</div>
</section>
<section id="signup" class="relative py-20">
<div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="glass rounded-2xl p-6 md:p-8 shadow-soft">
<div class="ring-gradient rounded-2xl pointer-events-none"></div>
<div class="grid md:grid-cols-2 gap-6 items-center">
<div>
<h3 class="text-2xl font-bold">Ready to boost your score?</h3>
<p class="text-slate-300 mt-2">Create a free account and take your first mock in under a minute.</p>
<ul class="mt-4 space-y-2 text-sm text-slate-200">
<li>• No credit card required</li>
<li>• Cancel anytime</li>
<li>• Privacy-first</li>
</ul>
</div>
<form class="space-y-3" onsubmit="event.preventDefault(); document.getElementById('successToast').classList.remove('opacity-0','translate-y-3'); setTimeout(()=>document.getElementById('successToast').classList.add('opacity-0','translate-y-3'), 3000);">
<div>
<label class="text-sm text-slate-300">Email</label>
<input required type="email" class="mt-1 w-full px-3 py-2 rounded-lg bg-white/5 border border-white/10 focus:outline-none focus:ring-2 focus:ring-primary-600" placeholder="you@example.com"/>
</div>
<div>
<label class="text-sm text-slate-300">Password</label>
<input required type="password" minlength="6" class="mt-1 w-full px-3 py-2 rounded-lg bg-white/5 border border-white/10 focus:outline-none focus:ring-2 focus:ring-primary-600" placeholder="••••••••"/>
</div>
<button class="btn shine w-full px-4 py-2 rounded-lg bg-gradient-to-r from-primary-600 to-accent-600 hover:from-primary-500 hover:to-accent-500 font-semibold">Create Account</button>
<p class="text-xs text-slate-400">By signing up you agree to our Terms and Privacy Policy.</p>
</form>
</div>
</div>
</div>
<div id="successToast" class="pointer-events-none fixed left-1/2 -translate-x-1/2 bottom-6 chip rounded-xl px-4 py-3 text-sm flex items-center gap-3 transition opacity-0 translate-y-3">
<span class="w-2 h-2 rounded-full bg-emerald-400 shadow-[0_0_12px_rgba(52,211,153,.9)]"></span>
Account created! Check your inbox to verify.
</div>
</section>
<footer class="border-t border-white/10 py-10">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col md:flex-row items-center justify-between gap-4">
<div class="flex items-center gap-3">
<div class="w-8 h-8 rounded-lg bg-gradient-to-br from-primary-500 via-accent-500 to-sky-400 grid place-items-center">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M5 12h14M12 5l7 7-7 7" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<span class="font-semibold">Mockly</span>
<span class="text-slate-400 text-sm">© <span id="year"></span></span>
</div>
<nav class="flex items-center gap-6 text-sm">
<a href="#" class="text-slate-300 hover:text-white">Privacy</a>
<a href="#" class="text-slate-300 hover:text-white">Terms</a>
<a href="#" class="text-slate-300 hover:text-white">Contact</a>
</nav>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Year
document.getElementById('year').textContent = new Date().getFullYear();
// Demo timer countdown (static visual)
(function(){
let secs = 29*60 + 59;
const el = document.getElementById('demoTimer');
setInterval(() => {
secs = Math.max(0, secs - 1);
const m = String(Math.floor(secs/60)).padStart(2,'0');
const s = String(secs%60).padStart(2,'0');
el.textContent = m + ':' + s;
}, 1000);
})();
// Sparkline animation
(function(){
const canvas = document.getElementById('spark');
if (!canvas) return;
const ctx = canvas.getContext('2d');
const dpr = window.devicePixelRatio || 1;
const width = canvas.clientWidth;
const height = canvas.clientHeight;
canvas.width = width * dpr;
canvas.height = height * dpr;
ctx.scale(dpr, dpr);
const points = Array.from({length: 40}, (_,i)=>({ x: (i/(40-1))*width, y: height/2 + (Math.sin(i*.6)+Math.random()-.5)*height*.2 }));
let t = 0;
function draw() {
t += 0.02;
ctx.clearRect(0,0,width,height);
// gradient background
const grad = ctx.createLinearGradient(0,0,width,0);
grad.addColorStop(0,'rgba(99,102,241,0.12)');
grad.addColorStop(1,'rgba(217,70,239,0.12)');
ctx.fillStyle = grad;
ctx.fillRect(0,0,width,height);
// line
ctx.beginPath();
ctx.moveTo(0, height/2);
points.forEach((p,i)=>{
const wobble = Math.sin((i*.6)+t)*8;
const y = p.y + wobble;
if (i===0) ctx.moveTo(p.x, y);
else ctx.lineTo(p.x, y);
});
ctx.strokeStyle = 'rgba(255,255,255,0.85)';
ctx.lineWidth = 2;
ctx.shadowColor = 'rgba(99,102,241,0.4)';
ctx.shadowBlur = 8;
ctx.stroke();
ctx.shadowBlur = 0;
// fill
ctx.lineTo(width, height);
ctx.lineTo(0, height);
ctx.closePath();
const fill = ctx.createLinearGradient(0,0,0,height);
fill.addColorStop(0,'rgba(99,102,241,0.25)');
fill.addColorStop(1,'rgba(99,102,241,0.02)');
ctx.fillStyle = fill;
ctx.fill();
requestAnimationFrame(draw);
}
draw();
window.addEventListener('resize', ()=>location.reload());
})();
// Chart.js demo
(function(){
const el = document.getElementById('chart');
if (!el) return;
const ctx = el.getContext('2d');
const gradient = ctx.createLinearGradient(0,0,0,200);
gradient.addColorStop(0,'rgba(99,102,241,0.4)');
gradient.addColorStop(1,'rgba(99,102,241,0.05)');
const my = new Chart(ctx, {
type: 'line',
data: {
labels: Array.from({length: 12}, (_,i)=>`#${i+1}`),
datasets: [{
label: 'Your Score',
data: [62, 64, 66, 70, 68, 72, 74, 77, 79, 81, 83, 86],
borderColor: '#6366f1',
backgroundColor: gradient,
tension: .35,
fill: true,
pointRadius: 0
},
{
label: 'Cohort Avg',
data: [60, 61, 62, 63, 64, 65, 66, 67, 67, 68, 69, 70],
borderColor: 'rgba(255,255,255,0.5)',
borderDash: [4,4],
pointRadius: 0,
tension: .35
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: { display: false },
tooltip: {
backgroundColor: 'rgba(15,23,42,0.9)',
borderColor: 'rgba(255,255,255,0.1)',
borderWidth: 1,
padding: 10,
displayColors: false
}
},
scales: {
x: { ticks: { color: 'rgba(255,255,255,0.6)' }, grid: { color: 'rgba(255,255,255,0.06)' } },
y: { ticks: { color: 'rgba(255,255,255,0.6)' }, grid: { color: 'rgba(255,255,255,0.06)' } }
}
}
});
// Resize observer to keep height nice inside glass card
const ro = new ResizeObserver(() => { my.resize(); });
ro.observe(el.parentElement);
})();
// Watch demo modal (simple)
(function(){
const btn = document.getElementById('watchDemo');
if (!btn) return;
let modal;
btn.addEventListener('click', () => {
if (!modal) {
modal = document.createElement('div');
modal.className = 'fixed inset-0 z-[60] flex items-center justify-center';
modal.innerHTML = `
<div class="absolute inset-0 bg-black/60" data-close></div>
<div class="glass rounded-2xl p-4 md:p-6 max-w-2xl w-[92%] relative animate-fadeUp">
<button class="absolute top-3 right-3 kbd" data-close>×</button>
<h3 class="text-xl font-semibold">Platform Demo</h3>
<p class="text-slate-300 mt-1 text-sm">A quick look at mock creation, taking tests, and reviewing insights.</p>
<div class="mt-4 rounded-xl overflow-hidden border border-white/10 aspect-video bg-black/40 grid place-items-center">
<svg width="72" height="72" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="10" stroke="white" stroke-width="1.6" opacity=".5"/>
<path d="M10 8l6 4-6 4V8z" fill="white"/>
</svg>
</div>
</div>
`;
document.body.appendChild(modal);
modal.addEventListener('click', (e)=>{ if (e.target.hasAttribute('data-close')) modal.remove(); modal=null; });
}
});
})();
// Keyboard shortcut hint (Cmd/Ctrl+K)
(function(){
const toggle = document.getElementById('themeToggle');
if (!toggle) return;
const isMac = /Mac|iPod|iPhone|iPad/.test(navigator.platform);
toggle.querySelector('span.opacity-70').textContent = isMac ? '⌘K' : 'Ctrl K';
let theme = 'dark';
toggle.addEventListener('click',() => {
theme = theme === 'dark' ? 'light' : 'dark';
document.documentElement.style.colorScheme = theme;
document.body.classList.toggle('bg-white', theme==='light');
document.body.classList.toggle('text-slate-900', theme==='light');
});
document.addEventListener('keydown', (e)=>{
if ((isMac && e.metaKey && e.key.toLowerCase()==='k') || (!isMac && e.ctrlKey && e.key.toLowerCase()==='k')) {
e.preventDefault();
toggle.click();
}
});
})();
</script>
</body>
</html>
|
You are an expert web developer and designer specializing in modern websites. Create a complete, working HTML page with embedded CSS and JavaScript if needed. Feel free to use lightweight libraries like Tailwind CSS to enhance the design as long as they can be rendered in an iframe.
Requirements:
1. Create a fully functional, modern, and responsive website design
2. Use only HTML, CSS, and JavaScript, but feel free to use libraries like Tailwind CSS to make the design better. Libraries such as ThreeJS, react three fiber, drei, @react-three/postprocessing, @react-three/cannon, d3, and recharts as additional libraries can be imported.
3. Include all styles inline within <style> tags
4. Focus on clean layouts, typography, and user experience
5. Implement modern web design trends (gradients, shadows, smooth animations)
6. Ensure excellent mobile responsiveness
7. Include interactive elements where appropriate
8. Make it production-ready and professional
9. You must include all relevant script tags for libraries to work properly.
Return ONLY the complete HTML code, starting with <!DOCTYPE html> and ending with </html>. Do not include any explanations or markdown formatting.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.