|
|
@ -1,15 +1,16 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { goto } from "@roxi/routify" |
|
|
import {goto} from "@roxi/routify" |
|
|
import { |
|
|
import { |
|
|
notifications, |
|
|
notifications, |
|
|
Input, |
|
|
Input, |
|
|
Modal, |
|
|
|
|
|
ModalContent, |
|
|
|
|
|
Button, |
|
|
Button, |
|
|
Divider, |
|
|
Divider, |
|
|
|
|
|
ActionButton, |
|
|
|
|
|
Layout, |
|
|
|
|
|
Body, |
|
|
} from "@budibase/bbui" |
|
|
} from "@budibase/bbui" |
|
|
import GoogleButton from "./GoogleButton.svelte" |
|
|
import GoogleButton from "./GoogleButton.svelte" |
|
|
import { auth } from "stores/backend" |
|
|
import {auth} from "stores/backend" |
|
|
|
|
|
|
|
|
let username = "" |
|
|
let username = "" |
|
|
let password = "" |
|
|
let password = "" |
|
|
@ -33,41 +34,56 @@ |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<Modal fixed> |
|
|
<div class="login"> |
|
|
<ModalContent |
|
|
<div class="main"> |
|
|
size="M" |
|
|
<img src="https://i.imgur.com/ZKyklgF.png" /> |
|
|
title="Log In" |
|
|
<h2>Sign in to Budibase</h2> |
|
|
showCancelButton={false} |
|
|
|
|
|
showConfirmButton={false} |
|
|
|
|
|
showCloseIcon={false} |
|
|
|
|
|
> |
|
|
|
|
|
<div class="sso"> |
|
|
<div class="sso"> |
|
|
<GoogleButton /> |
|
|
<GoogleButton /> |
|
|
</div> |
|
|
</div> |
|
|
<Divider noGrid /> |
|
|
<Divider noGrid /> |
|
|
<Input label="Email" bind:value={username} /> |
|
|
<Body size="S">Sign in with email</Body> |
|
|
<Input label="Password" type="password" on:change bind:value={password} /> |
|
|
<Layout gap="XS"> |
|
|
|
|
|
<Input label="Email" bind:value={username} /> |
|
|
|
|
|
<Input label="Password" type="password" on:change bind:value={password} /> |
|
|
|
|
|
</Layout> |
|
|
<div class="login-buttons"> |
|
|
<div class="login-buttons"> |
|
|
<Button secondary on:click={forgot}>Forgot Password?</Button> |
|
|
<Button cta on:click={login}>Sign in to Budibase</Button> |
|
|
<Button cta on:click={login}>Login</Button> |
|
|
<ActionButton quiet on:click={forgot}>Forgot Password?</ActionButton> |
|
|
</div> |
|
|
</div> |
|
|
</ModalContent> |
|
|
</div> |
|
|
</Modal> |
|
|
</div> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|
.sso { |
|
|
.login { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 100%; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
justify-content: flex-start; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
.login-buttons { |
|
|
|
|
|
|
|
|
.main { |
|
|
|
|
|
width: 240px; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: row; |
|
|
flex-direction: column; |
|
|
justify-content: flex-end; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
.login-buttons :global(>*:not(:last-child)) { |
|
|
|
|
|
margin-right: var(--spacing-xl); |
|
|
.main img { |
|
|
|
|
|
width: 48px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.sso { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
margin-bottom: var(--spacing-l); |
|
|
|
|
|
margin-top: var(--spacing-s); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.login-buttons :global(>*) { |
|
|
|
|
|
margin-top: var(--spacing-l); |
|
|
|
|
|
width: 100%; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|