mirror of
https://github.com/ibratabian17/OpenParty.git
synced 2026-01-15 14:22:54 -03:00
100 lines
4.2 KiB
HTML
100 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>OpenParty Admin Panel - Login</title>
|
|
<!-- Tailwind CSS CDN -->
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<!-- Font Awesome -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<!-- Google Fonts: Inter -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
|
|
<script>
|
|
tailwind.config = {
|
|
darkMode: 'class',
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
primary: '#0f172a', // Dark blue/slate
|
|
secondary: '#1e293b', // Lighter blue/slate
|
|
tertiary: '#334155', // Even lighter blue/slate
|
|
accent: '#3b82f6', // Bright blue
|
|
success: '#10b981', // Green
|
|
warning: '#f59e0b', // Amber
|
|
error: '#ef4444', // Red
|
|
info: '#06b6d4' // Cyan
|
|
},
|
|
fontFamily: {
|
|
sans: ['Inter', 'sans-serif'],
|
|
mono: ['Fira Code', 'monospace']
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
/* Custom animations */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(-10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.animate-fadeIn {
|
|
animation: fadeIn 0.5s ease-out forwards;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-primary min-h-screen flex items-center justify-center p-4 font-sans text-white">
|
|
<div class="animate-fadeIn bg-secondary rounded-lg shadow-xl w-full max-w-md p-8 border border-tertiary">
|
|
<div class="text-center mb-8">
|
|
<i class="fas fa-lock text-accent text-4xl mb-4"></i>
|
|
<h1 class="text-2xl font-bold mb-2">OpenParty Admin Panel</h1>
|
|
<p class="text-gray-400">Enter your password to continue</p>
|
|
</div>
|
|
|
|
<form class="space-y-6" action="/panel/login" method="POST">
|
|
<div class="space-y-2">
|
|
<label for="password" class="block text-sm font-medium text-gray-400">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-key text-gray-500"></i>
|
|
</div>
|
|
<input
|
|
type="password"
|
|
id="password"
|
|
name="password"
|
|
required
|
|
class="bg-tertiary border border-gray-700 text-white pl-10 block w-full rounded-md py-3 px-4 focus:ring-2 focus:ring-accent focus:border-accent focus:outline-none transition-all duration-200"
|
|
placeholder="Enter admin password"
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
<button
|
|
type="submit"
|
|
class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-white bg-accent hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent transition-all duration-200"
|
|
>
|
|
<i class="fas fa-sign-in-alt mr-2"></i> Login
|
|
</button>
|
|
</form>
|
|
|
|
<div id="error-message" class="mt-4 text-center text-error hidden">
|
|
<i class="fas fa-exclamation-circle mr-1"></i>
|
|
Invalid password. Please try again.
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// Check for error parameter in URL
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
if (urlParams.get('error') === '1') {
|
|
document.getElementById('error-message').classList.remove('hidden');
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |