<template>
  <div class="page">
    <div class="cover">
      <img
        class="cover-image"
        src="~/assets/images/landing.svg"
        width="100%"
        alt="cover-image"
      />
      <div class="text">
        <h1>Discover, Play, and Create Minecraft content</h1>
        <h3>
          Find enjoyable and quality content through our open-source modding
          platform built for the community. Create stuff, get paid*, and deploy
          your project with our fully documented API!
        </h3>
        <form action="/mods">
          <div class="iconified-input">
            <label class="hidden" for="q">Search Mods</label>
            <SearchIcon />
            <input
              id="q"
              type="search"
              name="q"
              placeholder="Search mods..."
              autocomplete="off"
            />
          </div>
          <button class="iconified-button brand-button-colors" type="submit">
            <RightArrowIcon />
            Search
          </button>
        </form>
      </div>
    </div>
  </div>
</template>

<script>
import SearchIcon from '~/assets/images/utils/search.svg?inline'
import RightArrowIcon from '~/assets/images/utils/right-arrow.svg?inline'

export default {
  components: {
    SearchIcon,
    RightArrowIcon,
  },
  auth: false,
  data() {
    return {}
  },
  methods: {},
}
</script>

<style lang="scss" scoped>
.page {
  max-width: 1280px;
  margin: 0 auto;

  .cover {
    img {
      border-radius: var(--size-rounded-lg);
      width: 100%;
      height: calc(75vh - var(--size-navbar-height));
      object-fit: cover;
      object-position: 10% 12.5%;
    }

    .text {
      position: absolute;
      top: calc(10vh + var(--size-navbar-height));
      width: 30rem;
      //max-width: 25%;
      padding-left: 6rem;

      color: #fff;

      h2 {
        color: #fff;
        text-transform: uppercase;
      }

      h1 {
        color: #fff;
        margin: 1rem 0;
        font-size: var(--font-size-2xl);
      }

      h3 {
        color: #fff;
        font-size: var(--font-size-lg);
        font-weight: normal;
        margin-bottom: 1rem;
      }

      form {
        display: flex;
        align-items: center;

        .iconified-button {
          margin-left: 0.25rem;
          padding: 1.25rem 1rem;
        }
      }
    }
  }
}
</style>
