mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
44 lines
No EOL
773 B
Svelte
44 lines
No EOL
773 B
Svelte
<script lang="ts">
|
|
import ExternalLink from "$lib/components/ExternalLink.svelte";
|
|
import Tag from "$lib/components/Tag.svelte";
|
|
import type { Course } from "$lib/types/courses";
|
|
|
|
interface Props {
|
|
course: Course;
|
|
}
|
|
|
|
let { course }: Props = $props();
|
|
const { externalLinks, tags } = course;
|
|
</script>
|
|
|
|
<div class="card">
|
|
<h3>
|
|
{#each externalLinks as link}
|
|
<ExternalLink
|
|
ariaLabel={link.ariaLabel}
|
|
href={link.href}
|
|
showIcon={link.showIcon}
|
|
>
|
|
{link.text}
|
|
</ExternalLink>
|
|
{/each}
|
|
</h3>
|
|
<div class="tags">
|
|
{#each tags as tag}
|
|
<Tag name={tag} />
|
|
{/each}
|
|
</div>
|
|
</div>
|
|
|
|
<style lang="postcss">
|
|
.card {
|
|
max-width: 30rem;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: left;
|
|
align-items: center;
|
|
}
|
|
</style> |