ng-app login: adjust pin pad to same size as emojis

pull/18/head
Laurin Weger 6 months ago
parent b6c2b40f14
commit a4a1e63977
No known key found for this signature in database
GPG Key ID: 9B372BB0B792770F
  1. 12
      ng-app/src/lib/Login.svelte

@ -490,17 +490,16 @@
class:max-w-[360px]={mobile} class:max-w-[360px]={mobile}
class:max-w-[600px]={!mobile} class:max-w-[600px]={!mobile}
> >
<div class="max-w-6xl lg:px-8 mt-auto px-3"> <div class="mt-auto max-w-6xl lg:px-8">
<p class="max-w-xl md:mx-auto lg:max-w-2xl"> <p class="max-w-xl md:mx-auto lg:max-w-2xl">
<span class="text-xl">Enter your PIN code</span> <span class="text-xl">Enter your PIN code</span>
</p> </p>
<div class="w-[295px] mx-auto">
{#each [0, 1, 2] as row} {#each [0, 1, 2] as row}
<div class=""> <div class="columns-3 gap-2">
{#each shuffle_pin.slice(0 + row * 3, 3 + row * 3) as num} {#each shuffle_pin.slice(0 + row * 3, 3 + row * 3) as num}
<button <button
tabindex="0" tabindex="0"
class="m-1 select-none align-bottom text-7xl w-[90px] h-[90px] p-0" class="m-1 select-none align-bottom text-7xl p-0 w-full aspect-square border-0"
on:click={async () => await on_pin_key(num)} on:click={async () => await on_pin_key(num)}
> >
<span>{num}</span> <span>{num}</span>
@ -508,13 +507,16 @@
{/each} {/each}
</div> </div>
{/each} {/each}
<div class="columns-3 gap-2">
<div class="m-1 w-full aspect-square" />
<button <button
tabindex="0" tabindex="0"
class="m-1 select-none mx-auto align-bottom text-7xl w-[90px] h-[90px] p-0" class="m-1 select-none align-bottom text-7xl p-0 w-full aspect-square border-0"
on:click={async () => await on_pin_key(shuffle_pin[9])} on:click={async () => await on_pin_key(shuffle_pin[9])}
> >
<span>{shuffle_pin[9]}</span> <span>{shuffle_pin[9]}</span>
</button> </button>
<div class="m-1 p- w-full aspect-square" />
</div> </div>
</div> </div>
<div class="flex justify-between mt-auto"> <div class="flex justify-between mt-auto">

Loading…
Cancel
Save