| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <template>
- <div id="Presentation">
- <LayoutContainer>
- <v-row class="mt-12 custom-row" >
- <v-col cols="4">
- <LayoutUISubTitle
- :iconSize="5"
- :iconColor="iconColor"
- :titleText="titleText"
- />
- <v-img src="/images/logiciels/school/screen.jpg" class="screen-img" />
- <div
- :style="{ backgroundColor: backgroundColor }"
- class="rectangle-4"
- >
- <div :style="{ backgroundColor: circleColor }" class="black-circle">
- <div class="content-flex">
- <v-img :src="logoSrc" class="logo-manager" />
- <div class="pricing-details">
- <p class="pricing-small-text">{{ pricingFromText }}</p>
- <p class="pricing-big-text">
- {{ pricingAmount }}
- <span class="smaller-text">{{ pricingPeriodText }}</span>
- </p>
- <p class="pricing-small-text">
- {{ pricingAnnouncementText }}
- </p>
- </div>
- </div>
- </div>
- </div>
- </v-col>
- <v-col cols="6">
- <LayoutUITitle :title="presentationText.toolTitle" />
- <ul class="outil-ul ml-12 mt-6">
- <li
- class="outil-list"
- v-for="item in presentationText.toolList"
- :key="item"
- >
- {{ item }}
- </li>
- </ul>
- <h2 class="mt-12 ml-6 presentation-caracteristique">
- {{ presentationText.characteristicsTitle }}
- </h2>
- <div class="picto-container">
- <div
- class="picto-group"
- v-for="picto in pictoImages"
- :key="picto.text"
- >
- <div
- :style="{ backgroundImage: 'url(' + picto.src + ')' }"
- class="picto-img"
- ></div>
- <p class="picto-text" :style="{ color: pictoColor }">
- {{ picto.text }}
- </p>
- </div>
- </div>
- </v-col>
- </v-row>
- </LayoutContainer>
- </div>
- </template>
- <script setup>
- import { computed } from "vue";
- import { useRoute } from "vue-router";
- const route = useRoute();
- const pricingAmount = computed(() => {
- if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
- return "14€";
- } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
- return "20€";
- }else {
- return "Sur devis";
- }
- });
- const logoSrc = computed(() => {
- if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
- return "/images/logo/logiciels/OT_Artist-BLANC.png";
- } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
- return "/images/logo/logiciels/OT_School-blanc.png";
- } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
- return "/images/logo/logiciels/OT_Manager-BLANC.png";
- }
- });
- const titleText = computed(() => {
- if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
- return "Présentation d'Opentalent Artist";
- } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
- return "Présentation d'Opentalent School";
- } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
- return "Présentation d'Opentalent Manager";
- } else {
- return "Titre par défaut";
- }
- });
- const iconColor = computed(() => {
- if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
- return "#fac20a";
- } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
- return "rgba(32, 147, 190, 0.6)";
- } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
- return "#d8050b";
- } else {
- return "rgba(32, 147, 190, 0.6)";
- }
- });
- // on affiche " à partir de" sur opentalent_school et artist
- const pricingFromText = computed(() => {
- if (/^\/opentalent_artist(\/|$)/.test(route.path) || /^\/opentalent_school(\/|$)/.test(route.path)) {
- return "à partir de";
- }else{
- return ''
- }
- })
- const props = defineProps({
- pictoImages: {
- type: Array,
- default: () => [],
- },
- pictoColor: {
- type: String,
- default: "#000000",
- },
- presentationText: {
- type: Object,
- default: () => ({
- toolTitle: "Default Title",
- toolList: [],
- characteristicsTitle: "Default Characteristics Title",
- }),
- },
- logoSrc: {
- type: String,
- default: "",
- },
- pricingFromText: {
- type: String
- },
- pricingAmount: {
- type: String,
- default: "sur devis",
- },
- pricingPeriodText: {
- type: String,
- },
- pricingAnnouncementText: {
- type: String,
- },
- backgroundColor: {
- type: String,
- default: "rgba(32, 147, 190, 0.2)",
- },
- circleColor: {
- type: String,
- default: "#091d20",
- },
- });
- </script>
- <style scoped>
- .custom-row {
- width: 90%;
- margin-left: auto;
- margin-right: auto;
- }
- .picto-img {
- width: 200px;
- height: 200px;
- background-size: contain;
- background-repeat: no-repeat;
- background-position: center;
- }
- .presentation-caracteristique {
- color: #071b1f;
- font-size: 34px;
- font-style: normal;
- font-weight: 400;
- line-height: 38px;
- }
- .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: -4rem;
- width: 10rem;
- }
- .pricing-small-text {
- font-size: 0.6em;
- }
- .pricing-big-text {
- font-size: 2.5rem;
- font-weight: bold;
- line-height: 2rem;
- margin-left: 1rem;
- }
- .smaller-text {
- font-size: 0.6em;
- }
- .black-circle {
- border-radius: 3rem;
- background: #091d20;
- width: 7rem;
- height: 6rem;
- }
- .logo-manager {
- top: 0.2rem;
- }
- .rectangle-4 {
- width: 100%;
- height: 6rem;
- background: rgba(32, 147, 190, 0.2);
- border-radius: 3rem;
- margin-top: 2rem;
- }
- .picto-text {
- font-weight: 300;
- font-size: 0.9rem;
- margin-top: -3rem;
- text-align: center;
- width: 60%;
- margin-right: auto;
- margin-left: auto;
- }
- .picto-container {
- display: flex;
- flex-direction: row;
- }
- .picto-group {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-left: -4rem;
- }
- .picto-container {
- display: flex;
- flex-direction: row;
- }
- .screen-img {
- margin-top: 2rem;
- }
- </style>
|