You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
526 B
28 lines
526 B
<script lang="ts">
|
|
import type { ProjectResult } from "../models/project";
|
|
import QlListItem from "./QLListItem.svelte";
|
|
|
|
export let projects: ProjectResult[];
|
|
export let label: string = "";
|
|
</script>
|
|
|
|
{#if projects.length > 0}
|
|
<div class="ql-list">
|
|
<h2>{label}</h2>
|
|
{#each projects as project (project.id)}
|
|
<QlListItem project={project} />
|
|
{/each}
|
|
</div>
|
|
{/if}
|
|
|
|
<style>
|
|
div.ql-list {
|
|
margin: 1em 0;
|
|
}
|
|
|
|
h2 {
|
|
font-weight: 100;
|
|
margin: 0;
|
|
padding-bottom: 0.125em;
|
|
}
|
|
</style>
|