<template>
  <div>
    <header>
      <h1>{{indexName}}</h1>

      <h4 v-translate>A video index developed by <a href="https://framasoft.org" target="_blank">Framasoft</a></h4>

      <img src="/img/search-home.png" alt="">
    </header>
  </div>
</template>

<style lang="scss">
  @import '../scss/_variables';

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-family: monospace;

    img {
      width: 300px;
      margin: 30px 0 0 0;
    }

    h1 {
      font-size: 50px;
      margin: 0;
      text-align: center;
    }

    h4 {
      font-weight: normal;
      font-size: 14px;
      margin: 0;
      text-align: center;

      a {
        color: #000;
        font-weight: $font-semibold;
      }
    }

    @media screen and (max-width: $small-screen) {
      h1 {
        font-size: 30px;
        margin-bottom: 10px;
      }

      img {
        width: 100%;
        max-width: 300px;
      }
    }
  }

</style>

<script lang="ts">
  import Vue from 'vue'

  export default Vue.extend({
    props: {
      indexName: String
    }
  })
</script>
