usis / login.html
danielmkinga92's picture
Update the system so that it will work. - Initial Deployment
8788b3a verified
Raw History Blame Contribute Delete
6.15 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login | UATC USIS</title>
<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>
.login-bg {
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('http://static.photos/education/1200x630/1');
background-size: cover;
background-position: center;
}
.login-card {
backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.85);
}
</style>
</head>
<body class="h-screen flex items-center justify-center login-bg">
<div class="max-w-md w-full mx-4 login-card rounded-xl shadow-2xl overflow-hidden">
<div class="p-8">
<div class="text-center mb-8">
<div class="flex justify-center mb-4">
<i data-feather="book-open" class="w-12 h-12 text-blue-600"></i>
</div>
<h1 class="text-3xl font-bold text-gray-800 mb-2">UATC USIS</h1>
<p class="text-gray-600">Student Information System</p>
</div>
<form class="space-y-6" action="login_process.php" method="POST">
<div>
<label for="username" class="block text-sm font-medium text-gray-700 mb-1">Username</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i data-feather="user" class="h-5 w-5 text-gray-400"></i>
</div>
<input id="username" name="username" type="text" required class="pl-10 w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500" placeholder="Enter your username">
</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 data-feather="lock" class="h-5 w-5 text-gray-400"></i>
</div>
<input id="password" name="password" type="password" required class="pl-10 w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500" placeholder="Enter your password">
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
</div>
<div class="text-sm">
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">Forgot password?</a>
</div>
</div>
<div>
<button type="submit" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-lg shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Sign in
</button>
</div>
</form>
<div class="mt-6">
<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-white text-gray-500">Or continue with</span>
</div>
</div>
<div class="mt-6 grid grid-cols-2 gap-3">
<div>
<button type="button" onclick="setRole('student')" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-lg shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<i data-feather="user" class="h-5 w-5"></i>
<span class="ml-2">Student</span>
</button>
</div>
<div>
<button type="button" onclick="setRole('lecturer')" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-lg shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<i data-feather="book" class="h-5 w-5"></i>
<span class="ml-2">Lecturer</span>
</button>
</div>
</div>
</div>
</div>
<div class="px-8 py-4 bg-gray-50 border-t border-gray-200 text-center">
<p class="text-xs text-gray-500">
&copy; 2023 UATC University. All rights reserved.
</p>
</div>
</div>
<script>
feather.replace();
function setRole(role) {
// Create a hidden input for role if it doesn't exist
if (!document.getElementById('roleInput')) {
const roleInput = document.createElement('input');
roleInput.type = 'hidden';
roleInput.name = 'role';
roleInput.id = 'roleInput';
document.querySelector('form').appendChild(roleInput);
}
document.getElementById('roleInput').value = role;
document.querySelector('form').submit();
}
</script>
</body>
</html>