Skip to content

Commit

Permalink
edit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
scobru committed Oct 6, 2024
1 parent 2f7d76a commit 81d0eec
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/svelte/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
</div>
</div>

<div class="my-8 w-full bg-gradient-to-r from-purple-600 via-pink-500 to-red-500 py-8 text-center text-white">
<h2 class="mb-2 text-4xl font-bold">Live on Optimism!</h2>
</div>

<div class="bg-base-300 mt-16 w-full flex-grow px-8 py-12">
<div class="flex flex-col items-center justify-center gap-12 sm:flex-row">
<div class="flex max-w-xs flex-col items-center rounded-3xl px-10 py-10 text-center">
Expand Down
8 changes: 3 additions & 5 deletions packages/svelte/src/routes/auth/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
try {
if (!account.address) {
errorMessage = "Nessun account Ethereum connesso";
errorMessage = "Please connect your Ethereum wallet";
return;
}
Expand Down Expand Up @@ -167,10 +167,8 @@

{#if $currentUser === null}
<div class="flex justify-center space-x-4">
<button class="btn btn-primary" on:click={registra}><i class="fas fa-user-plus"></i> Registra con Ethereum</button
>
<button class="btn btn-secondary" on:click={accedi}><i class="fas fa-sign-in-alt"></i> Accedi con Ethereum</button
>
<button class="btn btn-primary" on:click={registra}><i class="fas fa-user-plus"></i> Sign In</button>
<button class="btn btn-secondary" on:click={accedi}><i class="fas fa-sign-in-alt"></i> Login</button>
</div>
{:else}
<div class="bg-base-100 mb-4 break-all rounded px-8 pb-8 pt-6 text-center shadow-md">
Expand Down
15 changes: 15 additions & 0 deletions packages/svelte/src/routes/shine/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,19 @@
{/if}
</div>
{/if}

<div class="mt-8 border border-gray-300 p-4 rounded-lg">
<h2 class="text-xl font-semibold mb-2">How to Use Verification</h2>
<ol class="list-decimal list-inside">
<li>Save a message using the "Enter a message" field and the "Save Message" button.</li>
<li>Copy the Node ID that appears after saving the message.</li>
<li>Paste the Node ID into the "Node ID (for verification)" field.</li>
<li>Click the "Verify Message" button.</li>
<li>The verification result will appear below, showing whether the message was successfully verified on the blockchain.</li>
</ol>
<p class="mt-2 text-sm opacity-75">
Note: The verification compares the hash of the locally saved message with the one recorded on the blockchain,
confirming the integrity and authenticity of the data.
</p>
</div>
</div>

0 comments on commit 81d0eec

Please sign in to comment.