Presentation.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <template>
  2. <div id="Presentation">
  3. <LayoutContainer>
  4. <v-row class="mt-12">
  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">
  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 "20€";
  74. } else if (/^\/opentalent_school(\/|$)/.test(route.path)) {
  75. return "14€";
  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. const props = defineProps({
  112. pictoImages: {
  113. type: Array,
  114. default: () => [],
  115. },
  116. pictoColor: {
  117. type: String,
  118. default: "#000000",
  119. },
  120. presentationText: {
  121. type: Object,
  122. default: () => ({
  123. toolTitle: "Default Title",
  124. toolList: [],
  125. characteristicsTitle: "Default Characteristics Title",
  126. }),
  127. },
  128. logoSrc: {
  129. type: String,
  130. default: "",
  131. },
  132. pricingFromText: {
  133. type: String,
  134. },
  135. pricingAmount: {
  136. type: String,
  137. default: "sur devis",
  138. },
  139. pricingPeriodText: {
  140. type: String,
  141. },
  142. pricingAnnouncementText: {
  143. type: String,
  144. },
  145. backgroundColor: {
  146. type: String,
  147. default: "rgba(32, 147, 190, 0.2)",
  148. },
  149. circleColor: {
  150. type: String,
  151. default: "#091d20",
  152. },
  153. });
  154. </script>
  155. <style scoped>
  156. .picto-img {
  157. width: 200px;
  158. height: 200px;
  159. background-size: contain;
  160. background-repeat: no-repeat;
  161. background-position: center;
  162. }
  163. .presentation-caracteristique {
  164. color: #071b1f;
  165. font-size: 34px;
  166. font-style: normal;
  167. font-weight: 400;
  168. line-height: 38px;
  169. }
  170. .pricing-details {
  171. display: flex;
  172. flex-direction: column;
  173. justify-content: center;
  174. align-items: center;
  175. height: 100%;
  176. color: black;
  177. font-weight: 500;
  178. font-size: 1rem;
  179. margin-left: 7rem;
  180. margin-top: -4rem;
  181. width: 10rem;
  182. }
  183. .pricing-small-text {
  184. font-size: 0.6em;
  185. }
  186. .pricing-big-text {
  187. font-size: 2.5rem;
  188. font-weight: bold;
  189. line-height: 2rem;
  190. margin-left: 1rem;
  191. }
  192. .smaller-text {
  193. font-size: 0.6em;
  194. }
  195. .black-circle {
  196. border-radius: 3rem;
  197. background: #091d20;
  198. width: 7rem;
  199. height: 6rem;
  200. }
  201. .logo-manager {
  202. top: 0.2rem;
  203. }
  204. .rectangle-4 {
  205. width: 20rem;
  206. height: 6rem;
  207. background: rgba(32, 147, 190, 0.2);
  208. border-radius: 3rem;
  209. margin-left: 5rem;
  210. margin-top: 2rem;
  211. }
  212. .picto-text {
  213. font-weight: 300;
  214. font-size: 0.9rem;
  215. margin-top: -3rem;
  216. text-align: center;
  217. width: 50%;
  218. margin-right: auto;
  219. margin-left: auto;
  220. }
  221. .picto-container {
  222. display: flex;
  223. flex-direction: row;
  224. }
  225. .picto-group {
  226. display: flex;
  227. flex-direction: column;
  228. align-items: center;
  229. margin-left: -4rem;
  230. }
  231. .outil-list {
  232. margin-left: 1rem;
  233. font-weight: 300;
  234. font-size: 1rem;
  235. line-height: 1.5rem;
  236. }
  237. .picto-container {
  238. display: flex;
  239. flex-direction: row;
  240. }
  241. .screen-img {
  242. margin-top: 2rem;
  243. margin-left: 3rem;
  244. }
  245. </style>