Presentation.vue 6.2 KB

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