aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+page.svelte
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-02-28 20:04:00 +0100
committerpml68 <tutorialmester@gmail.com>2024-02-28 20:04:00 +0100
commit1d95cd1ba2972dd9eeb07442a199cf8c267183e6 (patch)
tree6a2a6df10b873edbf369b2b7bd28a211af08ffba /src/routes/+page.svelte
parentfix: the first three links were mixed up (diff)
downloadpml68.dev-1d95cd1ba2972dd9eeb07442a199cf8c267183e6.tar.gz
refactor: remove unnecessary warning about the a tag not having a child element
Diffstat (limited to '')
-rw-r--r--src/routes/+page.svelte9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 76d7348..83f505b 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -17,10 +17,6 @@
}
const socialsList: Social[] = socials
-
- const insertIcon: Function = (element: HTMLElement, iconIndex: string) => {
- element.innerHTML = icons[iconIndex]
- }
</script>
<svelte:head>
@@ -32,9 +28,12 @@
<p>Just your average IT student</p>
<div class="socials">
{#each socialsList as {link, iconIndex}}
- <a use:insertIcon={iconIndex} href={link} target="_blank" class="icon"></a>
+ <a href={link} target="_blank" class="icon">
+ {@html icons[iconIndex]}
+ </a>
{/each}
</div>
+ <br>
<div class="projects">
Check out my projects <a href={base + '/projects'}><b>here</b></a>
</div>