Skip to content

Commit 19f2466

Browse files
committed
Update links
1 parent d497a06 commit 19f2466

File tree

3 files changed

+45
-17
lines changed

3 files changed

+45
-17
lines changed

src/lib/assets/svg/WebsiteIcon.svelte

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<svg
2+
width="24px"
3+
height="24px"
4+
viewBox="0 0 15.36 15.36"
5+
id="_x30_1"
6+
version="1.1"
7+
class="w-6 h-6 transition fill-zinc-500 group-hover:fill-zinc-50 dark:fill-zinc-400 dark:group-hover:fill-zinc-300"
8+
xml:space="preserve"
9+
xmlns="http://www.w3.org/2000/svg"
10+
xmlns:xlink="http://www.w3.org/1999/xlink"
11+
><path
12+
d="M7.68 0C3.438 0 0 3.438 0 7.68s3.438 7.68 7.68 7.68 7.68 -3.438 7.68 -7.68S11.922 0 7.68 0m4.868 4.38h-1.4c-0.161 -0.675 -0.37 -1.296 -0.618 -1.845 0.474 0.263 0.913 0.594 1.307 0.988A5.94 5.94 0 0 1 12.548 4.38M13.56 7.68c0 0.513 -0.066 1.016 -0.192 1.5h-1.921c0.048 -0.485 0.073 -0.987 0.073 -1.5s-0.025 -1.015 -0.073 -1.5h1.921c0.127 0.484 0.192 0.987 0.192 1.5M7.68 13.56c-0.156 0 -0.631 -0.307 -1.105 -1.254 -0.196 -0.393 -0.365 -0.84 -0.503 -1.326h3.216c-0.138 0.486 -0.306 0.933 -0.503 1.326C8.311 13.253 7.836 13.56 7.68 13.56m-1.956 -4.38c-0.055 -0.487 -0.084 -0.991 -0.084 -1.5s0.029 -1.013 0.084 -1.5h3.911c0.055 0.487 0.084 0.991 0.084 1.5s-0.029 1.013 -0.084 1.5zM1.8 7.68c0 -0.513 0.066 -1.016 0.192 -1.5h1.921c-0.048 0.485 -0.073 0.987 -0.073 1.5s0.025 1.015 0.073 1.5H1.992C1.866 8.696 1.8 8.193 1.8 7.68M7.68 1.8c0.156 0 0.631 0.307 1.105 1.254 0.196 0.393 0.365 0.84 0.503 1.326H6.072c0.138 -0.486 0.306 -0.933 0.503 -1.326C7.049 2.107 7.524 1.8 7.68 1.8m-2.851 0.735c-0.248 0.549 -0.457 1.17 -0.618 1.845H2.812a5.94 5.94 0 0 1 0.71 -0.858c0.394 -0.394 0.834 -0.724 1.307 -0.988M2.812 10.98h1.4c0.161 0.675 0.37 1.296 0.618 1.845 -0.474 -0.263 -0.913 -0.594 -1.307 -0.988A5.94 5.94 0 0 1 2.812 10.98m7.719 1.845c0.248 -0.549 0.457 -1.17 0.618 -1.845h1.4a5.94 5.94 0 0 1 -0.71 0.858c-0.394 0.394 -0.834 0.724 -1.307 0.988"
13+
/></svg
14+
>

src/lib/components/SocialLinks.svelte

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<script>
2-
import { linkedin, instagram, twitter, github, resume, homepage } from '$lib/info';
2+
import { linkedin, instagram, twitter, github, resume } from '$lib/info';
3+
import WebsiteIcon from '../assets/svg/WebsiteIcon.svelte';
34
</script>
45

56
{#if twitter}
6-
<a href={`https://twitter.com/${twitter}`} class="group" aria-label="Follow on Twitter">
7+
<a
8+
href={`https://twitter.com/${twitter}`}
9+
class="group"
10+
aria-label="Follow on Twitter"
11+
target="_blank"
12+
>
713
<svg
814
viewBox="0 0 24 24"
915
aria-hidden="true"
@@ -17,7 +23,12 @@
1723
{/if}
1824

1925
{#if instagram}
20-
<a href={`https://instagram.com/${instagram}`} class="group" aria-label="Follow on Instagram">
26+
<a
27+
href={`https://instagram.com/${instagram}`}
28+
class="group"
29+
aria-label="Follow on Instagram"
30+
target="_blank"
31+
>
2132
<svg
2233
viewBox="0 0 24 24"
2334
aria-hidden="true"
@@ -34,7 +45,12 @@
3445
{/if}
3546

3647
{#if github}
37-
<a href={`https://github.com/${github}`} class="group" aria-label="Follow on GitHub">
48+
<a
49+
href={`https://github.com/${github}`}
50+
class="group"
51+
aria-label="Follow on GitHub"
52+
target="_blank"
53+
>
3854
<svg
3955
viewBox="0 0 24 24"
4056
aria-hidden="true"
@@ -50,7 +66,12 @@
5066
{/if}
5167

5268
{#if linkedin}
53-
<a href={`https://linkedin.com/${linkedin}`} class="group" aria-label="Follow on LinkedIn">
69+
<a
70+
href={`https://linkedin.com/${linkedin}`}
71+
class="group"
72+
aria-label="Follow on LinkedIn"
73+
target="_blank"
74+
>
5475
<svg
5576
viewBox="0 0 24 24"
5677
class="w-6 h-6 transition fill-zinc-500 group-hover:fill-blue-600 dark:fill-zinc-400 dark:group-hover:fill-zinc-300"
@@ -63,7 +84,7 @@
6384
{/if}
6485

6586
{#if resume}
66-
<a href={resume} class="group" aria-label="Read my resume">
87+
<a href={resume} class="group" aria-label="Read my resume" target="_blank">
6788
<div
6889
class="rounded-md justify-center text-center flex w-6 h-6 transition bg-zinc-500 group-hover:bg-zinc-600 dark:bg-zinc-400 dark:group-hover:bg-zinc-300"
6990
>
@@ -72,12 +93,6 @@
7293
</a>
7394
{/if}
7495

75-
{#if homepage}
76-
<a href="https://sahl.dev" class="group" aria-label="See my website">
77-
<img
78-
class="hover:drop-md rounded-md justify-center text-center flex w-6 h-6 transition bg-zinc-500 group-hover:bg-zinc-600 dark:bg-zinc-400 dark:group-hover:bg-zinc-300"
79-
src={homepage}
80-
alt="homepage"
81-
/>
82-
</a>
83-
{/if}
96+
<a href="https://sahl.dev" class="group" aria-label="See my website" target="_blank">
97+
<WebsiteIcon />
98+
</a>

src/lib/info.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ export const name = `${firstName} ${lastName}`;
1111

1212
// Used for the landing page & footer of posts
1313
import avatar from '$lib/assets/cv_img_crop.jpg';
14-
import homepage from '$lib/assets/page_icon.jpg';
1514

16-
export { avatar, homepage };
15+
export { avatar };
1716

1817
export const bio = `\
1918
I'm ${firstName}, a fullstack developer based in Sweden with a passion for building useful things.

0 commit comments

Comments
 (0)