src/components/SocialList.astro 6.6 K raw
1
---
2
import { SOCIAL_LINKS } from "@/data/constants";
3
4
// *** SVG icons from https://tablericons.com/ ***
5
---
6
7
<div class="flex flex-wrap items-center gap-x-4 sm:items-center">
8
	<p>Find me on</p>
9
	<ul class="flex flex-1 items-center gap-x-4 sm:flex-initial">
10
		<li>
11
			<a
12
				class="inline-block p-2 sm:hover:text-link"
13
				href={SOCIAL_LINKS.github}
14
				target="_blank"
15
				rel="noopener noreferrer"
16
			>
17
				<svg
18
					class="h-6 w-6"
19
					aria-hidden="true"
20
					focusable="false"
21
					xmlns="http://www.w3.org/2000/svg"
22
					viewBox="0 0 24 24"
23
					stroke-width="1.5"
24
					stroke="currentColor"
25
					fill="none"
26
					stroke-linecap="round"
27
					stroke-linejoin="round"
28
				>
29
					<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
30
					<path
31
						d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"
32
					>
33
					</path>
34
				</svg>
35
				<span class="sr-only">Github</span>
36
			</a>
37
		</li>
38
		<li>
39
			<a
40
				class="inline-block p-2 sm:hover:text-link"
41
				href={SOCIAL_LINKS.threads}
42
				target="_blank"
43
				rel="noopener noreferrer"
44
			>
45
				<svg 
46
					class="h-6 w-6"
47
					aria-hidden="true"
48
					focusable="false"
49
					xmlns="http://www.w3.org/2000/svg"
50
					viewBox="0 0 198 198"
51
					stroke-width="1.5"
52
					stroke="currentColor"
53
					fill="currentColor"
54
					stroke-linecap="round"
55
					stroke-linejoin="round"
56
				>
57
				<path d="M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"></path>
58
				</svg>
59
				<span class="sr-only">threads</span>
60
			</a>
61
		</li>
62
		<li>
63
			<a
64
				class="inline-block p-2 sm:hover:text-link"
65
				href={SOCIAL_LINKS.twitter}
66
				target="_blank"
67
				rel="noopener noreferrer"
68
			>
69
				<svg
70
					class="h-6 w-6"
71
					aria-hidden="true"
72
					focusable="false"
73
					xmlns="http://www.w3.org/2000/svg"
74
					viewBox="0 0 24 24"
75
					stroke-width="1.5"
76
					stroke="currentColor"
77
					fill="none"
78
					stroke-linecap="round"
79
					stroke-linejoin="round"
80
				>
81
					<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
82
					<path
83
						d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"
84
					>
85
					</path>
86
				</svg>
87
				<span class="sr-only">Twitter</span>
88
			</a>
89
		</li>
90
		<li>
91
			<a
92
				class="inline-block p-2 sm:hover:text-link"
93
				href={SOCIAL_LINKS.youtube}
94
				target="_blank"
95
				rel="noopener noreferrer"
96
			>
97
				<svg
98
					xmlns="http://www.w3.org/2000/svg"
99
					class="h-6 w-6"
100
					width="44"
101
					height="44"
102
					viewBox="0 0 24 24"
103
					stroke-width="1.5"
104
					stroke="currentColor"
105
					fill="none"
106
					stroke-linecap="round"
107
					stroke-linejoin="round"
108
				>
109
					<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
110
					<path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z"
111
					></path>
112
					<path d="M10 9l5 3l-5 3z"></path>
113
				</svg>
114
				<span class="sr-only">YouTube</span>
115
			</a>
116
		</li>
117
		<li>
118
			<a
119
				class="inline-block p-2 sm:hover:text-link"
120
				href={SOCIAL_LINKS.twitch}
121
				target="_blank"
122
				rel="noopener noreferrer"
123
			>
124
				<svg
125
					xmlns="http://www.w3.org/2000/svg"
126
					class="h-6 w-6"
127
					width="44"
128
					height="44"
129
					viewBox="0 0 24 24"
130
					stroke-width="1.5"
131
					stroke="currentColor"
132
					fill="none"
133
					stroke-linecap="round"
134
					stroke-linejoin="round"
135
				>
136
					<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
137
					<path
138
						d="M4 5v11a1 1 0 0 0 1 1h2v4l4 -4h5.584c.266 0 .52 -.105 .707 -.293l2.415 -2.414c.187 -.188 .293 -.442 .293 -.708v-8.585a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1z"
139
					></path>
140
					<path d="M16 8l0 4"></path>
141
					<path d="M12 8l0 4"></path>
142
				</svg>
143
				<span class="sr-only">Twitch</span>
144
			</a>
145
		</li>
146
		<li>
147
			<a
148
				class="inline-block p-2 sm:hover:text-link"
149
				href={SOCIAL_LINKS.medium}
150
				target="_blank"
151
				rel="noopener noreferrer"
152
			>
153
				<svg
154
					xmlns="http://www.w3.org/2000/svg"
155
					class="h-6 w-6"
156
					viewBox="0 0 24 24"
157
					stroke-width="1.5"
158
					stroke="currentColor"
159
					fill="none"
160
					stroke-linecap="round"
161
					stroke-linejoin="round"
162
				>
163
					<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
164
					<rect x="4" y="4" width="16" height="16" rx="2"></rect>
165
					<path d="M8 9h1l3 3l3 -3h1"></path>
166
					<line x1="8" y1="15" x2="10" y2="15"></line>
167
					<line x1="14" y1="15" x2="16" y2="15"></line>
168
					<line x1="9" y1="9" x2="9" y2="15"></line>
169
					<line x1="15" y1="9" x2="15" y2="15"></line>
170
				</svg>
171
				<span class="sr-only">Medium</span>
172
			</a>
173
		</li>
174
	</ul>
175
</div>