diff --git a/webui.dev/index.html b/webui.dev/index.html index b076be0..035e25a 100644 --- a/webui.dev/index.html +++ b/webui.dev/index.html @@ -92,6 +92,35 @@ + + + + OAuth Login + + GitHub + Google + + + Local Login + + + Username: + + + + + + Password: + + + + + Login + + + + + Sorry, JavaScript is required to use OliveTin. diff --git a/webui.dev/js/marshaller.js b/webui.dev/js/marshaller.js index fa46802..35ff403 100644 --- a/webui.dev/js/marshaller.js +++ b/webui.dev/js/marshaller.js @@ -264,6 +264,7 @@ export function setupSectionNavigation (style) { registerSection('/', 'Actions', null, document.getElementById('showActions')) registerSection('/diagnostics', 'Diagnostics', null, document.getElementById('showDiagnostics')) registerSection('/logs', 'Logs', null, document.getElementById('showLogs')) + registerSection('/login', 'Login', null, null) } function registerSection (path, section, view, linkElement) { diff --git a/webui.dev/style.css b/webui.dev/style.css index 668f6ec..c4dcce9 100644 --- a/webui.dev/style.css +++ b/webui.dev/style.css @@ -552,6 +552,34 @@ div.display { padding: 1em; } +.flex-col { + display: flex; + flex-direction: column; +} + +#contentLogin form { + width: 40%; + place-self: center; +} + +#contentLogin hr { + border: 0; + border-top: 1px dashed #ccc; +} + +#contentLogin button { + display: block; + width: 100%; + grid-column: 1 / span 3; + margin-bottom: 1em; + font-weight: bold; + background-color: #ced3d7; +} + +#contentLogin button:last-child { + margin-bottom: 0; +} + @media screen and (width <= 600px) { fieldset { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));