Presentation.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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">
  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. 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. default: "à partir de",
  135. },
  136. pricingAmount: {
  137. type: String,
  138. default: "sur devis",
  139. },
  140. pricingPeriodText: {
  141. type: String,
  142. },
  143. pricingAnnouncementText: {
  144. type: String,
  145. },
  146. backgroundColor: {
  147. type: String,
  148. default: "rgba(32, 147, 190, 0.2)",
  149. },
  150. circleColor: {
  151. type: String,
  152. default: "#091d20",
  153. },
  154. });
  155. </script>
  156. <style scoped>
  157. .custom-row {
  158. width: 90%;
  159. margin-left: auto;
  160. margin-right: auto;
  161. }
  162. .picto-img {
  163. width: 200px;
  164. height: 200px;
  165. background-size: contain;
  166. background-repeat: no-repeat;
  167. background-position: center;
  168. }
  169. .presentation-caracteristique {
  170. color: #071b1f;
  171. font-size: 34px;
  172. font-style: normal;
  173. font-weight: 400;
  174. line-height: 38px;
  175. }
  176. .pricing-details {
  177. display: flex;
  178. flex-direction: column;
  179. justify-content: center;
  180. align-items: center;
  181. height: 100%;
  182. color: black;
  183. font-weight: 500;
  184. font-size: 1rem;
  185. margin-left: 7rem;
  186. margin-top: -4rem;
  187. width: 10rem;
  188. }
  189. .pricing-small-text {
  190. font-size: 0.6em;
  191. }
  192. .pricing-big-text {
  193. font-size: 2.5rem;
  194. font-weight: bold;
  195. line-height: 2rem;
  196. margin-left: 1rem;
  197. }
  198. .smaller-text {
  199. font-size: 0.6em;
  200. }
  201. .black-circle {
  202. border-radius: 3rem;
  203. background: #091d20;
  204. width: 7rem;
  205. height: 6rem;
  206. }
  207. .logo-manager {
  208. top: 0.2rem;
  209. }
  210. .rectangle-4 {
  211. width: 20rem;
  212. height: 6rem;
  213. background: rgba(32, 147, 190, 0.2);
  214. border-radius: 3rem;
  215. margin-left: 5rem;
  216. margin-top: 2rem;
  217. }
  218. .picto-text {
  219. font-weight: 300;
  220. font-size: 0.9rem;
  221. margin-top: -3rem;
  222. text-align: center;
  223. width: 50%;
  224. margin-right: auto;
  225. margin-left: auto;
  226. }
  227. .picto-container {
  228. display: flex;
  229. flex-direction: row;
  230. }
  231. .picto-group {
  232. display: flex;
  233. flex-direction: column;
  234. align-items: center;
  235. margin-left: -4rem;
  236. }
  237. .outil-list {
  238. margin-left: 1rem;
  239. font-weight: 300;
  240. font-size: 1rem;
  241. line-height: 1.5rem;
  242. }
  243. .picto-container {
  244. display: flex;
  245. flex-direction: row;
  246. }
  247. .screen-img {
  248. margin-top: 2rem;
  249. margin-left: 3rem;
  250. }
  251. </style>