<template>
  <footer>
    <ul>
      <li>
        <a href="https://github.com/KevinMidboe/vinlottis" class="github">
          <span>Open-sourced at github</span>
          <img src="/public/assets/images/logo-github.png" alt="github logo">
        </a>
      </li>

      <li>
        <a href="mailto:questions@vinlottis.no" class="mail">
          <span class="vin-link">questions@vinlottis.no</span>
        </a>
      </li>
    </ul>

    <router-link to="/" class="company-logo">
      <img src="/public/assets/images/knowit.svg" alt="knowit logo">
    </router-link>
  </footer>
</template>

<script>
export default {
  name: 'WineFooter'
}
</script>

<style lang="scss" scoped>
@import "../styles/variables.scss";
@import "../styles/media-queries.scss";

footer {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f4f4;

  ul {
    list-style-type: none;
    padding: 0;
    margin-left: 5rem;

    li:not(:first-of-type) {
      margin-top: 0.75rem;
    }
  }

  a {
    color: $matte-text-color;
  }

  .github {
    display: flex;
    align-items: center;


    img {
      margin-left: 0.5rem;
      height: 30px;
    }
  }

  .mail {
    display: flex;
    align-items: center;

    img {
      margin-left: 0.5rem;
      height: 23px;
    }
  }

  .company-logo{
    margin-right: 5em;

    img {
      width: 100px;
    }
  }

  @include mobile {
    $margin: 1rem;
    ul {
      margin-left: $margin;
    }

    .company-logo {
      margin-right: $margin;
    }
  }
}

</style>