Spaces:
Configuration error
Configuration error
File size: 4,838 Bytes
fb3d3c6 6996185 fb3d3c6 6996185 fb3d3c6 6996185 fb3d3c6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register | Lost & Found Tracker Pro</title>
<link rel="stylesheet" href="style.css">
<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>
</head>
<body class="bg-gray-50 min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-grow flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="w-full max-w-md space-y-8">
<div class="text-center">
<h2 class="mt-6 text-3xl font-bold text-gray-900">Create a new account</h2>
<p class="mt-2 text-sm text-gray-600">
Already have an account? <a href="/login.html" class="font-medium text-primary-600 hover:text-primary-500">Sign in</a>
</p>
</div>
<form class="mt-8 space-y-6" action="#" method="POST">
<div class="rounded-md shadow-sm space-y-4">
<div>
<label for="username" class="block text-sm font-medium text-gray-700 mb-1">Username</label>
<input id="username" name="username" type="text" autocomplete="username" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-primary-500 focus:border-primary-500">
</div>
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email address</label>
<input id="email" name="email" type="email" autocomplete="email" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-primary-500 focus:border-primary-500">
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
<input id="password" name="password" type="password" autocomplete="new-password" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-primary-500 focus:border-primary-500">
</div>
<div>
<label for="confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Confirm Password</label>
<input id="confirm-password" name="confirm-password" type="password" autocomplete="new-password" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-primary-500 focus:border-primary-500">
</div>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="terms" name="terms" type="checkbox" required
class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded">
</div>
<div class="ml-3 text-sm">
<label for="terms" class="font-medium text-gray-700">I agree to the <a href="/terms.html" class="text-primary-600 hover:text-primary-500">Terms of Service</a> and <a href="/privacy.html" class="text-primary-600 hover:text-primary-500">Privacy Policy</a></label>
</div>
</div>
<div>
<button type="submit"
class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
<span class="confirm-text">Register</span>
<span class="confirm-icon hidden ml-2">
<i data-feather="check-circle"></i>
</span>
</button>
</div>
</form>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
// Add confirmation animation to register button
document.querySelector('form').addEventListener('submit', function(e) {
e.preventDefault();
const btn = this.querySelector('button[type="submit"]');
const confirmText = btn.querySelector('.confirm-text');
const confirmIcon = btn.querySelector('.confirm-icon');
btn.disabled = true;
confirmText.textContent = 'Registered!';
confirmIcon.classList.remove('hidden');
// Simulate registration request
setTimeout(() => {
window.location.href = '/dashboard.html';
}, 1500);
});
</script>
</body>
</html> |