Skip to content

Commit

Permalink
fix(front): clean up project collection page
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Jan 28, 2024
1 parent 63bee2a commit 0429380
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions front/src/lib/components/cv/Project.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<script>
export let content;
import Aside from '@components/general/Aside/Aside.svelte';
import AsideGroup from '@components/general/Aside/AsideGroup.svelte';
import '@styles/pages/skills.css';
export let content;
let collection = 'projects';
let {
name,
body,
artifacts,
artifacts: { websites, videos },
organizations: { data: organizations },
industries: { data: industries },
organizations: { data: orgs },
awards: { data: awards },
skills: { data: skills },
} = content.project;
Expand All @@ -20,6 +22,33 @@
<h1>{name}</h1>
</header>

<Aside>
{#if orgs?.length}
<AsideGroup
{collection}
title={`Organization${orgs.length > 1 ? 's' : ''}`}
items={orgs}
singleton="organization"
/>
{/if}
{#if awards?.length}
<AsideGroup
{collection}
title={`Project${awards.length > 1 ? 's' : ''}`}
items={awards}
singleton="project"
/>
{/if}
{#if skills?.length}
<AsideGroup
{collection}
title={`Skill${skills.length > 1 ? 's' : ''}`}
items={skills}
singleton="skill"
/>
{/if}
</Aside>

<section class="project-details">
{#if body}
{@html body}
Expand Down

0 comments on commit 0429380

Please sign in to comment.