Skip to content

Agent Zero AI framework

Enhance: More polished single-user login page

Wabifocusb1b6a594d577
diff --git a/webui/login.css b/webui/login.css
new file mode 100644
index 000000000..997bfe3de
--- /dev/null
+++ b/webui/login.css
@@ -0,0 +1,81 @@
+body {
+ background-color: #131313;
+ color: #d4d4d4;
+ font-family: "Rubik", Arial, Helvetica, sans-serif;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ margin: 0;
+}
+
+.login-container {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+}
+
+.login-form {
+ background-color: #1a1a1a;
+ padding: 2rem;
+ border-radius: 1.125rem;
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
+ width: 100%;
+ max-width: 400px;
+ text-align: center;
+}
+
+.logo {
+ width: 80px;
+ height: 80px;
+ border-radius: 0.3125rem; /* Match the main page logo style */
+ margin-bottom: 1rem;
+}
+
+h2 {
+ margin-bottom: 2rem;
+}
+
+.input-group {
+ margin-bottom: 1.5rem;
+ text-align: left;
+}
+
+.input-group label {
+ display: block;
+ margin-bottom: 0.5rem;
+ color: #737a81;
+}
+
+.input-group input {
+ width: 100%;
+ padding: 0.75rem;
+ border: 1px solid #444444a8;
+ border-radius: 0.5rem;
+ background-color: #131313;
+ color: #d4d4d4;
+ font-size: 1rem;
+ box-sizing: border-box; /* Added for consistent padding */
+}
+
+button {
+ width: 100%;
+ padding: 0.75rem;
+ border: none;
+ border-radius: 0.5rem;
+ background-color: #4248f1;
+ color: white;
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+}
+
+button:hover {
+ background-color: #353bc5;
+}
+
+.error {
+ color: #cf6679;
+ margin-top: 1rem;
+}
diff --git a/webui/login.html b/webui/login.html
new file mode 100644
index 000000000..74c714388
--- /dev/null
+++ b/webui/login.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Login - Agent Zero</title>
+ <link rel="stylesheet" href="/login.css">
+ <link rel="icon" type="image/svg+xml" href="/public/favicon.svg">
+</head>
+<body>
+ <div class="login-container">
+ <form class="login-form" method="POST" action="/login">
+ <img src="/public/splash.jpg" alt="Agent Zero Logo" class="logo">
+ <h2>Agent Zero</h2>
+ <div class="input-group">
+ <label for="username">Username</label>
+ <input type="text" id="username" name="username" required>
+ </div>
+ <div class="input-group">
+ <label for="password">Password</label>
+ <input type="password" id="password" name="password" required>
+ </div>
+ <button type="submit">Login</button>
+ {% if error %}
+ <p class="error">{{ error }}</p>
+ {% endif %}
+ </form>
+ </div>
+</body>
+</html>
\ No newline at end of file