<template>
  <div class="topbar">
    <h1>
      <nuxt-link to="/">
        Olivier Massot - Fullstack Developer
      </nuxt-link>
    </h1>

    <v-spacer />

    <div class="icon-links">
      <ThemeSwitcher />

      <nuxt-link
          href="https://github.com/olinox14"
          target="_blank"
          aria-label="Find me on Github"
      >
        <v-icon>fab fa-github</v-icon>
      </nuxt-link>

      <nuxt-link
          href="https://stackoverflow.com/users/4279120/olinox14"
          target="_blank"
          aria-label="Find me on Stackoverflow"
      >
        <v-icon>fab fa-stack-overflow</v-icon>
      </nuxt-link>

      <nuxt-link
          href="https://www.linkedin.com/in/olivier-massot-60b87b181"
          target="_blank"
          aria-label="Find me on LinkedIn"
      >
        <v-icon>fab fa-linkedin</v-icon>
      </nuxt-link>
    </div>
  </div>
</template>

<script setup lang="ts">
  import ThemeSwitcher from "~/components/ThemeSwitcher.vue";
  import type {Ref} from "@vue/reactivity";
</script>

<style scoped lang="scss">
.topbar {
  height: 72px;
  display: flex;
  flex-direction: row;
  margin: 0 15%;
  padding: 18px;
  align-items: center;

  @media (max-width: 1280px) {
    margin: 0 10%;
  }

  @media (max-width: 600px) {
    margin: 0 5%;
  }

  h1 {
    font-size: 22px;

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

  .v-btn {
    color: rgb(var(--v-theme-on-neutral));
  }

  .icon-links {
    font-size: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;

    > * {
      margin-left: 24px;
    }

    a {
      color: rgb(var(--v-theme-on-neutral--clickable));
    }
  }
}
</style>