Terry Franci
requests permission to change
Project - Nganter App
Project
5 min ago
Alex Johnson
requests permission to change
Project - Nganter App
Project
10 min ago
Sarah Williams
requests permission to change
Project - Dashboard UI
Project
15 min ago
Mike Brown
requests permission to change
Project - E-commerce
Project
20 min ago
Emma Davis
requests permission to change
Project - Mobile App
Project
25 min ago
John Smith
requests permission to change
Project - Landing Page
Project
30 min ago
Lisa Anderson
requests permission to change
Project - Blog System
Project
35 min ago
David Wilson
requests permission to change
Project - CRM Dashboard
Project
40 min ago
Give me a login form code with google & github authentication
Login form code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Form</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f5f5f5;
}
.login-container {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
.login-form h2 {
text-align: center;
margin-bottom: 1.5rem;
color: #333;
}
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #555;
}
.form-group input {
width: 100%;
padding: 0.75rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}
.btn {
width: 100%;
padding: 0.75rem;
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
margin-bottom: 1rem;
}
.btn-primary {
background-color: #007bff;
color: white;
}
.btn-google {
background-color: #db4437;
color: white;
}
.btn-github {
background-color: #333;
color: white;
}
.divider {
text-align: center;
margin: 1rem 0;
color: #666;
}
</style>
</head>
<body>
<div class="login-container">
<form class="login-form">
<h2>Login</h2>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
</div>
<button type="submit" class="btn btn-primary">Login</button>
<div class="divider">Or continue with</div>
<button type="button" class="btn btn-google" onclick="loginWithGoogle()">
Login with Google
</button>
<button type="button" class="btn btn-github" onclick="loginWithGithub()">
Login with GitHub
</button>
</form>
</div>
<script>
function loginWithGoogle() {
// Implement Google OAuth here
console.log('Google login clicked');
}
function loginWithGithub() {
// Implement GitHub OAuth here
console.log('GitHub login clicked');
}
</script>
</body>
</html>
Here is the code for login form with google and github authentication as described.