CoolFace
Apppublic

buddyplease/proptech-connect-hub

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
register.html118 linesDownload Raw Back to root
1<!DOCTYPE html>2<html lang="en">3<head>4    <meta charset="UTF-8">5    <meta name="viewport" content="width=device-width, initial-scale=1.0">6    <title>Register - PropTech Connect</title>7    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">8    <script src="https://cdn.tailwindcss.com"></script>9    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>10    <script src="https://unpkg.com/feather-icons"></script>11    <style>12        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');13        body { font-family: 'Inter', sans-serif; }14        .gradient-bg { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%); }15    </style>16</head>17<body class="bg-gray-50 min-h-screen flex items-center justify-center py-8">18    <div class="max-w-md w-full mx-4">19        <div class="bg-white rounded-2xl shadow-xl p-8">20            <div class="text-center mb-8">21                <div class="flex items-center justify-center mb-4">22                    <i data-feather="home" class="h-8 w-8 text-blue-700"></i>23                    <span class="ml-2 text-2xl font-bold text-gray-900">PropTech Connect</span>24                </div>25                <h2 class="text-2xl font-bold text-gray-900">Create Account</h2>26                <p class="text-gray-600">Join the real estate revolution</p>27            </div>28            29            <form id="registerForm" class="space-y-6">30                <div class="grid grid-cols-2 gap-4">31                    <div>32                        <label for="firstName" class="block text-sm font-medium text-gray-700 mb-2">First Name</label>33                        <input type="text" id="firstName" name="firstName" required 34                               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"35                               placeholder="First name">36                    </div>37                    <div>38                        <label for="lastName" class="block text-sm font-medium text-gray-700 mb-2">Last Name</label>39                        <input type="text" id="lastName" name="lastName" required 40                               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"41                               placeholder="Last name">42                    </div>43                </div>44                45                <div>46                    <label for="email" class="block text-sm font-medium text-gray-700 mb-2">Email Address</label>47                    <input type="email" id="email" name="email" required 48                           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"49                           placeholder="Enter your email">50                </div>51                52                <div>53                    <label for="phone" class="block text-sm font-medium text-gray-700 mb-2">Phone Number</label>54                    <input type="tel" id="phone" name="phone" required 55                           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"56                           placeholder="+971 50 123 4567">57                </div>58                59                <div>60                    <label for="password" class="block text-sm font-medium text-gray-700 mb-2">Password</label>61                    <input type="password" id="password" name="password" required 62                           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"63                           placeholder="Create a password">64                </div>65                66                <div>67                    <label for="confirmPassword" class="block text-sm font-medium text-gray-700 mb-2">Confirm Password</label>68                    <input type="password" id="confirmPassword" name="confirmPassword" required 69                           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"70                           placeholder="Confirm your password">71                </div>72                73                <div class="flex items-center">74                    <input type="checkbox" id="terms" name="terms" required 75                           class="w-4 h-4 text-blue-700 border-gray-300 rounded focus:ring-blue-700">76                    <label for="terms" class="ml-2 text-sm text-gray-600">77                        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>78                    </label>79                </div>80                81                <button type="submit" 82                        class="w-full bg-blue-700 text-white py-3 px-4 rounded-lg font-semibold hover:bg-blue-800 transition duration-300">83                    Create Account84                </button>85            </form>86            87            <div class="mt-6 text-center">88                <p class="text-gray-600">Already have an account? 89                    <a href="login.html" class="text-blue-700 font-semibold hover:text-blue-800">Sign in</a>90                </p>91            </div>92        </div>93    </div>94 95    <script>96        document.getElementById('registerForm').addEventListener('submit', function(e) {97            e.preventDefault();98            99            const password = document.getElementById('password').value;100            const confirmPassword = document.getElementById('confirmPassword').value;101            102            if (password !== confirmPassword) {103                alert('Passwords do not match');104                return;105            }106            107            if (document.getElementById('terms').checked) {108                // Store user session109                localStorage.setItem('userLoggedIn', 'true');110                localStorage.setItem('userEmail', document.getElementById('email').value);111                window.location.href = 'dashboard.html';112            }113        });114 115        feather.replace();116    </script>117</body>118</html>