|
|
|
@ -1,5 +1,5 @@ |
|
|
|
<script> |
|
|
|
import {goto} from "@roxi/routify" |
|
|
|
import { goto } from "@roxi/routify" |
|
|
|
import { |
|
|
|
notifications, |
|
|
|
Input, |
|
|
|
@ -11,7 +11,7 @@ |
|
|
|
Heading, |
|
|
|
} from "@budibase/bbui" |
|
|
|
import GoogleButton from "./GoogleButton.svelte" |
|
|
|
import {auth} from "stores/backend" |
|
|
|
import { auth } from "stores/backend" |
|
|
|
|
|
|
|
let username = "" |
|
|
|
let password = "" |
|
|
|
@ -37,22 +37,22 @@ |
|
|
|
|
|
|
|
<div class="login"> |
|
|
|
<div class="main"> |
|
|
|
<Layout noPadding> |
|
|
|
<Layout> |
|
|
|
<Layout noPadding justifyItems="center"> |
|
|
|
<img src="https://i.imgur.com/ZKyklgF.png" /> |
|
|
|
<Heading>Sign in to Budibase</Heading> |
|
|
|
</Layout> |
|
|
|
<div class="sso"> |
|
|
|
<GoogleButton /> |
|
|
|
</div> |
|
|
|
<GoogleButton /> |
|
|
|
<Divider noGrid /> |
|
|
|
<Layout gap="XS" noPadding> |
|
|
|
<Body size="S" textAlign="center">Sign in with email</Body> |
|
|
|
<Input label="Email" bind:value={username} /> |
|
|
|
<Input label="Password" type="password" on:change bind:value={password} /> |
|
|
|
</Layout> |
|
|
|
<Button cta on:click={login}>Sign in to Budibase</Button> |
|
|
|
<ActionButton quiet on:click={forgot}>Forgot Password?</ActionButton> |
|
|
|
<Layout gap="S" noPadding> |
|
|
|
<Button cta on:click={login}>Sign in to Budibase</Button> |
|
|
|
<ActionButton quiet on:click={forgot}>Forgot password?</ActionButton> |
|
|
|
</Layout> |
|
|
|
</Layout> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -71,22 +71,7 @@ |
|
|
|
width: 260px; |
|
|
|
} |
|
|
|
|
|
|
|
.center { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
img { |
|
|
|
width: 48px; |
|
|
|
} |
|
|
|
|
|
|
|
.sso { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.login-buttons :global(>*) { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|