forked from tsai/budibase
11 changed files with 209 additions and 37 deletions
|
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,51 @@ |
|||
<script> |
|||
import { |
|||
Input, |
|||
Button, |
|||
Layout, |
|||
Body, |
|||
Heading, |
|||
} from "@budibase/bbui" |
|||
|
|||
let username = "" |
|||
let password = "" |
|||
|
|||
async function reset() { |
|||
|
|||
} |
|||
</script> |
|||
|
|||
<div class="login"> |
|||
<div class="main"> |
|||
<Layout> |
|||
<Layout noPadding justifyItems="center"> |
|||
<img src="https://i.imgur.com/ZKyklgF.png" /> |
|||
</Layout> |
|||
<Layout gap="XS" noPadding> |
|||
<Heading textAlign="center">Forgotten your password?</Heading> |
|||
<Body size="S" textAlign="center">No problem! Just enter your account's email address and we'll send you a link to reset it.</Body> |
|||
<Input label="Email" bind:value={username} /> |
|||
</Layout> |
|||
<Button cta on:click={reset}>Reset your password</Button> |
|||
</Layout> |
|||
</div> |
|||
</div> |
|||
|
|||
<style> |
|||
.login { |
|||
width: 100%; |
|||
height: 100%; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
|
|||
.main { |
|||
width: 300px; |
|||
} |
|||
|
|||
img { |
|||
width: 48px; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,44 @@ |
|||
<script> |
|||
import { Link } from "@budibase/bbui" |
|||
import GoogleLogo from "/assets/google-logo.png" |
|||
</script> |
|||
|
|||
<div class="outer"> |
|||
<Link target="_blank" href="/api/admin/auth/google"> |
|||
<div class="inner"> |
|||
<img src={GoogleLogo} alt="google icon" /> |
|||
<p>Sign in with Google</p> |
|||
</div> |
|||
</Link> |
|||
</div> |
|||
|
|||
|
|||
<style> |
|||
.outer { |
|||
border: 1px solid #494949; |
|||
border-radius: 4px; |
|||
width: 100%; |
|||
background-color: var(--background-alt); |
|||
} |
|||
.inner { |
|||
display: flex; |
|||
flex-direction: row; |
|||
align-items: center; |
|||
justify-content: center; |
|||
padding-top: var(--spacing-xs); |
|||
padding-bottom: var(--spacing-xs); |
|||
} |
|||
.inner img { |
|||
width: 18px; |
|||
margin: 3px 10px 3px 3px; |
|||
} |
|||
.inner p { |
|||
margin: 0; |
|||
} |
|||
.outer :global(a) { |
|||
text-decoration: none; |
|||
font-weight: 500; |
|||
font-size: var(--font-size-m); |
|||
color: #fff; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,53 @@ |
|||
<script> |
|||
import { |
|||
Input, |
|||
Button, |
|||
Layout, |
|||
Body, |
|||
Heading, |
|||
} from "@budibase/bbui" |
|||
import { params } from "@roxi/routify" |
|||
import { auth } from "stores/backend" |
|||
|
|||
const resetCode = $params["?code"] |
|||
let password = "" |
|||
|
|||
async function reset() { |
|||
|
|||
} |
|||
</script> |
|||
|
|||
<div class="login"> |
|||
<div class="main"> |
|||
<Layout> |
|||
<Layout noPadding justifyItems="center"> |
|||
<img src="https://i.imgur.com/ZKyklgF.png" /> |
|||
</Layout> |
|||
<Layout gap="XS" noPadding> |
|||
<Heading textAlign="center">Reset your password</Heading> |
|||
<Body size="S" textAlign="center">Please enter the new password you'd like to use.</Body> |
|||
<Input label="Password" bind:value={password} /> |
|||
</Layout> |
|||
<Button cta on:click={reset}>Reset your password</Button> |
|||
</Layout> |
|||
</div> |
|||
</div> |
|||
|
|||
<style> |
|||
.login { |
|||
width: 100%; |
|||
height: 100%; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
|
|||
.main { |
|||
width: 260px; |
|||
} |
|||
|
|||
img { |
|||
width: 48px; |
|||
} |
|||
</style> |
|||
@ -0,0 +1,5 @@ |
|||
<script> |
|||
import ForgotForm from "components/login/ForgotForm.svelte" |
|||
</script> |
|||
|
|||
<ForgotForm /> |
|||
@ -0,0 +1,5 @@ |
|||
<script> |
|||
import ResetForm from "components/login/ResetForm.svelte" |
|||
</script> |
|||
|
|||
<ResetForm /> |
|||
Loading…
Reference in new issue