admin-system-settings.html (19398B)
1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> 6 <title>Admin system settings mockup</title> 7 <link rel="stylesheet" href="../../app/shared/style/global.css" /> 8 <link rel="stylesheet" href="../../app/shared/component/user-menu.css" /> 9 <link rel="stylesheet" href="./mockups.css" /> 10 </head> 11 <body> 12 <header class="topbar"> 13 <a class="brand" href="./admin-dashboard.html"> 14 <svg class="brand-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 15 <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" /> 16 </svg> 17 <span class="brand-name">Auth</span> 18 </a> 19 <div class="topbar-actions"> 20 <button class="mobile-nav-toggle" type="button" id="mobile-nav-toggle" aria-controls="mobile-navigation" aria-expanded="false" aria-label="Open navigation"> 21 <span class="mobile-nav-toggle-bars" aria-hidden="true"></span> 22 </button> 23 <details class="menu user-menu"> 24 <summary class="menu-trigger" aria-label="Account menu"> 25 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 26 <circle cx="12" cy="12" r="10" /> 27 <circle cx="12" cy="10" r="3" /> 28 <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" /> 29 </svg> 30 </summary> 31 <div class="menu-panel"> 32 <div class="menu-heading"> 33 <span class="menu-heading-title">System Admin</span> 34 <span class="menu-heading-meta">admin@system.test</span> 35 </div> 36 <div class="menu-list"> 37 <a class="menu-item" href="#"> 38 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 39 <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /> 40 <circle cx="12" cy="12" r="3" /> 41 </svg> 42 <span>Account settings</span> 43 </a> 44 <button class="menu-item" type="button" data-user-theme> 45 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 46 <circle cx="12" cy="12" r="4" /> 47 <path d="M12 2v2" /> 48 <path d="M12 20v2" /> 49 <path d="m4.93 4.93 1.41 1.41" /> 50 <path d="m17.66 17.66 1.41 1.41" /> 51 <path d="M2 12h2" /> 52 <path d="M20 12h2" /> 53 <path d="m6.34 17.66-1.41 1.41" /> 54 <path d="m19.07 4.93-1.41 1.41" /> 55 </svg> 56 <span>Theme</span> 57 <span class="menu-value" data-user-theme-value>Auto</span> 58 </button> 59 <a class="menu-item" href="#"> 60 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 61 <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" /> 62 <path d="m16 17 5-5-5-5" /> 63 <path d="M21 12H9" /> 64 </svg> 65 <span>Sign out</span> 66 </a> 67 </div> 68 </div> 69 </details> 70 </div> 71 </header> 72 73 <div class="mobile-nav" id="mobile-navigation" aria-hidden="true"> 74 <nav class="nav" aria-label="Administration"> 75 <p class="nav-label">Administration</p> 76 <a class="nav-item" href="./admin-dashboard.html"> 77 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 78 <rect x="3" y="3" width="7" height="7" /> 79 <rect x="14" y="3" width="7" height="7" /> 80 <rect x="3" y="14" width="7" height="7" /> 81 <rect x="14" y="14" width="7" height="7" /> 82 </svg> 83 <span>Overview</span> 84 </a> 85 <a class="nav-item" href="./admin-realms.html"> 86 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 87 <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" /> 88 <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" /> 89 <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" /> 90 <path d="M10 6h4" /> 91 <path d="M10 10h4" /> 92 <path d="M10 14h4" /> 93 <path d="M10 18h4" /> 94 </svg> 95 <span>Realms</span> 96 </a> 97 <a class="nav-item" href="./admin-clients.html"> 98 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 99 <rect x="2" y="4" width="20" height="16" rx="2" /> 100 <path d="M10 4v4" /> 101 <path d="M2 8h20" /> 102 <path d="M6 4v4" /> 103 </svg> 104 <span>Clients</span> 105 </a> 106 <a class="nav-item" href="#"> 107 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 108 <path d="M22 12h-4l-3 8-6-16-3 8H2" /> 109 </svg> 110 <span>Sessions</span> 111 </a> 112 <a class="nav-item" href="./admin-users.html"> 113 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 114 <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> 115 <circle cx="12" cy="7" r="4" /> 116 </svg> 117 <span>Users</span> 118 </a> 119 <a class="nav-item is-active" href="./admin-system-settings.html" aria-current="page"> 120 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 121 <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /> 122 <circle cx="12" cy="12" r="3" /> 123 </svg> 124 <span>Settings</span> 125 </a> 126 </nav> 127 <div class="mobile-nav-divider" aria-hidden="true"></div> 128 <section class="mobile-nav-account" aria-label="Account"> 129 <div class="menu-heading"> 130 <span class="menu-heading-title">System Admin</span> 131 <span class="menu-heading-meta">admin@system.test</span> 132 </div> 133 <div class="menu-list"> 134 <a class="menu-item" href="#"> 135 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 136 <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /> 137 <circle cx="12" cy="12" r="3" /> 138 </svg> 139 <span>Account settings</span> 140 </a> 141 <button class="menu-item" type="button" data-user-theme> 142 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 143 <circle cx="12" cy="12" r="4" /> 144 <path d="M12 2v2" /> 145 <path d="M12 20v2" /> 146 <path d="m4.93 4.93 1.41 1.41" /> 147 <path d="m17.66 17.66 1.41 1.41" /> 148 <path d="M2 12h2" /> 149 <path d="M20 12h2" /> 150 <path d="m6.34 17.66-1.41 1.41" /> 151 <path d="m19.07 4.93-1.41 1.41" /> 152 </svg> 153 <span>Theme</span> 154 <span class="menu-value" data-user-theme-value>Auto</span> 155 </button> 156 <a class="menu-item" href="#"> 157 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 158 <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" /> 159 <path d="m16 17 5-5-5-5" /> 160 <path d="M21 12H9" /> 161 </svg> 162 <span>Sign out</span> 163 </a> 164 </div> 165 </section> 166 </div> 167 168 <div class="app"> 169 <aside class="sidebar"> 170 <nav class="nav" aria-label="Administration"> 171 <p class="nav-label">Administration</p> 172 <a class="nav-item" href="./admin-dashboard.html"> 173 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 174 <rect x="3" y="3" width="7" height="7" /> 175 <rect x="14" y="3" width="7" height="7" /> 176 <rect x="3" y="14" width="7" height="7" /> 177 <rect x="14" y="14" width="7" height="7" /> 178 </svg> 179 <span>Overview</span> 180 </a> 181 <a class="nav-item" href="./admin-realms.html"> 182 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 183 <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" /> 184 <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" /> 185 <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" /> 186 <path d="M10 6h4" /> 187 <path d="M10 10h4" /> 188 <path d="M10 14h4" /> 189 <path d="M10 18h4" /> 190 </svg> 191 <span>Realms</span> 192 </a> 193 <a class="nav-item" href="./admin-clients.html"> 194 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 195 <rect x="2" y="4" width="20" height="16" rx="2" /> 196 <path d="M10 4v4" /> 197 <path d="M2 8h20" /> 198 <path d="M6 4v4" /> 199 </svg> 200 <span>Clients</span> 201 </a> 202 <a class="nav-item" href="#"> 203 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 204 <path d="M22 12h-4l-3 8-6-16-3 8H2" /> 205 </svg> 206 <span>Sessions</span> 207 </a> 208 <a class="nav-item" href="./admin-users.html"> 209 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 210 <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> 211 <circle cx="12" cy="7" r="4" /> 212 </svg> 213 <span>Users</span> 214 </a> 215 <a class="nav-item is-active" href="./admin-system-settings.html" aria-current="page"> 216 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 217 <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" /> 218 <circle cx="12" cy="12" r="3" /> 219 </svg> 220 <span>Settings</span> 221 </a> 222 </nav> 223 </aside> 224 225 <div class="main"> 226 <main class="content"> 227 <div class="page-header"> 228 <div class="breadcrumb"> 229 <span aria-current="page">Settings</span> 230 </div> 231 <h1>System settings</h1> 232 <p>Provider branding for authentication surfaces.</p> 233 </div> 234 235 <section class="panel"> 236 <h2>System branding</h2> 237 <p class="note">Shown by default when realm or client branding does not provide a value.</p> 238 <div class="settings-form"> 239 <div class="grid"> 240 <div class="field"> 241 <span class="field-label">Logo URL</span> 242 <input 243 class="field-control" 244 type="url" 245 value="https://auth.example.test/logo.svg" 246 placeholder="https://app.example.test/logo.svg" 247 maxlength="2048" 248 /> 249 </div> 250 251 <div class="field"> 252 <span class="field-label">Primary color</span> 253 <input class="field-control" value="#2255aa" placeholder="#25a" maxlength="7" spellcheck="false" /> 254 </div> 255 </div> 256 257 <div class="branding-preview" aria-hidden="true"> 258 <span class="branding-logo-preview"> 259 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 260 <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" /> 261 </svg> 262 </span> 263 <span class="branding-color-preview" style="background: #2255aa"></span> 264 </div> 265 266 <div class="action-row"> 267 <button class="button button-primary" type="submit">Save changes</button> 268 </div> 269 </div> 270 </section> 271 272 <section class="state-preview"> 273 <h2>Loading state</h2> 274 <div class="panel" aria-busy="true"> 275 <div class="skeleton skeleton-title"></div> 276 <div class="skeleton"></div> 277 <div class="skeleton skeleton-short"></div> 278 </div> 279 </section> 280 281 <section class="state-preview"> 282 <h2>Saved state</h2> 283 <div class="notice" role="status">System settings saved.</div> 284 </section> 285 286 <section class="state-preview"> 287 <h2>Validation error</h2> 288 <div class="alert" role="alert">Logo URL must use https, or http for a loopback host.</div> 289 <div class="panel"> 290 <h2>System branding</h2> 291 <div class="settings-form"> 292 <div class="grid"> 293 <div class="field"> 294 <span class="field-label">Logo URL</span> 295 <input 296 class="field-control" 297 type="url" 298 value="http://auth.example.test/logo.svg" 299 placeholder="https://app.example.test/logo.svg" 300 aria-invalid="true" 301 maxlength="2048" 302 /> 303 </div> 304 305 <div class="field"> 306 <span class="field-label">Primary color</span> 307 <input class="field-control" value="#25a" placeholder="#25a" maxlength="7" spellcheck="false" /> 308 </div> 309 </div> 310 311 <div class="action-row"> 312 <button class="button button-primary" type="submit">Save changes</button> 313 </div> 314 </div> 315 </div> 316 </section> 317 </main> 318 </div> 319 </div> 320 321 <div class="mockup-controls" aria-label="Mockup theme"> 322 <span class="mockup-label">Mockup</span> 323 <button class="mockup-button is-active" type="button" data-theme-target="auto">Auto</button> 324 <button class="mockup-button" type="button" data-theme-target="light">Light</button> 325 <button class="mockup-button" type="button" data-theme-target="dark">Dark</button> 326 </div> 327 328 <script> 329 const root = document.documentElement; 330 const themeButtons = document.querySelectorAll('[data-theme-target]'); 331 const userThemeButtons = document.querySelectorAll('[data-user-theme]'); 332 const userThemeValues = document.querySelectorAll('[data-user-theme-value]'); 333 let currentTheme = 'auto'; 334 335 function setTheme(value) { 336 currentTheme = value; 337 if (value === 'auto') { 338 root.removeAttribute('data-theme'); 339 } else { 340 root.setAttribute('data-theme', value); 341 } 342 themeButtons.forEach((button) => { 343 button.classList.toggle('is-active', button.dataset.themeTarget === value); 344 }); 345 userThemeValues.forEach((element) => { 346 element.textContent = value.charAt(0).toUpperCase() + value.slice(1); 347 }); 348 } 349 350 const queryTheme = new URLSearchParams(window.location.search).get('theme'); 351 if (queryTheme === 'light' || queryTheme === 'dark') { 352 setTheme(queryTheme); 353 } 354 355 themeButtons.forEach((button) => { 356 button.addEventListener('click', () => setTheme(button.dataset.themeTarget)); 357 }); 358 359 userThemeButtons.forEach((button) => { 360 button.addEventListener('click', () => { 361 const themes = ['auto', 'light', 'dark']; 362 setTheme(themes[(themes.indexOf(currentTheme) + 1) % themes.length]); 363 }); 364 }); 365 366 const userMenu = document.querySelector('.user-menu'); 367 document.addEventListener('click', (event) => { 368 if (userMenu && userMenu.open && !userMenu.contains(event.target)) { 369 userMenu.open = false; 370 } 371 }); 372 </script> 373 <script src="./shell.js"></script> 374 </body> 375 </html>