2022-11-02 03:10:02 +00:00
|
|
|
<script lang="ts">
|
2024-07-07 06:12:36 +00:00
|
|
|
const { url, ariaLabel = `Link to ${url}`, external = false, children }: { url: string; ariaLabel?: string; external?: boolean; children: any } = $props();
|
2022-11-02 03:10:02 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<a
|
|
|
|
|
href={url}
|
|
|
|
|
target={external ? '_blank' : '_self'}
|
|
|
|
|
rel="noreferrer"
|
|
|
|
|
aria-label={`Board Game Atlas Link for ${ariaLabel}`}
|
|
|
|
|
>
|
2024-07-07 06:12:36 +00:00
|
|
|
{@render children()}
|
2022-11-02 03:10:02 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
a {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(2, auto);
|
|
|
|
|
place-items: center;
|
2023-01-08 00:12:55 +00:00
|
|
|
gap: 0.25rem;
|
2023-01-14 06:54:28 +00:00
|
|
|
margin: 1rem;
|
2022-11-02 03:10:02 +00:00
|
|
|
}
|
|
|
|
|
</style>
|