Build-IT_AI / login.html
Urbanzulu's picture
lets finish AND DEPLOY MY APP
2d60dbf verified
raw
history blame
5.46 kB
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign In | CodeForge-AI</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>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: '#ef4444',
secondary: '#6b7280'
}
}
}
}
</script>
</head>
<body class="bg-gray-900 text-white min-h-screen flex items-center justify-center">
<div class="max-w-md w-full mx-4">
<!-- Logo -->
<div class="text-center mb-8">
<div class="flex items-center justify-center space-x-2 mb-4">
<div class="w-10 h-10 bg-red-500 rounded-lg flex items-center justify-center">
<i data-feather="code" class="w-6 h-6"></i>
</div>
<span class="text-2xl font-bold text-white">CodeForge-AI</span>
</div>
<h1 class="text-3xl font-bold text-white mb-2">Welcome Back</h1>
<p class="text-gray-400">Sign in to your account to continue</p>
</div>
<!-- Login Form -->
<div class="bg-gray-800 rounded-2xl p-8 border border-red-500/20">
<form id="loginForm">
<div class="space-y-4">
<div>
<label for="email" class="block text-sm font-medium text-gray-300 mb-2">Email Address</label>
<input
type="email"
id="email"
name="email"
required
class="w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-xl text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-transparent transition-colors"
placeholder="Enter your email"
>
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-300 mb-2">Password</label>
<input
type="password"
id="password"
name="password"
required
class="w-full px-4 py-3 bg-gray-700 border border-gray-600 rounded-xl text-white placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-transparent transition-colors"
placeholder="Enter your password"
>
</div>
<div class="flex items-center justify-between">
<label class="flex items-center">
<input type="checkbox" class="rounded bg-gray-700 border-gray-600 text-red-500 focus:ring-red-500">
<span class="ml-2 text-sm text-gray-300">Remember me</span>
</label>
<a href="#" class="text-sm text-red-400 hover:text-red-300 transition-colors">Forgot password?</a>
</div>
<button
type="submit"
class="w-full bg-red-500 hover:bg-red-600 text-white py-3 rounded-xl font-semibold transition-colors transform hover:scale-105"
>
Sign In
</button>
</div>
</form>
<div class="mt-6 text-center">
<p class="text-gray-400">
Don't have an account?
<a href="register.html" class="text-red-400 hover:text-red-300 transition-colors font-semibold">Sign up</a>
</p>
</div>
<div class="mt-6 pt-6 border-t border-gray-700">
<button class="w-full bg-gray-700 hover:bg-gray-600 text-white py-3 rounded-xl font-semibold transition-colors flex items-center justify-center">
<i data-feather="github" class="w-5 h-5 mr-2"></i>
Continue with GitHub
</button>
</div>
</div>
</div>
<script>
// Initialize Feather Icons
feather.replace();
// Handle login form submission
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
// Simple validation
if (email && password) {
// Store user session (in a real app, this would be handled by a backend)
localStorage.setItem('userEmail', email);
localStorage.setItem('userLoggedIn', 'true');
// Redirect to workspaces page
window.location.href = 'workspaces.html';
}
});
</script>
</body>
</html>