Create index.html

pull/3693/head
shammel7 2025-01-24 20:01:09 +12:00 committed by GitHub
parent d1c84a8412
commit 4d5bbefde4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 104 additions and 0 deletions

104
index.html Normal file
View File

@ -0,0 +1,104 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Domain Login</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f9;
}
.container {
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
text-align: center;
}
h1 {
color: #333;
margin-bottom: 20px;
}
.input-group {
margin-bottom: 15px;
text-align: left;
}
.input-group label {
display: block;
font-size: 14px;
color: #555;
margin-bottom: 5px;
}
.input-group input {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
}
.button {
display: inline-block;
background-color: #0366d6;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
text-decoration: none;
}
.button:hover {
background-color: #024fa4;
}
</style>
</head>
<body>
<div class="container" id="login-form">
<h1>Login</h1>
<div class="input-group">
<label for="username">Username</label>
<input type="text" id="username" placeholder="Enter your username">
</div>
<div class="input-group">
<label for="password">Password</label>
<input type="password" id="password" placeholder="Enter your password">
</div>
<button class="button" onclick="login()">Login</button>
</div>
<div class="container" id="logout-form" style="display: none;">
<h1>Welcome!</h1>
<p>You already entered our world.</p>
</div>
<script>
function login() {
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
if (username && password) {
document.getElementById('login-form').style.display = 'none';
document.getElementById('logout-form').style.display = 'block';
} else {
alert('Please enter your username and password.');
}
}
</script>
</body>
</html>