identity page cleanup

This commit is contained in:
AtHeartEngineer
2023-07-12 00:26:06 -04:00
parent 81d7ac77fa
commit 9835accab0
4 changed files with 17 additions and 13 deletions

View File

@@ -42,8 +42,8 @@
"type": "module",
"dependencies": {
"@semaphore-protocol/group": "^3.10.1",
"discreetly-interfaces": "^0.1.3",
"discreetly-interfaces": "^0.1.5",
"poseidon-lite": "^0.2.0",
"socket.io-client": "^4.7.1"
}
}
}

View File

@@ -1,5 +1,5 @@
<div class="mx-auto mt-10 max-w-[80ch]">
<h2 class="h2 mb-6">Manage Your Identity</h2>
<h2 class="h2 mb-8 text-center">Manage Your Identity</h2>
<slot />
</div>

View File

@@ -27,14 +27,18 @@
</script>
{#if !identityExists}
<div class="mb-6">
<span class="badge variant-ghost-secondary text-sm">Identity Not Found</span>
<div class="mb-8 text-center">
<span class="badge variant-ghost-secondary text-sm px-4 py-2">Identity Not Found</span>
</div>
<button on:click={() => createIdentity()} class="btn variant-filled-success" type="button">
Generate Identity
</button>
<RestoreIdentity />
{:else}
<BackupIdentity />
<DeleteIdentity />
{/if}
<div class="grid grid-flow-rows gap-5 my-5 max-w-md mx-auto">
{#if !identityExists}
<button on:click={() => createIdentity()} class="btn variant-filled-success" type="button">
Generate Identity
</button>
<RestoreIdentity />
{:else}
<BackupIdentity />
<DeleteIdentity />
{/if}
</div>

View File

@@ -33,7 +33,7 @@
>I promise I backed up my identity, or I really want to destroy it.</span
>
</section>
<footer class="card-footer float-right">
<footer class="card-footer text-center">
<button
id="delete-identity"
on:click={deleteIdentity}