<template>
  <LayoutContainer>
    <v-row>
      <v-col cols="4" class="text-left">
        <h1>Artist</h1>
      </v-col>
      <v-col cols="4" class="text-center">
        <h1>Opentalent School</h1>
      </v-col>
      <v-col cols="4" class="text-right">
        <h1>Manager</h1>
      </v-col>
    </v-row>

    <v-row>
      <v-col cols="12">
        <div class="banner-container">
          <img
            src="/images/solutions/school.jpg"
            alt="line"
            class="cover-image"
          />
          <div class="black-square">
            <p>
              École de musique, d'art, de danse, de cirque, conservatoires et
              MJC
            </p>
          </div>
          <div class="blue-square">
            <img
              src="/images/logo_school_white.png"
              alt="Logo"
              class="logo-image"
            />
          </div>
        </div>
      </v-col>
    </v-row>

    <v-row>
      <v-col cols="12" class="menu-container">
        <v-chip v-if="state.activeMenu === 'Présentation'" class="active-menu"
          >Présentation</v-chip
        >
        <span v-else>Présentation</span>

        <span>Inactif</span>

        <v-chip v-if="state.activeMenu === 'Avantages'" class="active-menu"
          >Avantages</v-chip
        >
        <span v-else>Avantages</span>

        <v-chip
          v-if="state.activeMenu === 'Fonctionnalités'"
          class="active-menu"
          >Fonctionnalités</v-chip
        >
        <span v-else>Fonctionnalités</span>

        <v-chip v-if="state.activeMenu === 'Comparatif'" class="active-menu"
          >Comparatif</v-chip
        >
        <span v-else>Comparatif</span>

        <v-chip v-if="state.activeMenu === 'Contact'" class="active-menu"
          >Contact</v-chip
        >
        <span v-else>Contact</span>

        <v-chip v-if="state.activeMenu === 'Accompagnement'" class="active-menu"
          >Accompagnement</v-chip
        >
        <span v-else>Accompagnement</span>

        <v-chip v-if="state.activeMenu === 'Témoignages'" class="active-menu"
          >Témoignages</v-chip
        >
        <span v-else>Témoignages</span>

        <v-chip v-if="state.activeMenu === 'Aide'" class="active-menu"
          >Aide</v-chip
        >
        <span v-else>Aide</span>
      </v-col>
    </v-row>
  </LayoutContainer>
</template>

<script setup>
const state = reactive({
  activeMenu: "Présentation",
});
</script>

<style scoped>
.menu-container {
  display: flex;
  justify-content: space-around;
  padding: 1rem 10rem;
  background: white;
  color: #c4c4c4;
  font-family: "Barlow";
  font-size: 12px;
  line-height: 16px;
  display: flex;
  align-items: center;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 0.1rem solid #eaeaea;
}

.v-chip.active-menu {
  background: black;
  color: white;
}

.black-square {
  position: absolute;
  bottom: 0.4rem;
  right: 0;
  width: 9rem;
  height: 8rem;
  background-color: black;
  background: #9edbdd;
}

.blue-square {
  position: absolute;
  bottom: 0.4rem;
  right: 9rem;
  width: 9rem;
  height: 8rem;
  background: #0e2d32;
}

.logo-image {
  width: 100%;
  height: auto;
  margin-top: 1.5rem;
}

.banner-container {
  position: relative;
  overflow: hidden;
}
.text-left {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 3rem;
  line-height: 85px;
  color: #000000;
  opacity: 0.1;
  margin-top: 2rem;
}

.text-center {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 3rem;
  line-height: 85px;
  text-align: center;
  color: #000000;
  text-align: center;
}

.text-right {
  margin-top: 2rem;
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-size: 3rem;
  line-height: 85px;
  text-align: center;
  color: #000000;
  text-align: right;
  opacity: 0.1;
}

.banner-container {
  position: relative;
  overflow: hidden;
}

.cover-image {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  transition: transform 0.2s;
  margin: 0 auto;
  transform: scaleX(-1);
}
</style>
