MissionDetail.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <template>
  2. <LayoutContainer>
  3. <div class="job-section">
  4. <v-row class="mb-6">
  5. <v-col class="d-flex align-items-center">
  6. <v-btn
  7. to="/nous-rejoindre"
  8. prepend-icon="fas fa-arrow-left"
  9. variant="outlined"
  10. class="back-button"
  11. >
  12. Retour aux annonces
  13. </v-btn>
  14. </v-col>
  15. </v-row>
  16. <div>
  17. <div v-if="pending">
  18. <v-row class="justify-center progress">
  19. <v-progress-circular
  20. indeterminate
  21. color="grey"
  22. />
  23. </v-row>
  24. </div>
  25. <div v-else-if="job !== null">
  26. <LayoutUITitlePage>
  27. {{ job.title }}
  28. </LayoutUITitlePage>
  29. <v-row class="details blue-content my-6">
  30. <v-col cols="6">
  31. <v-row>
  32. <div>
  33. Type de contrat :
  34. <b>{{ job.contractType }} </b>
  35. </div>
  36. </v-row>
  37. <v-row>
  38. <div>
  39. Location :
  40. <b>{{ job.postalCode }} {{ job.city }}</b>
  41. </div>
  42. </v-row>
  43. </v-col>
  44. <v-col cols="6">
  45. <v-row>
  46. <div>
  47. Secteur d'activité : <b>{{ job.sector.join(', ') }}</b>
  48. </div>
  49. </v-row>
  50. <v-row>
  51. <div>
  52. Date de parution :
  53. <b>{{ formatDate(job.startPublication) }}</b>
  54. </div>
  55. </v-row>
  56. </v-col>
  57. </v-row>
  58. <v-row>
  59. <p
  60. v-html="job.content"
  61. class="center-90 description mb-12"
  62. />
  63. </v-row>
  64. <v-row class="d-flex justify-center align-center">
  65. <v-btn
  66. prepend-icon="fas fa-info"
  67. class="btn-apply mb-12"
  68. >
  69. Je postule
  70. </v-btn>
  71. </v-row>
  72. <v-row class="d-flex justify-space-between center-90">
  73. <p>
  74. MOTS CLÉS
  75. </p>
  76. <div>
  77. <p>PARTAGER</p>
  78. </div>
  79. </v-row>
  80. <v-row class="d-flex justify-space-between mb-8 center-90">
  81. <p class="key-word mt-3">
  82. <!-- TODO: remplacer par la bonne prop -->
  83. ROCK CONCERT FESTIVAL
  84. </p>
  85. <CommonShare />
  86. </v-row>
  87. </div>
  88. </div>
  89. </div>
  90. </LayoutContainer>
  91. </template>
  92. <script setup lang="ts">
  93. import "vue3-carousel/dist/carousel.css";
  94. import { useEntityFetch } from "~/composables/data/useEntityFetch";
  95. import JobPosting from "~/models/Maestro/JobPosting";
  96. import DateUtils from "~/services/utils/dateUtils";
  97. const route = useRoute();
  98. const { fetch } = useEntityFetch()
  99. const config = useRuntimeConfig()
  100. const jobId: number = parseInt(route.params.id as string)
  101. if (!jobId || isNaN(jobId)) {
  102. throw new Error('Missing or invalid id')
  103. }
  104. const { data: job, pending } = fetch(JobPosting, jobId)
  105. const formatDate = (date: string) => {
  106. return DateUtils.format(new Date(date), "dd/MM/yyyy")
  107. };
  108. </script>
  109. <style scoped lang="scss">
  110. .progress {
  111. margin: 32px auto 128px auto;
  112. }
  113. .job-section {
  114. margin: 32px 12%;
  115. .details {
  116. background-color: var(--secondary-color);
  117. color: var(--on-secondary-color);
  118. height: 10rem;
  119. .v-row {
  120. width: 90%;
  121. margin-left: auto;
  122. margin-right: auto;
  123. }
  124. div {
  125. margin: 12px 0;
  126. font-weight: 500;
  127. font-size: 25px;
  128. line-height: 18px;
  129. }
  130. }
  131. .description {
  132. color: var(--primary-color);
  133. text-align: justify;
  134. font-size: 1.875rem;
  135. font-weight: 500;
  136. line-height: 2.125rem;
  137. }
  138. }
  139. @media (max-width: 600px) {
  140. .job-section {
  141. margin: 32px 6%;
  142. }
  143. }
  144. .btn-apply {
  145. background: var(--secondary-color);
  146. color: var(--neutral-color);
  147. display: flex;
  148. left: 0;
  149. padding: 25px 28px;
  150. align-items: center;
  151. gap: 9px;
  152. font-size: 0.9rem;
  153. border-radius: 5px;
  154. font-weight: 700;
  155. line-height: 15px;
  156. letter-spacing: 1.3px;
  157. text-transform: uppercase;
  158. margin-bottom: -1rem;
  159. }
  160. </style>