-
- {#if !data.nfts.length}
-
No NFTs have been minted yet.
- {:else}
- {#each data.nfts as nft}
-
-
-
- {/each}
- {/if}
-
-
+
- {data.nft.name} #{data.nft.serialNumber}
+ {data.nft.certificate.typeOfNaturalObject}
+
+
+ {data.nft.certificate.typeOfWork}
+
+ Operations manager: {data.nft.certificate.operationsManager}
+
+ Effect on biodiversity
+ {data.nft.certificate.effectOnBiodiversity}
+
+ Location
+
+
+ Coordinates
+
+ {data.nft.certificate.swissGridE?.toLocaleString()} / {data.nft.certificate.swissGridN?.toLocaleString()}
+
+
+
+ NFT
{#snippet withAccountInformation({ hashConnect })}
{#if hashConnect.accountInformation.hasAssociatedWithToken}
@@ -23,8 +84,11 @@
executeTransaction: hashConnect.session.executeTransaction,
})
}}
+ class="{navigationLinkStyles.navigationLink} {navigationLinkStyles.withIconRight}"
>
- Claim
+ Claim this NFT
+
+
{:else}
{/if}
{/snippet}
-
- {new Date(data.nft.certificate.dateOfWork).toLocaleDateString()}
- {data.nft.certificate.swissGridE} / {data.nft.certificate.swissGridN}
- {data.nft.certificate.operationsManager}
- {data.nft.certificate.typeOfNaturalObject}
- {data.nft.certificate.typeOfWork}
- {data.nft.certificate.effectOnBiodiversity}
diff --git a/frontend/src/routes/certificates/[serialNumber]/+page.ts b/frontend/src/routes/certificates/[serialNumber]/+page.ts
index 7444126..334957a 100644
--- a/frontend/src/routes/certificates/[serialNumber]/+page.ts
+++ b/frontend/src/routes/certificates/[serialNumber]/+page.ts
@@ -14,6 +14,6 @@ export const load = async ({ fetch, params }) => {
return {
nft,
- metadataTitle: `${nft.name} #${nft.serialNumber} - BIDI`,
+ metadataTitle: `${nft.certificate.typeOfNaturalObject} - BIDI`,
}
}
diff --git a/frontend/src/routes/dashboard/+layout.svelte b/frontend/src/routes/dashboard/+layout.svelte
index 632de6b..1ab40c6 100644
--- a/frontend/src/routes/dashboard/+layout.svelte
+++ b/frontend/src/routes/dashboard/+layout.svelte
@@ -15,11 +15,11 @@