Presentation.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <div id="Presentation">
  3. <LayoutContainer>
  4. <v-row class="mt-12 custom-row">
  5. <v-col cols="5">
  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 (
  114. /^\/opentalent_artist(\/|$)/.test(route.path) ||
  115. /^\/opentalent_school(\/|$)/.test(route.path)
  116. ) {
  117. return "à partir de";
  118. } else {
  119. return "";
  120. }
  121. });
  122. const props = defineProps({
  123. pictoImages: {
  124. type: Array,
  125. default: () => [],
  126. },
  127. pictoColor: {
  128. type: String,
  129. default: "#000000",
  130. },
  131. presentationText: {
  132. type: Object,
  133. default: () => ({
  134. toolTitle: "Default Title",
  135. toolList: [],
  136. characteristicsTitle: "Default Characteristics Title",
  137. }),
  138. },
  139. logoSrc: {
  140. type: String,
  141. default: "",
  142. },
  143. pricingFromText: {
  144. type: String,
  145. },
  146. pricingAmount: {
  147. type: String,
  148. default: "sur devis",
  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: 0.5rem;
  223. }
  224. .rectangle-4 {
  225. width: 350px;
  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. margin-top: 2rem;
  256. width: 70%;
  257. }
  258. </style>