Skip to content

Commit

Permalink
Renamed verified variables to ecoLinked
Browse files Browse the repository at this point in the history
Added block to asset page
  • Loading branch information
MGrudule committed Jul 4, 2024
1 parent 922f3ad commit 8dab026
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/verification-portal/src/lib/components/NFTImage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
export let url: string;
export let alt: string;
export let verified = false;
export let ecoLinked = false;
export let multiPass = false;
export let size = 300;
export let imgClass =
Expand Down Expand Up @@ -47,7 +47,7 @@

<div class="relative">
<div class="absolute z-50 right-0 top-5 translate-x-1/2 flex flex-col gap-2">
{#if verified}
{#if ecoLinked}
<VerifiedIcon
className="text-white dark:text-primary-200 fill-primary-300 dark:fill-deep-green"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import ShareCard from '$lib/components/ShareCard.svelte';
import AudioPlayer from '$lib/components/media/AudioPlayer.svelte';
import NewsCarousel from '$lib/components/carousel/NewsCarousel.svelte';
import MultipassCta from '$lib/widgets/MultipassCTA/MultipassCTA.svelte';
import LL from '$lib/shared/i18n/i18n-svelte.js';
import { subscribeToPage, setTocTitle } from '$lib/features/toc';
Expand All @@ -26,6 +28,8 @@
onDestroy(unsubscribe);
const multiPass = false; //TODO: replace with server variable from api
$: currentPath = $page.url.toString();
$: pageTitle = `${$LL.assets.title({ assetName: nftData!.name })}`;
Expand Down Expand Up @@ -79,7 +83,12 @@
class="w-100 relative z-10 col-span-1 mb-8 flex justify-center lg:col-span-4 lg:mb-4 xl:col-span-4 xl:col-start-1"
>
{#key nftData}
<NFTImage verified={ecoLinked} url={nftData.image} alt={nftData.name} />
<NFTImage
{ecoLinked}
{multiPass}
url={nftData.image}
alt={nftData.name}
/>
{/key}
</div>
<div class="lg:col-span-8 xl:col-span-8">
Expand Down Expand Up @@ -133,6 +142,9 @@
</div>

<!-- /header -->
{#if multiPass}
<MultipassCta></MultipassCta>
{/if}

{#if ecoLinked && deepData}
<div
Expand Down

0 comments on commit 8dab026

Please sign in to comment.