summaryrefslogtreecommitdiff
path: root/src/lib/component/Ring.svelte
blob: 01e49101ed5a0e4501bd373f5fea3c7d77ca4084 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<script lang="ts">
  //// var
  const protocolRegex = /^(https?:\/\/)(www\.)?/;
  const referrer = "?ref=webb.page";

  const friends = [
    {
      alias: "",
      name: "Anna Maria",
      urls: ["https://annamariaperez.com"]
    },
    {
      alias: "Astro✨Dim",
      name: "",
      urls: ["https://www.astrodim.com"]
    },
    {
      alias: "bias",
      name: "",
      urls: [
        "https://www.mendicantbias.xyz",
        "https://www.punk.energy",
        "https://www.punkstep.com"
      ]
    },
    {
      alias: "",
      name: "Brad Barrish",
      urls: ["https://bradbarrish.me"]
    },
    {
      alias: "",
      name: "Cassandra Heart",
      urls: ["https://quilibrium.com"]
    },
    {
      alias: "",
      name: "Cornelius Toole",
      urls: ["https://micro.corntoole.com"]
    },
    {
      alias: "",
      name: "David Yarde",
      urls: ["https://davidyarde.com"]
    },
    {
      alias: "",
      name: "Dewon Hall",
      urls: ["https://thatcreativeguy.com"]
    },
    {
      alias: "riotgoools",
      name: "elle",
      urls: [
        "https://ellesho.me/page",
        "https://riotgoools.com",
        "https://veryinter.net/person"
      ]
    },
    {
      alias: "",
      name: "EmmoLei Sankofa",
      urls: ["https://www.e-sankofa.com"]
    },
    {
      alias: "eskimo",
      name: "",
      urls: ["https://eskimo.software"]
    },
    {
      alias: "",
      name: "Iheanyi Ekechukwu",
      urls: ["https://iheanyi.com"]
    },
    {
      alias: "",
      name: "Jacky Alciné",
      urls: ["https://jacky.wtf"]
    },
    {
      alias: "",
      name: "Jamar Torres",
      urls: ["https://www.jamar.dev"]
    },
    {
      alias: "",
      name: "Jesse Youngblood",
      urls: ["https://jesseyoungblood.com"]
    },
    {
      alias: "",
      name: "Jonathon Toon",
      urls: ["https://jonathontoon.com"]
    },
    {
      alias: "",
      name: "Jordan Greene",
      urls: ["https://www.jordankgreen.com"]
    },
    {
      alias: "",
      name: "Josh Sender",
      urls: ["https://www.joshsender.com"]
    },
    {
      alias: "",
      name: "Justin Edmund",
      urls: ["https://www.jedmund.com"]
    },
    {
      alias: "",
      name: "Kathy Varela",
      urls: ["https://www.kathyvarela.com"]
    },
    {
      alias: "DJ Brisseaux",
      name: "Karl Brisseaux",
      urls: ["https://kbrissy.com"]
    },
    {
      alias: "brisseaux",
      name: "Kervin Brisseaux",
      urls: ["https://www.brisseaux.com"]
    },
    {
      alias: "",
      name: "Kumail Hunaid",
      urls: ["https://kumailht.com"]
    },
    {
      alias: "my wife",
      name: "Lakeisha Webb",
      urls: ["https://sincerelyshantelle.com"]
    },
    {
      alias: "",
      name: "Lauren Dorman",
      urls: ["https://laurendorman.io"]
    },
    {
      alias: "",
      name: "Matt Thomas",
      urls: ["https://insidae.com"]
    },
    {
      alias: "",
      name: "Maurice Cherry",
      urls: ["https://www.mauricecherry.com"]
    },
    {
      alias: "Fresh Daily",
      name: "Michael Richardson",
      urls: ["https://freshdaily.godaddysites.com"]
    },
    {
      alias: "",
      name: "Mike Toney",
      urls: ["https://miketoney.com"]
    },
    {
      alias: "",
      name: "Ollie Barker",
      urls: ["https://www.olliebarker.co.uk"]
    },
    {
      alias: "",
      name: "Rasmus Andersson",
      urls: ["https://rsms.me"]
    },
    {
      alias: "",
      name: "Reginé Gilbert",
      urls: ["https://reginegilbert.com"]
    },
    {
      alias: "",
      name: "Samantha",
      urls: ["https://humankind.place"]
    },
    {
      alias: "",
      name: "Sang Lee",
      urls: ["https://www.sanglee.me"]
    },
    {
      alias: "SegamanXero",
      name: "",
      urls: ["https://www.segamanxero.com"]
    },
    {
      alias: "",
      name: "Selena Rox",
      urls: ["https://selenarox.com"]
    },
    {
      alias: "",
      name: "Shomi Patwary",
      urls: ["https://www.illusivemedia.com"]
    },
    {
      alias: "Skunkie",
      name: "Tara",
      urls: ["https://punklabs.com"]
    },
    {
      alias: "pugson",
      name: "Wojtek Witkowski",
      urls: ["https://wojtek.im"]
    },
    {
      alias: "Z",
      name: "",
      urls: ["https://blacksocialists.us"]
    }
  ];

  //// function
  function processUrl(url: string) {
    const ancillaryParts = url.match(protocolRegex);

    if (!ancillaryParts)
      return url;

    const ancillaryPartsMatch = ancillaryParts[0];
    const restOfUrl = url.slice(ancillaryPartsMatch.length);

    return `<span class="special-char">${ancillaryPartsMatch}</span>${restOfUrl}`;
  }
</script>

<style lang="scss">
  h2 {
    margin: 0 0 calc(var(--padding)* 2); padding: var(--padding) calc(var(--padding) * 2);

    background-color: var(--color-border);
    color: var(--uchu-yin-7);
    font-size: 1rem;
    line-height: inherit;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  ul {
    line-height: 1;
    margin-left: calc(var(--list-indentation) / 2);
    padding: 0 var(--list-indentation) calc(var(--list-indentation) * 4) 0;

    li {
      margin: 0; padding: 0 0 var(--baseline) calc(var(--baseline) * 2);

      line-height: var(--line-height);
      position: relative;

      &::before,
      &::after {
        background-color: var(--color-border);
        content: "";
        left: 0;
        position: absolute;
      }

      &::before {
        width: calc(var(--list-indentation) / 2); height: 1px;
        top: calc(var(--list-indentation) / 2.5);
      }

      &::after {
        width: 1px; height: var(--list-indentation);
        top: calc(var(--list-indentation) * -0.6);
      }

      &:not(:last-of-type) {
        &::after {
          height: 100%;
        }
      }
    }

    a {
      text-decoration: underline var(--uchu-yin-2);
    }
  }

  :global(.special-char) {
    color: var(--uchu-yin-3);
    letter-spacing: -0.05rem;
  }
</style>

<h2>ring.webb.page</h2>

<ul>
  {#each friends as friend}
    <li>
      {#if friend.name.length}
        {friend.name}
        {#if friend.alias}
          ({friend.alias})
        {/if}
      {:else}
        {friend.alias}
      {/if}

      <div>
        {#each friend.urls as url}
          <a href={url + referrer} target="_blank">{@html processUrl(url)}</a><br/>
        {/each}
      </div>
    </li>
  {/each}
</ul>