<template>
  <div class="custom-presentation">
    <LayoutContainer>
      <v-row class="outil-row">
        <v-col cols="4">
          <div class="title">
            <v-icon size="6" :class="iconColorClass" />
            <h4 class="presentation-title">{{ presentationTitle }}</h4>
          </div>
          <v-img :src="screenImage" class="screen-img" />

          <div class="rectangle-4">
            <div class="black-circle">
              <div class="content-flex">
                <v-img :src="logoImage" class="logo-manager" />
                <div class="pricing-details">
                  <p class="pricing-small-text">{{ pricingSmallText }}</p>
                  <p class="pricing-big-text">{{ pricingAmount }} <span class="smaller-text">{{ pricingFrequency }}</span></p>
                  <p class="pricing-small-text">{{ pricingPayable }}</p>
                </div>
              </div>
            </div>
          </div>
        </v-col>

        <v-col cols="5">
          <h2 class="outil-title">{{ toolTitle }}</h2>
          <ul class="outil-ul">
            <li class="outil-list">{{ toolFeature1 }}</li>
            <li class="outil-list">{{ toolFeature2 }}</li>
            <li class="outil-list">{{ toolFeature3 }}</li>
            <li class="outil-list">{{ toolFeature4 }}</li>
          </ul>
        </v-col>

        <v-row class="row-caracteristiques">
          <v-col cols="4" />

          <v-col cols="6">
            <h2>{{ uniqueFeaturesTitle }}</h2>
            <div class="picto-container">
              <div class="picto-group" v-for="(feature, index) in uniqueFeatures" :key="index">
                <v-img class="picto-img" :src="feature.image" />
                <p class="picto-text">{{ feature.text }}</p>
              </div>
            </div>
          </v-col>

          <v-col cols="2" />
        </v-row>
      </v-row>

      <v-row class="container-green">
        <v-row>
          <v-col cols="6">
            <p class="citation-school">{{ citationText }}</p>
          </v-col>
        </v-row>

        <v-col cols="6">
          <div class="subtitle-logiciel">
            <v-icon size="10" :class="iconLogicielColorClass" />
            <h6>{{ logicielTitle }}</h6>
          </div>

          <v-img :src="logicielImage" class="screen2-img" />
        </v-col>
      </v-row>
    </LayoutContainer>
  </div>
</template>

<script setup>
const props = defineProps({
  presentationTitle: String,
  iconColorClass: String,
  screenImage: String,
  logoImage: String,
  pricingSmallText: String,
  pricingAmount: String,
  pricingFrequency: String,
  pricingPayable: String,
  toolTitle: String,
  toolFeature1: String,
  toolFeature2: String,
  toolFeature3: String,
  toolFeature4: String,
  uniqueFeaturesTitle: String,
  uniqueFeatures: Array,
  citationText: String,
  iconLogicielColorClass: String,
  logicielTitle: String,
  logicielImage: String,
});
</script>


<script setup>
import { ref, defineProps } from 'vue';

const props = defineProps({
  presentationTitle: String,
  screenImageSrc: String,
  logoSrc: String,
  pricingSmallText: String,
  pricingBigText: String,
  pricingSmallTextSuffix: String,
  pricingSmallTextPayable: String,
  toolTitle: String,
  toolList: Array,
  featuresTitle: String,
  featuresList: Array,
  citationText: String,
  logicielTitle: String,
  secondScreenImageSrc: String,
  containerStyle: Object,
  titleClass: String,
  iconClass: String,
  outilTitleClass: String,
  outilListClass: String,
  featuresTitleClass: String,
  pictoTextClass: String,
  citationStyle: Object,
  logicielIconClass: String,
  logicielTitleClass: String,
  pictoImages: Array,
});
</script>

<style scoped>
.row-caracteristiques {
  margin-top: -10rem;
}
.pricing-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: black;
  font-weight: 500;
  font-size: 1rem;
  margin-left: 7rem;
  margin-top: -2.5rem;
  width: 10rem;
}

.pricing-small-text {
  font-size: 0.6em;
}

.pricing-big-text {
  font-size: 1.6em;
  font-weight: bold;
}

.smaller-text {
  font-size: 0.6em;
}
.presentation-title {
  color: #071b1f;
  font-family: Barlow;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.black-circle {
  border-radius: 3rem;
  background: #091d20;
  width: 7rem;
  height: 6rem;
}

.devis {
  font-weight: 500;
  font-size: 1rem;
  margin-left: 9rem;
  margin-top: -1rem;
  width: 7rem;
}

.logo-manager {
  top: 1rem;
  margin-left: 0.3rem;
  margin-right: 0.5rem;
  z-index: 1;
}
.rectangle-4 {
  width: 18rem;
  height: 6rem;
  background: rgba(32, 147, 190, 0.2);
  border-radius: 3rem;
  margin-left: 5rem;
  margin-top: 2rem;
}
.picto-text {
  font-weight: 300;
  font-size: 0.9rem;
  margin-top: -3rem;
  text-align: center;
  margin-right: 2rem;
  margin-left: 2rem;
}
.picto-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: -15rem;
}

.picto-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-title {
  margin-right: 0.7rem;
  color: rgba(32, 147, 190, 0.6);
}

.text-square {
  margin-left: 2rem;
  margin-right: 2rem;
  margin-top: 0.9rem;
  text-align: center;
}

.icon {
  margin-top: 1rem;
}

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

.outil-title {
  font-family: "Barlow";
  font-weight: 600;
  font-size: 3rem;
  line-height: 18px;
  color: #091d20;
  margin-bottom: 4rem;
}

.outil-ul {
  font-family: "Barlow";
  margin-left: 1rem;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5rem;
}

.citation-school {
  font-style: italic;
  font-weight: 300;
  font-size: 2rem;
  width: 38rem;
  line-height: 40px;
  color: #ffffff;
  font-style: italic;
  margin-top: 20rem;
  margin-left: 2rem;
}
.subtitle-logiciel {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 18px;
  color: #ffffff;
  margin-left: 5rem;
  margin-right: 15rem;
  margin-top: 4rem;
  top: 10rem;
}

.icon-logiciel {
  color: rgba(32, 147, 190, 0.6);
  margin-right: 1rem;
}
.container-green {
  background: linear-gradient(180deg, rgba(14, 45, 50, 0) 26.84%, #0e2d32 100%),
    rgba(7, 27, 31, 0.3);
  height: 45rem;
}

.picto-container {
  display: flex;
  justify-content: flex-start;
  padding: 0 2rem;
}
.picto-img {
  width: 14rem;
  height: 14rem;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 18px;
  color: #091d20;
  width: 25rem;
  margin-left: 2rem;
}

.screen-img {
  width: 20rem;
  height: 15rem;
  margin-top: 2rem;
  margin-left: 5rem;
}
.outil-row {
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.darkblue-square {
  font-family: "Barlow";
  width: 10rem;
  height: 7rem;
  background: #0e2d32;
  margin-left: 14rem;
}
.blue-square {
  font-family: "Barlow";
  margin-left: 14rem;
  width: 10rem;
  height: 7rem;
  background: rgba(32, 147, 190, 0.6);
}
</style>
