blob: c7889aa9bd4a1d7c983675c07af6792fe2364227 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<script>
import { focus } from "$lib/utils";
import { pin } from '$lib/store';
let pinCode = '';
let pinInput;
let cancel = () => ($pin = '000000');
$: pinCode.length > 5 && ($pin = pinCode);
</script>
<div class="fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-20">
<div class="relative top-1/3 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white space-y-5">
<h1 class="text-center text-2xl font-semibold">Please enter your PIN</h1>
<input bind:value={pinCode} use:focus />
<div class="w-full flex">
<button
type="submit"
class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto"
on:click={cancel}
>
<div class="my-auto">Cancel</div>
</button>
</div>
</div>
</div>
|