proptech-connect-hub / register.html
buddyplease's picture
fix errors and any bugs, Fix Functionality and responsiveness make it full stacked and miulti page. Add colors royal blue.
19ed353 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register - PropTech Connect</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body { font-family: 'Inter', sans-serif; }
.gradient-bg { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%); }
</style>
</head>
<body class="bg-gray-50 min-h-screen flex items-center justify-center py-8">
<div class="max-w-md w-full mx-4">
<div class="bg-white rounded-2xl shadow-xl p-8">
<div class="text-center mb-8">
<div class="flex items-center justify-center mb-4">
<i data-feather="home" class="h-8 w-8 text-blue-700"></i>
<span class="ml-2 text-2xl font-bold text-gray-900">PropTech Connect</span>
</div>
<h2 class="text-2xl font-bold text-gray-900">Create Account</h2>
<p class="text-gray-600">Join the real estate revolution</p>
</div>
<form id="registerForm" class="space-y-6">
<div class="grid grid-cols-2 gap-4">
<div>
<label for="firstName" class="block text-sm font-medium text-gray-700 mb-2">First Name</label>
<input type="text" id="firstName" name="firstName" required
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-700 focus:border-transparent transition duration-300"
placeholder="First name">
</div>
<div>
<label for="lastName" class="block text-sm font-medium text-gray-700 mb-2">Last Name</label>
<input type="text" id="lastName" name="lastName" required
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-700 focus:border-transparent transition duration-300"
placeholder="Last name">
</div>
</div>
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-2">Email Address</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-blue-700 focus:border-transparent transition duration-300"
placeholder="Enter your email">
</div>
<div>
<label for="phone" class="block text-sm font-medium text-gray-700 mb-2">Phone Number</label>
<input type="tel" id="phone" name="phone" required
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-700 focus:border-transparent transition duration-300"
placeholder="+971 50 123 4567">
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-2">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-blue-700 focus:border-transparent transition duration-300"
placeholder="Create a password">
</div>
<div>
<label for="confirmPassword" class="block text-sm font-medium text-gray-700 mb-2">Confirm Password</label>
<input type="password" id="confirmPassword" name="confirmPassword" required
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-700 focus:border-transparent transition duration-300"
placeholder="Confirm your password">
</div>
<div class="flex items-center">
<input type="checkbox" id="terms" name="terms" required
class="w-4 h-4 text-blue-700 border-gray-300 rounded focus:ring-blue-700">
<label for="terms" class="ml-2 text-sm text-gray-600">
I agree to the <a href="#" class="text-blue-700 hover:text-blue-800">Terms of Service</a> and <a href="#" class="text-blue-700 hover:text-blue-800">Privacy Policy</a>
</label>
</div>
<button type="submit"
class="w-full bg-blue-700 text-white py-3 px-4 rounded-lg font-semibold hover:bg-blue-800 transition duration-300">
Create Account
</button>
</form>
<div class="mt-6 text-center">
<p class="text-gray-600">Already have an account?
<a href="login.html" class="text-blue-700 font-semibold hover:text-blue-800">Sign in</a>
</p>
</div>
</div>
</div>
<script>
document.getElementById('registerForm').addEventListener('submit', function(e) {
e.preventDefault();
const password = document.getElementById('password').value;
const confirmPassword = document.getElementById('confirmPassword').value;
if (password !== confirmPassword) {
alert('Passwords do not match');
return;
}
if (document.getElementById('terms').checked) {
// Store user session
localStorage.setItem('userLoggedIn', 'true');
localStorage.setItem('userEmail', document.getElementById('email').value);
window.location.href = 'dashboard.html';
}
});
feather.replace();
</script>
</body>
</html>