|
1 | 1 | <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'; |
3 | 4 | </script> |
4 | 5 |
|
5 | 6 | {#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 | + > |
7 | 13 | <svg |
8 | 14 | viewBox="0 0 24 24" |
9 | 15 | aria-hidden="true" |
|
17 | 23 | {/if} |
18 | 24 |
|
19 | 25 | {#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 | + > |
21 | 32 | <svg |
22 | 33 | viewBox="0 0 24 24" |
23 | 34 | aria-hidden="true" |
|
34 | 45 | {/if} |
35 | 46 |
|
36 | 47 | {#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 | + > |
38 | 54 | <svg |
39 | 55 | viewBox="0 0 24 24" |
40 | 56 | aria-hidden="true" |
|
50 | 66 | {/if} |
51 | 67 |
|
52 | 68 | {#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 | + > |
54 | 75 | <svg |
55 | 76 | viewBox="0 0 24 24" |
56 | 77 | 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 | 84 | {/if} |
64 | 85 |
|
65 | 86 | {#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"> |
67 | 88 | <div |
68 | 89 | 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" |
69 | 90 | > |
|
72 | 93 | </a> |
73 | 94 | {/if} |
74 | 95 |
|
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> |
0 commit comments