Presentation.vue 5.5 KB

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