blob: 62a46bda77dce5d9163b9232330b7372badffafc (
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
|
<script>
import { onMount } from "svelte";
import Icon from "$comp/Icon.svelte";
import Image from "$comp/Image.svelte";
import LocationsMap from "$comp/LocationsMap.svelte";
import { t } from "$lib/translations";
let team = [
{
name: "adam",
socials: [
{
type: "twitter",
url: "https://twitter.com/adamsoltys",
color: "bg-[#1D9BF0]",
},
{
type: "github",
url: "https://github.com/asoltys",
color: "bg-gray-800",
},
],
},
{ name: "cole", socials: [] },
];
let locations;
onMount(async () => {
try {
({ locations } = await fetch("/locations").then((r) => r.json()));
} catch (e) {
console.log(e);
}
});
</script>
{#if locations?.length}
<div>
<h3 class="text-5xl font-medium mb-5 text-center">
{$t("about.locations.header")}
</h3>
<p
class="text-secondary text-xl w-full md:w-10/12 lg:w-2/3 2xl:w-[800px] mx-auto mb-10"
>
{@html $t("about.locations.description")}
</p>
<LocationsMap {locations} />
</div>
{/if}
|