2026-01-25 23:01:49 +00:00

43 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Smart Survey Filler Settings</title>
<style>
body { width: 320px; padding: 15px; font-family: 'Segoe UI', sans-serif; color: #333; }
h2 { margin-top: 0; color: #4A90E2; font-size: 18px; margin-bottom: 15px; }
.group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; }
input[type="text"], input[type="password"] {
width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box;
}
button {
width: 100%; padding: 10px; background: #4A90E2; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; margin-top: 5px;
}
button:hover { background: #357ABD; }
button.secondary { background: #f0f0f0; color: #333; margin-top: 10px; }
button.secondary:hover { background: #e0e0e0; }
#status-msg { margin-top: 10px; font-size: 12px; text-align: center; min-height: 16px; }
.success { color: green; }
.error { color: red; }
.hint { font-size: 11px; color: #666; margin-top: 3px; }
</style>
</head>
<body>
<h2>⚙️ Extension Settings</h2>
<div class="group">
<label for="backendUrl">Backend API URL</label>
<input type="text" id="backendUrl" value="http://localhost:3000/api" placeholder="e.g. http://localhost:3000/api">
<div class="hint">Default: http://localhost:3000/api</div>
</div>
<button id="saveBtn">Save & Connect</button>
<div id="status-msg"></div>
<hr style="border: 0; border-top: 1px solid #eee; margin: 15px 0;">
<button id="openDashboard" class="secondary">Open Dashboard</button>
<script src="popup.js"></script>
</body>
</html>