aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/About.svelte
blob: 3160f537577ae945c14614c83b4a36d26daa410c (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
<script lang="ts">
  import PhMapTrifoldBold from "virtual:icons/ph/map-trifold-bold";
  import { onMount } from "svelte";
  import Image from "$comp/Image.svelte";
  import { t } from "$lib/translations";

  let team = [
    { name: "adam", socials: [] },
    { name: "cole", socials: [] },
  ];
</script>

<div class="flex justify-center">
  <div class="container space-y-10">
    <h3 class="text-5xl font-medium text-center">{$t("about.team.header")}</h3>
    <div class="space-y-10 2xl:space-y-0 2xl:grid gap-y-10 grid-cols-2">
      {#each team as member}
        <div class="flex w-full">
          <div class="md:flex 2xl:items-start md:max-w-2xl mx-auto">
            <div class="w-[220px] mx-auto">
              <Image image={member.name} style="rounded-full mx-auto w-40 h-40 mb-5 object-cover" />

              <div class="space-y-2">
                <span class="text-2xl text-center font-semibold block">
                  {$t(`about.team.${member.name}.name`)}
                </span>
                <span class="text-xl text-center text-secondary block">
                  {$t(`about.team.${member.name}.position`)}
                </span>
              </div>

              <div class="mt-2 flex justify-center items-center space-x-5">
                {#each member.socials as { alt, src, url }}
                  <a href={url} class={`rounded-full p-2 hover:opacity-80`}>
                    <img {src} {alt} class="w-8" />
                  </a>
                {/each}
              </div>
            </div>
            <div class="text-secondary text-xl w-full max-w-[450px] mt-5">
              {$t(`about.team.${member.name}.bio`)}
            </div>
          </div>
        </div>
      {/each}
    </div>
  </div>
</div>

<div class="mt-40">
  <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>

  <div class="flex justify-center">
    <a href="/map" class="btn btn-accent !w-auto !rounded-full px-10 text-xl gap-2">
      <PhMapTrifoldBold width="28" />
      {$t("about.locations.viewMap")}
    </a>
  </div>
</div>