95 lines
2.4 KiB
HTML
95 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<title>Login</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-image: url("/static/background.jpg");
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
backdrop-filter: brightness(0.7);
|
|
}
|
|
|
|
.login-box {
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
padding: 40px 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
|
|
color: white;
|
|
width: 300px;
|
|
}
|
|
|
|
.login-box h2 {
|
|
text-align: center;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.login-box input[type="text"],
|
|
.login-box input[type="password"] {
|
|
width: 100%;
|
|
padding: 12px;
|
|
margin: 10px 0;
|
|
border: none;
|
|
border-radius: 5px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.login-box button {
|
|
width: 100%;
|
|
padding: 12px;
|
|
margin-top: 15px;
|
|
background-color: #4285F4;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.login-box button:hover {
|
|
background-color: #3367d6;
|
|
}
|
|
|
|
.monitor-link {
|
|
display: block;
|
|
text-align: center;
|
|
margin-top: 15px;
|
|
padding: 10px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.monitor-link:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="login-box">
|
|
<h2>Login</h2>
|
|
<form method="post" action="/login">
|
|
<input type="text" name="username" placeholder="Username" required />
|
|
<input type="password" name="password" placeholder="Password" required />
|
|
<button type="submit">Log In</button>
|
|
</form>
|
|
<a href="/monitor-page" target="_blank" rel="noopener noreferrer" class="monitor-link"><i class="fas fa-chart-line"></i> Monitor Without Login</a>
|
|
</div>
|
|
</body>
|
|
</html>
|