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.

27 lines
526 B

  1. <script lang="ts">
  2. import type { ProjectResult } from "../models/project";
  3. import QlListItem from "./QLListItem.svelte";
  4. export let projects: ProjectResult[];
  5. export let label: string = "";
  6. </script>
  7. {#if projects.length > 0}
  8. <div class="ql-list">
  9. <h2>{label}</h2>
  10. {#each projects as project (project.id)}
  11. <QlListItem project={project} />
  12. {/each}
  13. </div>
  14. {/if}
  15. <style>
  16. div.ql-list {
  17. margin: 1em 0;
  18. }
  19. h2 {
  20. font-weight: 100;
  21. margin: 0;
  22. padding-bottom: 0.125em;
  23. }
  24. </style>