Presentation.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <!--
  2. Section "Présentation" d'une page Logiciel
  3. -->
  4. <template>
  5. <div id="Presentation">
  6. <LayoutContainer>
  7. <v-row class="center-90">
  8. <!-- Colonne 1 (sous-titre, illustration logiciels, prix) -->
  9. <v-col cols="12" lg="5">
  10. <LayoutUISubTitle class="ml-8" >
  11. {{ title }}
  12. </LayoutUISubTitle>
  13. <v-img
  14. src="/images/logiciels/Opentalent-disponible-su-Multi-support.png"
  15. class="w-100"
  16. />
  17. <div class="pricing-rectangle rectangle-4 ml-6">
  18. <div class="logo-circle">
  19. <div class="content-flex ml-6">
  20. <v-img
  21. :src="logoSrc"
  22. class="software-logo"
  23. />
  24. </div>
  25. </div>
  26. <div v-if="pricingAmount" class="details">
  27. <p class="small-text">
  28. {{ pricingFromText }}
  29. </p>
  30. <p class="big-text">
  31. {{ pricingAmount }}
  32. <span class="smaller-text">
  33. {{ pricingPeriodText }}
  34. </span>
  35. </p>
  36. <p class="small-text">
  37. {{ pricingAnnouncementText }}
  38. </p>
  39. </div>
  40. <div v-else class="details medium-text">
  41. {{ pricingAltText }}
  42. </div>
  43. </div>
  44. </v-col>
  45. <!-- Colonne 2 (présentation, pictogrammes des fonctionnalités) -->
  46. <v-col cols="12" lg="6">
  47. <h3>
  48. {{ section1title }}
  49. </h3>
  50. <ul class="ml-12 mt-6">
  51. <li
  52. v-for="item in features"
  53. :key="item"
  54. >
  55. {{ item }}
  56. </li>
  57. </ul>
  58. <h3 class="mt-12 ml-6">
  59. {{ section2title }}
  60. </h3>
  61. <div class="picto-container">
  62. <div
  63. v-for="picto in pictos"
  64. :key="picto.text"
  65. class="picto"
  66. >
  67. <v-img :src="picto.src" class="img" />
  68. <p class="text">
  69. {{ picto.text }}
  70. </p>
  71. </div>
  72. </div>
  73. </v-col>
  74. </v-row>
  75. </LayoutContainer>
  76. </div>
  77. </template>
  78. <script setup lang="ts">
  79. import type { PropType } from "@vue/runtime-core";
  80. import type { FeaturePicto } from "~/types/interface";
  81. const route = useRoute();
  82. const props = defineProps({
  83. title: {
  84. type: String,
  85. required: true
  86. },
  87. section1title: {
  88. type: String,
  89. required: false,
  90. default: "Un outil complet en ligne"
  91. },
  92. section2title: {
  93. type: String,
  94. required: false,
  95. default: "Des caractéristiques uniques & dédiée"
  96. },
  97. features: {
  98. type: Object as PropType<Array<string>>,
  99. required: true
  100. },
  101. pictos: {
  102. type: Array as PropType<Array<FeaturePicto>>,
  103. required: true
  104. },
  105. logoSrc: {
  106. type: String,
  107. default: "",
  108. },
  109. pricingFromText: {
  110. type: String,
  111. required: false,
  112. default: "à partir de"
  113. },
  114. pricingAmount: {
  115. type: String,
  116. default: ""
  117. },
  118. pricingPeriodText: {
  119. type: String,
  120. required: false,
  121. default: "mois"
  122. },
  123. pricingAnnouncementText: {
  124. type: String,
  125. required: false,
  126. default: "payable annuellement"
  127. },
  128. pricingAltText: {
  129. required: false,
  130. default: ""
  131. }
  132. });
  133. </script>
  134. <style scoped lang="scss">
  135. .pricing-rectangle {
  136. display: flex;
  137. flex-direction: row;
  138. background-color: var(--secondary-color);
  139. width: 380px;
  140. height: 6rem;
  141. border-radius: 3rem;
  142. margin-top: 2rem;
  143. .logo-circle {
  144. background-color: #0e2d32;
  145. border-radius: 3rem;
  146. width: 7rem;
  147. height: 6rem;
  148. }
  149. .software-logo {
  150. display: flex;
  151. align-items: center;
  152. justify-content: center;
  153. top:1rem;
  154. right: .5rem;
  155. }
  156. .details {
  157. display: flex;
  158. flex-direction: column;
  159. justify-content: center;
  160. align-items: center;
  161. height: 100%;
  162. color: var(--on-neutral-color);
  163. font-weight: 500;
  164. font-size: 1rem;
  165. width: 10rem;
  166. margin-left: 18px;
  167. }
  168. .small-text {
  169. font-size: 0.6em;
  170. }
  171. .big-text {
  172. font-size: 2.5rem;
  173. font-weight: bold;
  174. line-height: 2rem;
  175. margin-left: 1rem;
  176. }
  177. .smaller-text {
  178. font-size: 0.6em;
  179. }
  180. .medium-text {
  181. font-size: 1.5rem;
  182. font-weight: 400;
  183. }
  184. @media (max-width: 600px) {
  185. width: 280px;
  186. .details {
  187. margin-left: 0;
  188. }
  189. }
  190. }
  191. .picto-container {
  192. display: flex;
  193. flex-direction: row;
  194. flex-wrap: wrap;
  195. @media (max-width: 600px) {
  196. }
  197. }
  198. .picto {
  199. display: flex;
  200. flex-direction: column;
  201. align-items: center;
  202. margin-left: -4rem;
  203. .text {
  204. font-weight: 300;
  205. font-size: 0.9rem;
  206. margin-top: -3rem;
  207. text-align: center;
  208. width: 60%;
  209. margin-right: auto;
  210. margin-left: auto;
  211. }
  212. .img {
  213. width: 200px;
  214. height: 200px;
  215. background-size: contain;
  216. background-repeat: no-repeat;
  217. background-position: center;
  218. }
  219. @media (max-width: 600px) {
  220. width: 50%;
  221. margin: 0 auto;
  222. .text {
  223. width: 90%;
  224. }
  225. .img {
  226. width: 100%;
  227. height: 100%;
  228. }
  229. }
  230. }
  231. h3 {
  232. color: var(--on-primary-color);
  233. font-size: 34px;
  234. font-weight: 400;
  235. line-height: 38px;
  236. max-width: 90%;
  237. }
  238. h3:first-child {
  239. font-weight: 600;
  240. font-size: 3rem;
  241. line-height: 3rem;
  242. margin-left: 1rem;
  243. width: 35rem;
  244. }
  245. </style>