2023-12-15 23:13:59 +00:00
|
|
|
<script lang="ts">
|
2024-12-13 00:55:46 +00:00
|
|
|
import ExternalLink from '$lib/components/ExternalLink.svelte';
|
|
|
|
|
import { lucideIcon } from '$lib/util/logoIcons.svelte';
|
2024-12-09 05:26:51 +00:00
|
|
|
import type { Snippet } from "svelte";
|
2024-12-13 00:55:46 +00:00
|
|
|
import type { LinkTextType } from '$lib/types/externalLinkTypes';
|
2023-12-15 23:13:59 +00:00
|
|
|
|
2024-12-04 17:37:49 +00:00
|
|
|
interface Props {
|
2024-12-13 00:55:46 +00:00
|
|
|
linkData: LinkTextType;
|
2024-12-04 17:37:49 +00:00
|
|
|
ariaLabel: string;
|
|
|
|
|
href: string;
|
|
|
|
|
clazz?: string;
|
2024-12-13 00:55:46 +00:00
|
|
|
textData?: LinkTextType;
|
|
|
|
|
icon: Snippet;
|
2024-12-04 17:37:49 +00:00
|
|
|
}
|
|
|
|
|
|
2024-12-13 00:55:46 +00:00
|
|
|
let { ariaLabel, href, clazz = '', textData, icon }: Props = $props();
|
2023-12-15 23:13:59 +00:00
|
|
|
</script>
|
|
|
|
|
|
2024-12-13 00:55:46 +00:00
|
|
|
<ExternalLink
|
2025-08-14 02:24:57 +00:00
|
|
|
linkData={{ href, ariaLabel, clazz }}
|
2024-12-13 00:55:46 +00:00
|
|
|
textData={textData}
|
2025-08-14 02:24:57 +00:00
|
|
|
iconData={{ type: 'icon', icon }}
|
2024-12-13 00:55:46 +00:00
|
|
|
/>
|
2023-12-15 23:13:59 +00:00
|
|
|
|
|
|
|
|
<style lang="postcss">
|
|
|
|
|
a {
|
|
|
|
|
display: grid;
|
|
|
|
|
justify-items: center;
|
|
|
|
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
padding: 0.3rem;
|
|
|
|
|
margin-left: 1rem;
|
|
|
|
|
color: var(--lightGrey);
|
|
|
|
|
|
|
|
|
|
& p {
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
padding-top: 0.3rem;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: var(--shellYellow);
|
|
|
|
|
& p {
|
|
|
|
|
color: var(--shellYellow);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-12-09 05:26:51 +00:00
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
2023-12-15 23:13:59 +00:00
|
|
|
</style>
|