Presentation.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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: 1rem;
  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: wrap;
  201. @media (max-width: 600px) {
  202. }
  203. }
  204. .picto {
  205. display: flex;
  206. flex-direction: column;
  207. align-items: center;
  208. margin-left: -4rem;
  209. .text {
  210. font-weight: 300;
  211. font-size: 0.9rem;
  212. margin-top: -3rem;
  213. text-align: center;
  214. width: 60%;
  215. margin-right: auto;
  216. margin-left: auto;
  217. }
  218. .img {
  219. width: 200px;
  220. height: 200px;
  221. background-size: contain;
  222. background-repeat: no-repeat;
  223. background-position: center;
  224. }
  225. @media (max-width: 600px) {
  226. width: 50%;
  227. margin: 0 auto;
  228. .text {
  229. width: 90%;
  230. }
  231. .img {
  232. width: 100%;
  233. height: 100%;
  234. }
  235. }
  236. }
  237. h3 {
  238. color: var(--on-primary-color);
  239. font-size: 34px;
  240. font-weight: 400;
  241. line-height: 38px;
  242. max-width: 90%;
  243. }
  244. h3:first-child {
  245. font-weight: 600;
  246. font-size: 3rem;
  247. line-height: 3rem;
  248. margin-left: 1rem;
  249. width: 35rem;
  250. }
  251. </style>