aboutsummaryrefslogtreecommitdiff
path: root/src/routes/+page.svelte
diff options
context:
space:
mode:
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>