<template>
  <PageMeta
      title="Olivier Massot - Fullstack developer"
      description=""
  />

  <div class="banner">
    <h1>
      {{ $t('Fullstack developer') }}
    </h1>

    <h2>
      {{ $t('twelve_years_experience') }}
    </h2>

    <div class="introduction">
      <div>
        {{ $t('intro_part_1') }}
      </div>

      <div>
        {{ $t('intro_part_2') }}
      </div>

      <div>
        {{ $t('intro_part_3') }}
      </div>

      <div v-html="$t('intro_part_4')" />

      <div>
        {{ $t('intro_part_5') }}
      </div>

      <div class="logos mt-3">
        <BannerLogo
          href="https://github.com/olinox14"
          img="/images/logos/github_large_dark.png"
          :alt="i18n.t('Find me on Github')"
        />

        <BannerLogo
          href="https://stackoverflow.com/users/4279120/olinox14"
          img="/images/logos/stackoverflow.svg"
          :alt="i18n.t('Find me on Stackoverflow')"
          class="so-logo"
        />

        <BannerLogo
          href="https://www.linkedin.com/in/olivier-massot-60b87b181"
          img="/images/logos/linkedin.png"
          :alt="i18n.t('Find me on LinkedIn')"
        />

        <BannerLogo
          href="https://www.codingame.com/profile/75dcc329745def530c02ddb4485f22235683081"
          img="/images/logos/codingame.svg"
          :alt="i18n.t('Find me on Codingame')"
        />
      </div>
    </div>
  </div>

  <div class="badges">
    <h2>Languages</h2>
    <div class="badges-section">
      <Badge
        title="Python"
        img="/images/logos/python.svg"
        subtitle="12 years"
        details="J'ai travaillé sur de très nombreux projets avec Python, depuis la version 2.7 jusqu'à la version 3.12: scripts variés, extensions QGis, projets web, librairies, utilitaires ou applications buraeautiques."
      />
      <Badge title="PHP" img="/images/logos/php.svg" subtitle="4 years" />
      <Badge title="Node.js" img="/images/logos/node-light.svg" subtitle="5 years" />
      <Badge title="C#" img="/images/logos/csharp.png" subtitle="2 years" />
    </div>

    <h2>Frameworks</h2>
    <div class="badges-section">
      <Badge title="Symfony" img="/images/logos/symfony.svg" subtitle="4 years" />
      <Badge title="Vue.js" img="/images/logos/vue.png" subtitle="3 years" />
      <Badge title="Nuxt.js" img="/images/logos/nuxt.svg" subtitle="3 years" />
      <Badge title="Django" img="/images/logos/django-light.svg" subtitle="2 years" />
      <Badge title=".Net" img="/images/logos/dotnet.svg" subtitle="2 years" />
      <Badge title="Jquery" img="/images/logos/jquery.png" subtitle="4 years"/>
    </div>

    <h2>DBs and search-engines</h2>
    <div class="badges-section">
      <Badge title="Mysql" img="/images/logos/mysql.png" subtitle="6 years" />
      <Badge title="MariaDb" img="/images/logos/mariadb.svg" subtitle="6 years" />
      <Badge title="Postgresql" img="/images/logos/postgresql.png" subtitle="4 years"/>
      <Badge title="SQL-Server" img="/images/logos/sql-server.svg" subtitle="6 years" />
      <Badge title="Sqlite" img="/images/logos/sqlite.png" subtitle="5 years" />
      <Badge title="Solr" img="/images/logos/solr.png" subtitle="1 year" />
    </div>

    <h2>Devops</h2>
    <div class="badges-section">
      <Badge title="Docker" img="/images/logos/docker.svg" subtitle="5 years" />
      <Badge title="Gitlab CI" img="/images/logos/gitlab.svg" subtitle="8 years" />
      <Badge title="Github Actions" img="/images/logos/github-light.svg" subtitle="1 year" />
      <Badge title="Jenkins" img="/images/logos/jenkins.png" subtitle="4 years" />
    </div>

    <h2>CMS</h2>
    <div class="badges-section">
      <Badge title="Typo3 (development)" img="/images/logos/typo3.png" subtitle="4 year" />
      <Badge title="Wordpress (administration)" img="/images/logos/wordpress.png" subtitle="6 years"/>
    </div>

    <h2>Other</h2>
    <div class="badges-section">
      <Badge title="Mercure (SSE)" img="/images/logos/mercure.svg" subtitle="3 years" />
      <Badge title="Nextcloud" img="/images/logos/nextcloud.svg" subtitle="6 years" />
    </div>
  </div>
</template>

<script setup lang="ts">

const i18n = useI18n()

</script>

<style scoped lang="scss">
.banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;

  @media (min-width: 1920px) {
    height: 640px;
  }

  h2 {
    margin: 18px 0;
    border-bottom: none;
  }

  .introduction {
    max-width: 800px;
    text-align: justify;
    padding: 36px;
    border: solid 1px rgba(var(--v-theme-on-neutral), 0.4);
    border-radius: 16px;
    background: rgba(var(--v-theme-primary-alt), 0.1);

    > div {
      margin-bottom: 16px;
    }

    :deep(a) {
      color: rgb(var(--v-theme-on-neutral));
      font-weight: 700;
      text-decoration: none;
    }

    .logos {
      display: flex;
      flex-direction: row;

      .so-logo {
        background-color: white;
        border-radius: 6px;
      }
    }
  }
}

.badges {

}

.badges-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;

  .v-card {
    margin: 24px;
  }
}
</style>