tweak home screen

This commit is contained in:
Joseph Montanaro 2023-09-05 06:12:26 -07:00
parent e7e0f9d33e
commit e46c3d2b4d

View File

@ -24,33 +24,31 @@
<div class="flex flex-col h-screen items-center justify-center p-4 space-y-4"> <div class="flex flex-col h-screen items-center justify-center p-4 space-y-4">
<div class="flex flex-col items-center space-y-4"> <div class="flex flex-col items-center space-y-4">
{#await invoke('get_session_status') then status} {@html vaultDoorSvg}
{#if status === 'locked'} {#await invoke('get_session_status') then status}
{#if status === 'locked'}
{@html vaultDoorSvg} <h2 class="text-2xl font-bold">Creddy is locked</h2>
<h2 class="text-2xl font-bold">Creddy is locked</h2> <Link target="Unlock" hotkey="Enter" class="w-64">
<Link target="Unlock" hotkey="Enter" class="w-64"> <button class="btn btn-primary w-full">Unlock</button>
<button class="btn btn-primary w-full">Unlock</button> </Link>
</Link>
{:else if status === 'unlocked'} {:else if status === 'unlocked'}
{@html vaultDoorSvg} <h2 class="text-2xl font-bold">Waiting for requests</h2>
<h2 class="text-2xl font-bold">Waiting for requests</h2> <button class="btn btn-primary w-full" on:click={launchTerminal}>
<button class="btn btn-primary w-full" on:click={launchTerminal}> Launch Terminal
Launch Terminal </button>
</button> <label class="label cursor-pointer flex items-center space-x-2">
<label class="label cursor-pointer flex items-center space-x-2"> <input type="checkbox" class="checkbox checkbox-sm" bind:checked={launchBase}>
<input type="checkbox" class="checkbox checkbox-sm" bind:checked={launchBase}> <span class="label-text">Launch with base credentials</span>
<span class="label-text">Launch with base credentials</span> </label>
</label>
{:else if status === 'empty'} {:else if status === 'empty'}
{@html vaultDoorSvg} <h2 class="text-2xl font-bold">No credentials found</h2>
<h2 class="text-2xl font-bold">No credentials found</h2> <Link target="EnterCredentials" hotkey="Enter" class="w-64">
<Link target="EnterCredentials" hotkey="Enter" class="w-64"> <button class="btn btn-primary w-full">Enter Credentials</button>
<button class="btn btn-primary w-full">Enter Credentials</button> </Link>
</Link> {/if}
{/if} {/await}
{/await}
</div> </div>
</div> </div>