2025-04-03 20:01:00 +02:00
|
|
|
|
<script lang="ts">
|
|
|
|
|
|
export interface LinkEntry {
|
|
|
|
|
|
icon?: string;
|
|
|
|
|
|
text: string;
|
|
|
|
|
|
link: string;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
|
entries,
|
|
|
|
|
|
} : {
|
|
|
|
|
|
entries: LinkEntry[];
|
|
|
|
|
|
} = $props();
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
{#each entries as entry}
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<a href={entry.link}>
|
|
|
|
|
|
{#if entry.icon}
|
|
|
|
|
|
<img height="24px" src={entry.icon}>
|
|
|
|
|
|
{/if}
|
|
|
|
|
|
{entry.text}
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
{/each}
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
ul {
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
li::before {
|
|
|
|
|
|
content: "–";
|
|
|
|
|
|
color: var(--color-highlight);
|
|
|
|
|
|
padding-right: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
li {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
transition: background-color 0.2s ease-in-out;
|
|
|
|
|
|
padding: 2px 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
li:hover {
|
|
|
|
|
|
background-color: var(--color-background-highlight-hover);
|
|
|
|
|
|
}
|
|
|
|
|
|
a {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
transition: color 0.2s ease-in-out;
|
|
|
|
|
|
}
|
|
|
|
|
|
a:link, a:visited {
|
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
a:hover {
|
|
|
|
|
|
color: var(--color-highlight);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
|
filter: var(--color-text-img);
|
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
|
margin-bottom: -4px;
|
2025-04-04 18:05:05 +02:00
|
|
|
|
width: fit-content !important;
|
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
display: inline;
|
2025-04-03 20:01:00 +02:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|