personal-website-sveltekit/src/routes/about/TechListItem.svelte

55 lines
1,001 B
Svelte
Raw Normal View History

<script lang="ts">
import ExternalLink from '$lib/components/ExternalLink.svelte';
import { lucideIcon } from '$lib/util/logoIcons.svelte';
import type { Snippet } from "svelte";
import type { LinkTextType } from '$lib/types/externalLinkTypes';
2024-12-04 17:37:49 +00:00
interface Props {
linkData: LinkTextType;
2024-12-04 17:37:49 +00:00
ariaLabel: string;
href: string;
clazz?: string;
textData?: LinkTextType;
icon: Snippet;
2024-12-04 17:37:49 +00:00
}
let { ariaLabel, href, clazz = '', textData, icon }: Props = $props();
</script>
<ExternalLink
2025-08-14 02:24:57 +00:00
linkData={{ href, ariaLabel, clazz }}
textData={textData}
2025-08-14 02:24:57 +00:00
iconData={{ type: 'icon', icon }}
/>
<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);
}
}
}
svg {
color: white;
}
</style>