aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingHero.svelte
blob: bb5f3d8b23fceade9a6d76fd0472ed2be973ab6e (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
<script lang="ts">
  import CoinosRays from "virtual:icons/coinos/rays";
  import { focus } from "$lib/utils";
  import { goto } from "$app/navigation";
  import Image from "$comp/Image.svelte";
  import { t } from "$lib/translations";
</script>

<div class="pt-20 md:mt-0">
  <div class="space-y-5">
    <h1
      class="relative text-5xl md:text-6xl lg:text-7xl font-medium text-center w-full md:w-3/4 lg:w-1/2 max-w-7xl mx-auto"
    >
      <CoinosRays width="158" class="absolute -top-14 md:-top-20 left-2/3 -translate-x-1/2" />
      {$t("landing.header_before_icon")}
      {$t("landing.header_with_icon")}
      {$t("landing.header_after_icon")}
    </h1>
    <h2
      class="text-center text-secondary w-full md:w-3/5 lg:w-2/5 max-w-3xl mx-auto text-xl leading-normal font-medium"
    >
      {$t("landing.subheader")}
    </h2>

    <div class="text-center">
      <a href="/register">
        <button
          use:focus
          class="btn !rounded-full bg-primary text-primary-content hover:bg-primary/80 !w-auto px-12 text-xl start-btn"
        >
          {$t("nav.startInSeconds")}
        </button>
      </a>
    </div>
  </div>

  <Image image="hero-image" style="w-full h-auto md:w-2/3 max-w-5xl mx-auto mt-20 aspect-[600/581]" width={600} height={581} fetchpriority="high" />
</div>

<style>
  :global([data-theme="black"]) .start-btn {
    background: white;
    color: black;
  }
  :global([data-theme="black"]) .start-btn:hover {
    background: rgba(255, 255, 255, 0.85);
  }
</style>