
<template>
  <div :class="stickyClass" >
    <v-row class="outil-row" >
      <v-col cols="12">
        <div class="container-square ">
          <v-row v-for="square in squares" :key="square.id" :class="square.bgColor">
            <div>
              <v-icon :class="square.iconClass" />
              <p class="text-square">{{ square.text }}</p>
            </div>
          </v-row>
        </div>
      </v-col>
    </v-row>
  </div>
</template>

<script setup lang="ts">
import { ref, defineProps } from "vue";

const props = defineProps({
  shouldShowStickyMenu: Boolean,
  squaresData: Array,
});

const stickyClass = ref("sticky-scroll");

const squares = ref(props.squaresData);

</script>

<style scoped>

.container-square {
  display: flex;
  flex-direction: column;
  color: white;
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 15px;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.red-square,
.yellow-square,
.blue-square,
.darkblue-square {
  position: relative;
  font-family: "Barlow";
  width: 10rem;
  padding: 1rem;

}

.yellow-square {
  background: #f9d648;
  color: #0e2d32;
}

.red-square {
  background: #d8050b;
}

.blue-square {
  background: rgba(32, 147, 190);
}

.darkblue-square {
  background: #0e2d32;
}

.text-square {
  margin: 0.5rem 2rem;
}

</style>
