auth

Main authentication module for my projects
git clone git://git.finwo.net/app/auth
Log | Files | Refs

consent.html (4064B)


      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>Consent mockup</title>
      7     <link rel="stylesheet" href="../../app/shared/style/global.css" />
      8     <link rel="stylesheet" href="./mockups.css" />
      9   </head>
     10   <body>
     11     <main class="status-page">
     12       <section class="status-panel" aria-labelledby="consent-title">
     13         <div class="stack">
     14           <h1 id="consent-title">Authorize Acme Portal</h1>
     15           <p class="note">
     16             Acme Portal is requesting access to your Acme account.
     17           </p>
     18 
     19           <div class="mockup-account-strip u-cluster">
     20             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     21               <circle cx="12" cy="12" r="10" />
     22               <circle cx="12" cy="10" r="3" />
     23               <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" />
     24             </svg>
     25             <span class="stack mockup-row-body">
     26               <span class="mockup-row-title">Demo User</span>
     27               <span class="mockup-row-meta">demo@example.com</span>
     28             </span>
     29             <button class="link" type="button">Not you?</button>
     30           </div>
     31 
     32           <h3>This will allow Acme Portal to:</h3>
     33           <ul class="mockup-scope-list stack">
     34             <li class="mockup-scope u-cluster">
     35               <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     36                 <path d="m5 12 5 5L20 7" />
     37               </svg>
     38               <span>Sign you in with your Acme account.</span>
     39             </li>
     40             <li class="mockup-scope u-cluster">
     41               <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     42                 <path d="m5 12 5 5L20 7" />
     43               </svg>
     44               <span>See your name and username.</span>
     45             </li>
     46             <li class="mockup-scope u-cluster">
     47               <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     48                 <path d="m5 12 5 5L20 7" />
     49               </svg>
     50               <span>See your email address.</span>
     51             </li>
     52           </ul>
     53 
     54           <p class="note">
     55             You can revoke access at any time from your account settings.
     56           </p>
     57 
     58           <div class="mockup-actions">
     59             <button class="link" type="button">Deny</button>
     60             <button class="button button-primary" type="button">Allow access</button>
     61           </div>
     62         </div>
     63       </section>
     64     </main>
     65 
     66     <div class="mockup-controls" aria-label="Mockup theme">
     67       <span class="mockup-label">Mockup</span>
     68       <button class="mockup-button is-active" type="button" data-theme-target="auto">Auto</button>
     69       <button class="mockup-button" type="button" data-theme-target="light">Light</button>
     70       <button class="mockup-button" type="button" data-theme-target="dark">Dark</button>
     71     </div>
     72 
     73     <script>
     74       const root = document.documentElement;
     75       const themeButtons = document.querySelectorAll('[data-theme-target]');
     76 
     77       function setTheme(value) {
     78         if (value === 'auto') {
     79           root.removeAttribute('data-theme');
     80         } else {
     81           root.setAttribute('data-theme', value);
     82         }
     83 
     84         themeButtons.forEach((button) => {
     85           button.classList.toggle('is-active', button.dataset.themeTarget === value);
     86         });
     87       }
     88 
     89       themeButtons.forEach((button) => {
     90         button.addEventListener('click', () => setTheme(button.dataset.themeTarget));
     91       });
     92 
     93       const initialTheme = new URLSearchParams(window.location.search).get('theme');
     94       if (['auto', 'light', 'dark'].includes(initialTheme)) {
     95         setTheme(initialTheme);
     96       }
     97     </script>
     98   </body>
     99 </html>