Switching over to use layouts.
This commit is contained in:
parent
a26ab57a76
commit
47c4366a8f
|
@ -8,6 +8,7 @@
|
||||||
ActionButton,
|
ActionButton,
|
||||||
Layout,
|
Layout,
|
||||||
Body,
|
Body,
|
||||||
|
Heading,
|
||||||
} 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"
|
||||||
|
@ -36,21 +37,23 @@
|
||||||
|
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
<Layout noPadding>
|
||||||
|
<Layout noPadding justifyItems="center">
|
||||||
<img src="https://i.imgur.com/ZKyklgF.png" />
|
<img src="https://i.imgur.com/ZKyklgF.png" />
|
||||||
<h2>Sign in to Budibase</h2>
|
<Heading>Sign in to Budibase</Heading>
|
||||||
|
</Layout>
|
||||||
<div class="sso">
|
<div class="sso">
|
||||||
<GoogleButton />
|
<GoogleButton />
|
||||||
</div>
|
</div>
|
||||||
<Divider noGrid />
|
<Divider noGrid />
|
||||||
<Body size="S">Sign in with email</Body>
|
<Layout gap="XS" noPadding>
|
||||||
<Layout gap="XS">
|
<Body size="S" textAlign="center">Sign in with email</Body>
|
||||||
<Input label="Email" bind:value={username} />
|
<Input label="Email" bind:value={username} />
|
||||||
<Input label="Password" type="password" on:change bind:value={password} />
|
<Input label="Password" type="password" on:change bind:value={password} />
|
||||||
</Layout>
|
</Layout>
|
||||||
<div class="login-buttons">
|
|
||||||
<Button cta on:click={login}>Sign in to Budibase</Button>
|
<Button cta on:click={login}>Sign in to Budibase</Button>
|
||||||
<ActionButton quiet on:click={forgot}>Forgot Password?</ActionButton>
|
<ActionButton quiet on:click={forgot}>Forgot Password?</ActionButton>
|
||||||
</div>
|
</Layout>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -65,25 +68,25 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
width: 240px;
|
width: 260px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main img {
|
img {
|
||||||
width: 48px;
|
width: 48px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sso {
|
.sso {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: var(--spacing-l);
|
|
||||||
margin-top: var(--spacing-s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-buttons :global(>*) {
|
.login-buttons :global(>*) {
|
||||||
margin-top: var(--spacing-l);
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue