| 37 | } |
| 38 | |
| 39 | function defaultHtmlContent({ error }: { error: string }) { |
| 40 | return html` |
| 41 | <main id="main"> |
| 42 | <section class="max-w-3xl mx-auto flex flex-col items-center justify-center"> |
| 43 | <h1 class="text-4xl mb-6"> |
| 44 | Login with SSO |
| 45 | </h1> |
| 46 | ${error |
| 47 | ? html` |
| 48 | <section class="notification-error"> |
| 49 | <h3>Failed to login!</h3> |
| 50 | <p>${escapeHtml(error)}</p> |
| 51 | </section> |
| 52 | ` |
| 53 | : ''} |
| 54 | |
| 55 | <h2 class="text-2xl mb-4 text-center">Go back?</h2> |
| 56 | <p class="text-center mt-2 mb-6"> |
| 57 | Go back to <strong><a href="/login">login</a></strong>. |
| 58 | </p> |
| 59 | </section> |
| 60 | </main> |
| 61 | `; |
| 62 | } |
| 63 | |
| 64 | export default page({ |
| 65 | get, |