index.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <PageMeta
  3. title="Olivier Massot - Fullstack developer"
  4. description=""
  5. />
  6. <div class="banner">
  7. <h1>
  8. {{ $t('Fullstack developer') }}
  9. </h1>
  10. <h2>
  11. {{ $t('x_years_experience', { years: XP_YEARS }) }}
  12. </h2>
  13. </div>
  14. <v-card class="introduction">
  15. <div>
  16. {{ $t('intro_short') }}
  17. </div>
  18. <div v-html="$t('intro_part_4')" />
  19. <v-expand-transition>
  20. <div v-if="showLongIntro" class="long-intro">
  21. <div>
  22. {{ $t('intro_part_1') }}
  23. </div>
  24. <div>
  25. {{ $t('intro_part_2') }}
  26. </div>
  27. <div>
  28. {{ $t('intro_part_3') }}
  29. </div>
  30. </div>
  31. </v-expand-transition>
  32. <v-btn
  33. size="small"
  34. variant="text"
  35. :prepend-icon="showLongIntro ? 'fas fa-caret-up' : 'fas fa-caret-down'"
  36. :height="36"
  37. @click="showLongIntro=!showLongIntro"
  38. >
  39. {{ showLongIntro ? $t('show_less') : $t('show_more') }}
  40. </v-btn>
  41. <div class="banner-buttons">
  42. <v-btn variant="outlined" @click="showDownloadPdf = true">
  43. {{$t('download_pdf')}}
  44. </v-btn>
  45. <v-btn variant="outlined" to="#contact" :active="false">
  46. {{$t('contact_me')}}
  47. </v-btn>
  48. </div>
  49. <AntiBotDialog v-if="showDownloadPdf"></AntiBotDialog>
  50. <h5 class="find-me-on">
  51. {{ $t('find_me_on')}}
  52. </h5>
  53. <div class="logos mt-2">
  54. <BannerLogo
  55. href="https://github.com/olinox14"
  56. :img="theme.global.name.value === 'light' ? '/images/logos/github_large_light.png' : '/images/logos/github_large_dark.png'"
  57. :alt="i18n.t('Find me on Github')"
  58. />
  59. <BannerLogo
  60. href="https://stackoverflow.com/users/4279120/olinox14"
  61. :img="theme.global.name.value === 'light' ? '/images/logos/stackoverflow.svg' : '/images/logos/stackoverflow-dark.svg'"
  62. :alt="i18n.t('Find me on Stackoverflow')"
  63. :height="30"
  64. />
  65. <BannerLogo
  66. href="https://www.linkedin.com/in/olivier-massot-60b87b181"
  67. img="/images/logos/linkedin.png"
  68. :alt="i18n.t('Find me on LinkedIn')"
  69. :height="22"
  70. />
  71. <BannerLogo
  72. href="https://www.codingame.com/profile/75dcc329745def530c02ddb4485f22235683081"
  73. img="/images/logos/codingame.svg"
  74. :alt="i18n.t('Find me on Codingame')"
  75. />
  76. </div>
  77. </v-card>
  78. <div class="content">
  79. <div class="badges">
  80. <h3>{{ $t("Competences") }}</h3>
  81. <BadgeSection />
  82. </div>
  83. <div class="cursus">
  84. <h3>{{ $t("Cursus") }}</h3>
  85. <Cursus />
  86. </div>
  87. </div>
  88. <div id="contact">
  89. <h3>{{ $t("Contact") }}</h3>
  90. <Contact />
  91. </div>
  92. </template>
  93. <script setup lang="ts">
  94. import { useTheme } from 'vuetify'
  95. import type { Ref } from '@vue/reactivity'
  96. import BadgeSection from '~/components/BadgeSection.vue'
  97. const i18n = useI18n()
  98. const theme = useTheme()
  99. const START_YEAR = 2011
  100. const CURRENT_YEAR = new Date().getFullYear();
  101. const XP_YEARS = CURRENT_YEAR - START_YEAR
  102. const showLongIntro: Ref<boolean> = ref(false)
  103. const showDownloadPdf: Ref<boolean> = ref(false)
  104. </script>
  105. <style scoped lang="scss">
  106. .banner {
  107. display: flex;
  108. flex-direction: column;
  109. justify-content: center;
  110. align-items: center;
  111. text-align: center;
  112. padding: 20px;
  113. color: rgb(var(--v-theme-on-background));
  114. h2 {
  115. margin: 18px 0 36px 0;
  116. border-bottom: none;
  117. }
  118. }
  119. .introduction {
  120. padding: 36px 64px;
  121. border-radius: 6px;
  122. text-align: justify;
  123. margin: 0 auto;
  124. width: 100%;
  125. @media (max-width: 600px) {
  126. padding: 36px 10%;
  127. }
  128. :deep(a) {
  129. color: rgb(var(--v-theme-on-primary--clickable));
  130. }
  131. div {
  132. max-width: 900px;
  133. margin: 0 auto 16px auto;
  134. }
  135. .v-btn {
  136. width: 100%;
  137. margin: 2px auto 16px auto;
  138. }
  139. :deep(a) {
  140. font-weight: 900;
  141. text-decoration: none;
  142. padding: 3px 1px;
  143. }
  144. .banner-buttons {
  145. display: flex;
  146. flex-direction: row;
  147. justify-content: center;
  148. .v-btn {
  149. margin: 6px 24px;
  150. width: 160px;
  151. border-radius: 18px;
  152. font-weight: 500;
  153. }
  154. }
  155. .find-me-on {
  156. margin: 16px auto 0 auto;
  157. text-transform: uppercase;
  158. text-align: center;
  159. font-size: 12px;
  160. font-weight: 400;
  161. }
  162. .logos {
  163. display: flex;
  164. flex-direction: row;
  165. max-width: 600px;
  166. margin: 0 auto;
  167. justify-content: center;
  168. align-items: center;
  169. @media (max-width: 540px) {
  170. flex-direction: column;
  171. }
  172. }
  173. }
  174. h3 {
  175. margin: 12px 0 24px 0;
  176. }
  177. .content {
  178. display: flex;
  179. flex-direction: row;
  180. justify-content: space-around;
  181. .badges {
  182. max-width: 65%;
  183. min-width: 65%;
  184. }
  185. .cursus {
  186. max-width: 35%;
  187. min-width: 35%;
  188. padding: 24px;
  189. }
  190. @media (max-width: 1280px) {
  191. flex-direction: column;
  192. .badges {
  193. max-width: 100%;
  194. }
  195. .cursus {
  196. max-width: 100%;
  197. }
  198. }
  199. }
  200. .badges {
  201. padding: 18px;
  202. }
  203. </style>