undefined / signup.html
SameerArz's picture
You are VibeCoder — a full-stack production AI that builds modern, mobile-first, privacy-respecting web apps. Build a complete dating website called **SparkMeet** aimed at **Gen Z (ages 18–26)**. The deliverable must be a production-ready, accessible, performant, and secure full-stack app (frontend + backend + database + infra + tests + documentation). Use modern tech: React + TypeScript (Next.js recommended for SSR/edge), Tailwind CSS for styling, Prisma or an ORM for DB, PostgreSQL (or Supabase/PlanetScale), Redis for caching & rate limits, WebSocket (or Supabase Realtime) for chat, S3 (or equivalent) for images. Provide a runnable repo layout, README, and end-to-end tests.
d82c543 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up - SparkConnect</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.btn-primary {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.btn-primary:hover {
background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}
</style>
</head>
<body class="bg-gray-50 min-h-screen font-sans">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<div class="max-w-6xl mx-auto px-4">
<div class="flex justify-between items-center py-4">
<a href="index.html" class="flex items-center space-x-2">
<span class="text-2xl font-bold bg-gradient-to-r from-purple-600 to-pink-500 bg-clip-text text-transparent">SparkConnect</span>
</a>
<a href="login.html" class="text-gray-600 hover:text-purple-600 font-medium">Log In</a>
</div>
</div>
</nav>
<!-- Signup Form -->
<div class="min-h-screen flex items-center justify-center px-4 py-12">
<div class="max-w-md w-full space-y-8">
<div class="text-center">
<h2 class="text-3xl font-bold text-gray-900 mb-2">Find Your Vibe ✨</h2>
<p class="text-gray-600">Join thousands of people finding authentic connections</p>
</div>
<!-- OAuth Buttons -->
<div class="space-y-4">
<button class="w-full flex items-center justify-center px-4 py-3 border border-gray-300 rounded-lg shadow-sm bg-white text-gray-700 hover:bg-gray-50 transition-colors">
<i data-feather="mail" class="w-5 h-5 mr-3"></i>
Continue with Google
</button>
<button class="w-full flex items-center justify-center px-4 py-3 border border-gray-300 rounded-lg shadow-sm bg-white text-gray-700 hover:bg-gray-50 transition-colors">
<i data-feather="smartphone" class="w-5 h-5 mr-3"></i>
Continue with Apple
</button>
</div>
<div class="relative">
<div class="absolute inset-0 flex items-center">
<div class="w-full border-t border-gray-300"></div>
</div>
<div class="relative flex justify-center text-sm">
<span class="px-2 bg-gray-50 text-gray-500">Or continue with email</span>
</div>
</div>
<form class="space-y-6" id="signup-form">
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
<input type="email" id="email" name="email" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500 transition-colors" placeholder="you@example.com">
</div>
<div>
<label for="dob" class="block text-sm font-medium text-gray-700 mb-1">Date of Birth</label>
<input type="date" id="dob" name="dob" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500 transition-colors">
<p class="text-xs text-gray-500 mt-1">You must be 18 or older to join</p>
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
<input type="password" id="password" name="password" required class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500 transition-colors" placeholder="Create a strong password">
<div class="mt-2 space-y-1">
<div class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
<span class="text-xs text-gray-600">At least 8 characters</span>
</div>
<div class="flex items-center">
<i data-feather="check" class="w-4 h-4 text-green-500 mr-2"></i>
<span class="text-xs text-gray-600">Mix of letters and numbers</span>
</div>
</div>
</div>
<div class="flex items-center">
<input type="checkbox" id="terms" name="terms" required class="w-4 h-4 text-purple-600 border-gray-300 rounded focus:ring-purple-500">
<label for="terms" class="ml-2 block text-sm text-gray-700">
I agree to the <a href="#" class="text-purple-600 hover:text-purple-500">Terms of Service</a> and <a href="#" class="text-purple-600 hover:text-purple-500">Privacy Policy</a>
</label>
</div>
<button type="submit" class="w-full btn-primary text-white py-3 px-4 rounded-lg font-medium hover:shadow-lg transition-all duration-300">
Create Account
</button>
</form>
<div class="text-center">
<p class="text-sm text-gray-600">
Already have an account?
<a href="login.html" class="font-medium text-purple-600 hover:text-purple-500">Log in</a>
</p>
</div>
</div>
</div>
<!-- Age Verification Modal -->
<div id="age-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-xl max-w-sm w-full p-6 text-center">
<div class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100 mb-4">
<i data-feather="alert-triangle" class="h-6 w-6 text-red-600"></i>
</div>
<h2 class="text-xl font-bold mb-2">Age Restriction</h2>
<p class="text-gray-600 mb-6">You must be 18 or older to use SparkConnect. Please come back when you're older!</p>
<button onclick="closeAgeModal()" class="px-6 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors">
Understood
</button>
</div>
</div>
<script>
feather.replace();
const signupForm = document.getElementById('signup-form');
const ageModal = document.getElementById('age-modal');
function closeAgeModal() {
ageModal.classList.add('hidden');
}
signupForm.addEventListener('submit', async (e) => {
e.preventDefault();
const email = document.getElementById('email').value;
const dob = document.getElementById('dob').value;
const password = document.getElementById('password').value;
// Age verification
const birthDate = new Date(dob);
const today = new Date();
const age = today.getFullYear() - birthDate.getFullYear();
const monthDiff = today.getMonth() - birthDate.getMonth();
if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate())) {
age--;
}
if (age < 18) {
ageModal.classList.remove('hidden');
return;
}
// Simulate signup process
const submitBtn = signupForm.querySelector('button[type="submit"]');
const originalText = submitBtn.textContent;
submitBtn.textContent = 'Creating account...';
submitBtn.disabled = true;
// In a real app, this would be an API call
setTimeout(() => {
// Redirect to profile builder
window.location.href = 'profile-builder.html';
}, 2000);
});
</script>
</body>
</html>