Presentation.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <template>
  2. <div id="Presentation">
  3. <LayoutContainer>
  4. <v-row class="custom-row" >
  5. <v-col cols="5">
  6. <LayoutUISubTitle
  7. :iconSize="5"
  8. :iconColor="iconColor"
  9. :titleText="titleText"
  10. class="ml-8"
  11. />
  12. <!-- <div class="screen-img"></div> -->
  13. <v-img src="/images/logiciels/Opentalent-disponible-su-Multi-support.png" class="screen-img" />
  14. <div
  15. :style="{ backgroundColor: backgroundColor }"
  16. class="rectangle-4 ml-6"
  17. >
  18. <div :style="{ backgroundColor: circleColor }" class="black-circle">
  19. <div class="content-flex ml-6">
  20. <v-img :src="logoSrc" class="logo-manager" />
  21. <div class="pricing-details">
  22. <p class="pricing-small-text">{{ pricingFromText }}</p>
  23. <p class="pricing-big-text">
  24. {{ pricingAmount }}
  25. <span class="smaller-text">{{ pricingPeriodText }}</span>
  26. </p>
  27. <p class="pricing-small-text">
  28. {{ pricingAnnouncementText }}
  29. </p>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </v-col>
  35. <v-col cols="6">
  36. <LayoutUITitle :title="presentationText.toolTitle" />
  37. <ul class="outil-ul ml-12 mt-6">
  38. <li
  39. class="outil-list"
  40. v-for="item in presentationText.toolList"
  41. :key="item"
  42. >
  43. {{ item }}
  44. </li>
  45. </ul>
  46. <h2 class="mt-12 ml-6 presentation-caracteristique">
  47. {{ presentationText.characteristicsTitle }}
  48. </h2>
  49. <div class="picto-container">
  50. <div
  51. class="picto-group"
  52. v-for="picto in pictoImages"
  53. :key="picto.text"
  54. >
  55. <div
  56. :style="{ backgroundImage: 'url(' + picto.src + ')' }"
  57. class="picto-img"
  58. ></div>
  59. <p class="picto-text" :style="{ color: pictoColor }">
  60. {{ picto.text }}
  61. </p>
  62. </div>
  63. </div>
  64. </v-col>
  65. </v-row>
  66. </LayoutContainer>
  67. </div>
  68. </template>
  69. <script setup>
  70. import { computed } from "vue";
  71. import { useRoute } from "vue-router";
  72. const route = useRoute();
  73. const pricingAmount = computed(() => {
  74. if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
  75. return "14€";
  76. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  77. return "20€";
  78. }else {
  79. return "Sur devis";
  80. }
  81. });
  82. const logoSrc = computed(() => {
  83. if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
  84. return "/images/logo/logiciels/OT_Artist-BLANC.png";
  85. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  86. return "/images/logo/logiciels/OT_School-blanc.png";
  87. } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
  88. return "/images/logo/logiciels/OT_Manager-BLANC.png";
  89. }
  90. });
  91. const titleText = computed(() => {
  92. if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
  93. return "Présentation d'Opentalent Artist";
  94. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  95. return "Présentation d'Opentalent School";
  96. } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
  97. return "Présentation d'Opentalent Manager";
  98. } else {
  99. return "Titre par défaut";
  100. }
  101. });
  102. const iconColor = computed(() => {
  103. if (/^\/opentalent_artist(\/|$)/.test(route.path)) {
  104. return "#fac20a";
  105. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  106. return "rgba(32, 147, 190, 0.6)";
  107. } else if (/^\/opentalent_manager(\/|$)/.test(route.path)) {
  108. return "#d8050b";
  109. } else {
  110. return "rgba(32, 147, 190, 0.6)";
  111. }
  112. });
  113. // on affiche " à partir de" sur opentalent_school et artist
  114. const pricingFromText = computed(() => {
  115. if (/^\/opentalent_artist(\/|$)/.test(route.path) || /^\/opentalent_school(\/|$)/.test(route.path)) {
  116. return "à partir de";
  117. }else{
  118. return ''
  119. }
  120. })
  121. const props = defineProps({
  122. pictoImages: {
  123. type: Array,
  124. default: () => [],
  125. },
  126. pictoColor: {
  127. type: String,
  128. default: "#000000",
  129. },
  130. presentationText: {
  131. type: Object,
  132. default: () => ({
  133. toolTitle: "Default Title",
  134. toolList: [],
  135. characteristicsTitle: "Default Characteristics Title",
  136. }),
  137. },
  138. logoSrc: {
  139. type: String,
  140. default: "",
  141. },
  142. pricingFromText: {
  143. type: String
  144. },
  145. pricingAmount: {
  146. type: String,
  147. default: "sur devis",
  148. class: "pricing-big-text",
  149. },
  150. pricingPeriodText: {
  151. type: String,
  152. },
  153. pricingAnnouncementText: {
  154. type: String,
  155. },
  156. backgroundColor: {
  157. type: String,
  158. default: "rgba(32, 147, 190, 0.2)",
  159. },
  160. circleColor: {
  161. type: String,
  162. default: "#091d20",
  163. },
  164. });
  165. </script>
  166. <style scoped>
  167. .custom-row {
  168. width: 90%;
  169. margin-left: auto;
  170. margin-right: auto;
  171. }
  172. .picto-img {
  173. width: 200px;
  174. height: 200px;
  175. background-size: contain;
  176. background-repeat: no-repeat;
  177. background-position: center;
  178. }
  179. .presentation-caracteristique {
  180. color: #071b1f;
  181. font-size: 34px;
  182. font-style: normal;
  183. font-weight: 400;
  184. line-height: 38px;
  185. }
  186. .pricing-details {
  187. display: flex;
  188. flex-direction: column;
  189. justify-content: center;
  190. align-items: center;
  191. height: 100%;
  192. color: black;
  193. font-weight: 500;
  194. font-size: 1rem;
  195. margin-left: 7rem;
  196. margin-top: -3rem;
  197. width: 10rem;
  198. }
  199. .pricing-small-text {
  200. font-size: 0.6em;
  201. }
  202. .pricing-big-text {
  203. font-size: 2.5rem;
  204. font-weight: bold;
  205. line-height: 2rem;
  206. margin-left: 1rem;
  207. }
  208. .smaller-text {
  209. font-size: 0.6em;
  210. }
  211. .black-circle {
  212. border-radius: 3rem;
  213. background: #091d20;
  214. width: 7rem;
  215. height: 6rem;
  216. }
  217. .logo-manager {
  218. display: flex;
  219. align-items: center;
  220. justify-content: center;
  221. top:1rem;
  222. right: .5rem;
  223. }
  224. .rectangle-4 {
  225. width: 380px;
  226. height: 6rem;
  227. background: rgba(32, 147, 190, 0.2);
  228. border-radius: 3rem;
  229. margin-top: 2rem;
  230. }
  231. .picto-text {
  232. font-weight: 300;
  233. font-size: 0.9rem;
  234. margin-top: -3rem;
  235. text-align: center;
  236. width: 60%;
  237. margin-right: auto;
  238. margin-left: auto;
  239. }
  240. .picto-container {
  241. display: flex;
  242. flex-direction: row;
  243. }
  244. .picto-group {
  245. display: flex;
  246. flex-direction: column;
  247. align-items: center;
  248. margin-left: -4rem;
  249. }
  250. .picto-container {
  251. display: flex;
  252. flex-direction: row;
  253. }
  254. .screen-img {
  255. width: 100%;
  256. }
  257. </style>