Skip to content

Commit

Permalink
Display card links for items
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Aug 30, 2024
1 parent 13f8217 commit 42f2ac6
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/routes/[group]/[item]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Navbar } from '$components';
import { IconCard, RepoCard, PackageCard, CardList } from '$components/card';
import { IconCard, RepoCard, PackageCard, CardList, ItemCardGrid } from '$components/card';
import { ItemChipList } from '$components/chip';
import Background from '$components/Background.svelte';
import Paper from '$components/Paper.svelte';
Expand Down Expand Up @@ -102,7 +102,17 @@
<AsciinemaPlayer castUrl="/projects/{label.slug}/demo.asciinema" />
{/if} -->

<!-- TODO: Display linked items as cards -->
<!-- Display linked items as cards -->
<div id="card-links">
{#each itemData.info.links.filter(([l]) => l.style === 'card') as [linkOptions, linkedItems]}
<h2>{linkOptions.title}</h2>
<ItemCardGrid
globals={data.globals}
groupId={linkOptions.groupId}
itemIds={linkedItems}
/>
{/each}
</div>
</main>

<style>
Expand Down Expand Up @@ -136,7 +146,7 @@
width: 80%;
}
/* #association-cards {
#card-links {
width: 80%;
} */
}
</style>

0 comments on commit 42f2ac6

Please sign in to comment.