index.html (2173B)
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>Template runtime PoC</title> 7 <style> 8 html { 9 background-color: #fff; 10 } 11 12 @media (prefers-color-scheme: dark) { 13 html:not([data-theme]) { 14 background-color: #222; 15 color-scheme: dark; 16 } 17 } 18 19 html[data-theme="light"] { 20 background-color: #fff; 21 color-scheme: light; 22 } 23 24 html[data-theme="dark"] { 25 background-color: #222; 26 color-scheme: dark; 27 } 28 29 body { 30 margin: 0; 31 visibility: hidden; 32 } 33 34 html[data-template-ready] body { 35 visibility: visible; 36 } 37 </style> 38 <script> 39 (() => { 40 try { 41 const theme = localStorage.getItem('auth-template-poc:theme'); 42 if (theme === 'light' || theme === 'dark') { 43 document.documentElement.dataset.theme = theme; 44 } 45 } catch {} 46 })(); 47 </script> 48 <link rel="stylesheet" href="main.css"> 49 </head> 50 <body> 51 <header class="poc-toolbar"> 52 <strong class="poc-title">Template PoC</strong> 53 <button class="poc-button" type="button" data-demo-page="/account/overview">Account</button> 54 <button class="poc-button" type="button" data-demo-page="/login">Login</button> 55 <span id="poc-status" class="poc-status" data-state="loading">Idle</span> 56 </header> 57 58 <div id="app"></div> 59 60 <aside class="poc-console" aria-label="Runtime controls"> 61 <details open> 62 <summary>Runtime</summary> 63 <div id="poc-layers" class="poc-layers"></div> 64 <div class="poc-actions"> 65 <button class="poc-button" type="button" data-reload-templates>Reinstall</button> 66 <button class="poc-button" type="button" data-clear-opfs>Clear OPFS</button> 67 <button class="poc-button" type="button" data-clear-meta>Clear metadata</button> 68 </div> 69 <pre id="poc-log" class="poc-log"></pre> 70 </details> 71 </aside> 72 73 <script type="module" src="main.js"></script> 74 </body> 75 </html>