Files
MP-Server/macropad-relay/public/login.html
T

164 lines
3.9 KiB
HTML
Raw Normal View History

2026-01-05 19:46:33 -08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MacroPad - Login</title>
<link rel="icon" type="image/png" href="/static/icons/favicon.png">
2026-01-05 19:46:33 -08:00
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: #2e2e2e;
color: #ffffff;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.login-container {
background-color: #3e3e3e;
border-radius: 8px;
padding: 2rem;
width: 100%;
max-width: 400px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
h1 {
text-align: center;
margin-bottom: 0.5rem;
color: #007acc;
}
.subtitle {
text-align: center;
color: #aaa;
margin-bottom: 2rem;
font-size: 0.9rem;
}
.form-group {
margin-bottom: 1.5rem;
}
label {
display: block;
margin-bottom: 0.5rem;
color: #ccc;
}
input[type="password"] {
width: 100%;
padding: 0.75rem;
background-color: #2e2e2e;
border: 1px solid #505050;
border-radius: 4px;
color: #fff;
font-size: 1rem;
}
input[type="password"]:focus {
outline: none;
border-color: #007acc;
}
button {
width: 100%;
padding: 0.75rem;
background-color: #007acc;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s;
}
button:hover {
background-color: #0096ff;
}
button:disabled {
background-color: #505050;
cursor: not-allowed;
}
.error {
background-color: rgba(220, 53, 69, 0.2);
border: 1px solid #dc3545;
color: #dc3545;
padding: 0.75rem;
border-radius: 4px;
margin-bottom: 1rem;
display: none;
}
.status {
text-align: center;
margin-top: 1rem;
color: #aaa;
font-size: 0.85rem;
}
.status.connected {
color: #28a745;
}
.status.disconnected {
color: #dc3545;
}
.checkbox-group {
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: 1rem;
}
.checkbox-group input {
width: auto;
}
.checkbox-group label {
margin: 0;
color: #aaa;
font-size: 0.9rem;
}
</style>
</head>
<body>
<div class="login-container">
<h1>MacroPad</h1>
<p class="subtitle">Enter password to access your macros</p>
<div class="error" id="error"></div>
<form id="loginForm">
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" placeholder="Enter your password" required autofocus>
</div>
<div class="checkbox-group">
<input type="checkbox" id="remember">
<label for="remember">Remember on this device</label>
</div>
<button type="submit" id="submitBtn">Connect</button>
</form>
<p class="status" id="status">Checking connection...</p>
</div>
<script src="/static/login.js"></script>
2026-01-05 19:46:33 -08:00
</body>
</html>