Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>QR Menu Pro | Sign Up</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> | |
.gradient-bg { | |
background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%); | |
} | |
.feature-card { | |
backdrop-filter: blur(10px); | |
background: rgba(255, 255, 255, 0.1); | |
border: 1px solid rgba(255, 255, 255, 0.2); | |
} | |
.input-focus:focus { | |
box-shadow: 0 0 0 3px rgba(107, 115, 255, 0.3); | |
} | |
.shake { | |
animation: shake 0.5s; | |
} | |
@keyframes shake { | |
0%, 100% { transform: translateX(0); } | |
20%, 60% { transform: translateX(-5px); } | |
40%, 80% { transform: translateX(5px); } | |
} | |
</style> | |
</head> | |
<body class="bg-gray-50 min-h-screen flex items-center justify-center p-4"> | |
<div class="max-w-4xl w-full bg-white rounded-2xl shadow-xl overflow-hidden flex flex-col md:flex-row"> | |
<!-- Left Side - Visual Section --> | |
<div class="gradient-bg text-white p-10 md:w-1/2 flex flex-col justify-center items-center text-center"> | |
<div class="mb-8"> | |
<div class="flex items-center justify-center mb-4"> | |
<div class="bg-white rounded-xl p-3 shadow-lg"> | |
<i class="fas fa-qrcode text-4xl text-indigo-600"></i> | |
</div> | |
<h1 class="text-3xl font-bold ml-3">QRMenu<span class="text-indigo-200">Pro</span></h1> | |
</div> | |
<p class="opacity-90 text-lg">The complete digital menu solution for modern restaurants</p> | |
</div> | |
<div class="mt-8 w-full max-w-xs"> | |
<div class="feature-card p-4 rounded-xl mb-4 transition hover:scale-[1.02]"> | |
<div class="flex items-center mb-2"> | |
<i class="fas fa-bolt text-yellow-300 mr-2"></i> | |
<span class="font-medium">Instant Setup</span> | |
</div> | |
<p class="text-sm opacity-90">Get your digital menu running in minutes</p> | |
</div> | |
<div class="bg-white bg-opacity-20 p-4 rounded-lg mb-4"> | |
<div class="flex items-center mb-2"> | |
<i class="fas fa-chart-line text-green-300 mr-2"></i> | |
<span class="font-medium">Real-time Analytics</span> | |
</div> | |
<p class="text-sm opacity-90">Track customer interactions and preferences</p> | |
</div> | |
<div class="bg-white bg-opacity-20 p-4 rounded-lg"> | |
<div class="flex items-center mb-2"> | |
<i class="fas fa-mobile-alt text-blue-200 mr-2"></i> | |
<span class="font-medium">Mobile Optimized</span> | |
</div> | |
<p class="text-sm opacity-90">Works perfectly on any device</p> | |
</div> | |
</div> | |
</div> | |
<!-- Right Side - Form Section --> | |
<div class="p-8 md:p-10 md:w-1/2"> | |
<h2 class="text-3xl font-bold text-gray-900 mb-1">Get Started</h2> | |
<p class="text-gray-600 mb-6">Start your 14-day free trial. No credit card required.</p> | |
<div class="flex space-x-4 mb-6"> | |
<button class="flex-1 flex items-center justify-center py-2 px-4 border border-gray-300 rounded-lg hover:bg-gray-50 transition"> | |
<i class="fab fa-google text-red-500 mr-2"></i> | |
<span>Google</span> | |
</button> | |
<button class="flex-1 flex items-center justify-center py-2 px-4 border border-gray-300 rounded-lg hover:bg-gray-50 transition"> | |
<i class="fab fa-apple text-gray-900 mr-2"></i> | |
<span>Apple</span> | |
</button> | |
</div> | |
<div class="relative mb-6"> | |
<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-white text-gray-500">Or continue with email</span> | |
</div> | |
</div> | |
<form id="signupForm" class="space-y-6"> | |
<div> | |
<label for="name" class="block text-sm font-medium text-gray-700 mb-1">Full Name</label> | |
<div class="relative"> | |
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
<i class="fas fa-user text-gray-400"></i> | |
</div> | |
<input type="text" id="name" name="name" required | |
class="input-focus pl-10 w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition" | |
placeholder="John Doe"> | |
</div> | |
</div> | |
<div> | |
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label> | |
<div class="relative"> | |
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
<i class="fas fa-envelope text-gray-400"></i> | |
</div> | |
<input type="email" id="email" name="email" required | |
class="input-focus pl-10 w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition" | |
placeholder="[email protected]"> | |
</div> | |
</div> | |
<div> | |
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label> | |
<div class="relative"> | |
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
<i class="fas fa-lock text-gray-400"></i> | |
</div> | |
<input type="password" id="password" name="password" required minlength="8" | |
class="input-focus pl-10 w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition" | |
placeholder="••••••••"> | |
<div class="absolute inset-y-0 right-0 pr-3 flex items-center"> | |
<button type="button" class="text-gray-400 hover:text-gray-600 focus:outline-none toggle-password"> | |
<i class="fas fa-eye"></i> | |
</button> | |
</div> | |
</div> | |
<p class="mt-1 text-xs text-gray-500">Must be at least 8 characters</p> | |
</div> | |
<div> | |
<label for="confirmPassword" class="block text-sm font-medium text-gray-700 mb-1">Confirm Password</label> | |
<div class="relative"> | |
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
<i class="fas fa-lock text-gray-400"></i> | |
</div> | |
<input type="password" id="confirmPassword" name="confirmPassword" required minlength="8" | |
class="input-focus pl-10 w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition" | |
placeholder="••••••••"> | |
<div class="absolute inset-y-0 right-0 pr-3 flex items-center"> | |
<button type="button" class="text-gray-400 hover:text-gray-600 focus:outline-none toggle-password"> | |
<i class="fas fa-eye"></i> | |
</button> | |
</div> | |
</div> | |
</div> | |
<div class="flex items-center"> | |
<input id="terms" name="terms" type="checkbox" required | |
class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded"> | |
<label for="terms" class="ml-2 block text-sm text-gray-700"> | |
I agree to the <a href="#" class="text-blue-600 hover:text-blue-500">Terms of Service</a> and <a href="#" class="text-blue-600 hover:text-blue-500">Privacy Policy</a> | |
</label> | |
</div> | |
<button type="submit" | |
class="gradient-bg w-full text-white py-3 px-4 rounded-lg font-medium hover:opacity-90 transition focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 shadow-lg hover:shadow-indigo-500/20"> | |
Get Started Now | |
</button> | |
<div class="text-center text-sm text-gray-600"> | |
Already have an account? <a href="#" class="text-blue-600 hover:text-blue-500 font-medium">Sign in</a> | |
</div> | |
</form> | |
</div> | |
</div> | |
<script> | |
document.addEventListener('DOMContentLoaded', function() { | |
// Toggle password visibility | |
const togglePasswordButtons = document.querySelectorAll('.toggle-password'); | |
togglePasswordButtons.forEach(button => { | |
button.addEventListener('click', function() { | |
const input = this.closest('.relative').querySelector('input'); | |
const icon = this.querySelector('i'); | |
if (input.type === 'password') { | |
input.type = 'text'; | |
icon.classList.replace('fa-eye', 'fa-eye-slash'); | |
} else { | |
input.type = 'password'; | |
icon.classList.replace('fa-eye-slash', 'fa-eye'); | |
} | |
}); | |
}); | |
// Form validation | |
const form = document.getElementById('signupForm'); | |
form.addEventListener('submit', function(e) { | |
e.preventDefault(); | |
const name = document.getElementById('name').value.trim(); | |
const email = document.getElementById('email').value.trim(); | |
const password = document.getElementById('password').value; | |
const confirmPassword = document.getElementById('confirmPassword').value; | |
const terms = document.getElementById('terms').checked; | |
let isValid = true; | |
// Reset error states | |
document.querySelectorAll('input').forEach(input => { | |
input.classList.remove('border-red-500', 'shake'); | |
}); | |
// Validate name | |
if (name === '') { | |
document.getElementById('name').classList.add('border-red-500', 'shake'); | |
isValid = false; | |
} | |
// Validate email | |
if (email === '' || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) { | |
document.getElementById('email').classList.add('border-red-500', 'shake'); | |
isValid = false; | |
} | |
// Validate password | |
if (password.length < 8) { | |
document.getElementById('password').classList.add('border-red-500', 'shake'); | |
isValid = false; | |
} | |
// Validate password match | |
if (password !== confirmPassword) { | |
document.getElementById('confirmPassword').classList.add('border-red-500', 'shake'); | |
isValid = false; | |
} | |
// Validate terms | |
if (!terms) { | |
document.getElementById('terms').classList.add('border-red-500', 'shake'); | |
isValid = false; | |
} | |
if (isValid) { | |
// Simulate form submission | |
const submitButton = form.querySelector('button[type="submit"]'); | |
submitButton.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Creating account...'; | |
submitButton.disabled = true; | |
setTimeout(() => { | |
alert('Account created successfully! Redirecting to dashboard...'); | |
// In a real app, you would redirect to the dashboard | |
// window.location.href = '/dashboard'; | |
}, 1500); | |
} | |
}); | |
// Remove shake animation after it ends | |
document.querySelectorAll('input').forEach(input => { | |
input.addEventListener('animationend', function() { | |
this.classList.remove('shake'); | |
}); | |
}); | |
}); | |
</script> | |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=mesy10/qr-menu-sign-up" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
</html> |