Skip to content

Commit

Permalink
Removed hyperlinked icon and replaced with button redirect logic (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-flinn authored Nov 3, 2024
1 parent b51e54d commit 903e3b2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions frontend/src/lib/components/Socials.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<script>
const data = [
{"link":"https://joseph.flinnlab.com/rss.xml", "icon": "fa-rss", "extra": ""},
{"link":"https://linkedin.com/in/joseph-flinn", "icon": "fa-linkedin-square", "extra": ""},
{"link":"https://github.com/joseph-flinn", "icon": "fa-github", "extra": ""},
{"link":"https://blog-images.flinnlab.com/resume-joseph-flinn.pdf", "icon": "fa-download", "extra": "CV"},
];
import { goto } from "$app/navigation";
const data = [
{"link":"https://joseph.flinnlab.com/rss.xml", "icon": "fa-rss", "extra": ""},
{"link":"https://linkedin.com/in/joseph-flinn", "icon": "fa-linkedin-square", "extra": ""},
{"link":"https://github.com/joseph-flinn", "icon": "fa-github", "extra": ""},
{"link":"https://blog-images.flinnlab.com/resume-joseph-flinn.pdf", "icon": "fa-download", "extra": "CV"},
];
</script>

Expand All @@ -14,15 +16,13 @@
<div
class="social-button"
on:click={() => {
goto(link.link).then(() => {})
window.location.href = link.link;
}}
>
<a href={link.link}>
<i class="fa {link.icon}"/>
{#if link.extra != ""}
{link.extra}
{/if}
</a>
<i class="fa {link.icon}"/>
{#if link.extra != ""}
{link.extra}
{/if}
</div>
{/each}
</div>
Expand Down

0 comments on commit 903e3b2

Please sign in to comment.