feat: add sub-key notice banner on settings page

This commit is contained in:
M1 2026-03-18 12:01:35 +04:00
parent f7d6eff972
commit a9a1e43146
1 changed files with 10 additions and 0 deletions

View File

@ -10,6 +10,16 @@
<h1 class="text-xl font-semibold text-white">Settings</h1>
<% if (it.isSubKey) { %>
<div class="flex gap-3 items-start bg-blue-950/40 border border-blue-800/40 rounded-xl px-5 py-4">
<span class="text-blue-400 text-base mt-0.5">🔑</span>
<div>
<p class="text-sm font-medium text-blue-300">You're signed in with a sub-key</p>
<p class="text-xs text-blue-400/70 mt-1">Sub-keys are scoped API keys that can manage monitors but can't access or change account credentials. To manage your login key, email, or sub-keys, sign in with your main account key.</p>
</div>
</div>
<% } %>
<!-- Account info -->
<section class="bg-gray-900 rounded-xl border border-gray-800 p-6">
<h2 class="text-sm font-semibold text-gray-300 mb-4">Account</h2>