forked from tsai/budibase
8 changed files with 149 additions and 19 deletions
@ -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,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