index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. <div 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">
  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. @click="showLongIntro=!showLongIntro"
  37. >
  38. {{ showLongIntro ? $t('show_less') : $t('show_more') }}
  39. </v-btn>
  40. <div class="logos mt-3">
  41. <BannerLogo
  42. href="https://github.com/olinox14"
  43. :img="theme.global.name.value === 'light' ? '/images/logos/github_large_light.png' : '/images/logos/github_large_dark.png'"
  44. :alt="i18n.t('Find me on Github')"
  45. />
  46. <BannerLogo
  47. href="https://stackoverflow.com/users/4279120/olinox14"
  48. :img="theme.global.name.value === 'light' ? '/images/logos/stackoverflow.svg' : '/images/logos/stackoverflow-dark.svg'"
  49. :alt="i18n.t('Find me on Stackoverflow')"
  50. :height="30"
  51. />
  52. <BannerLogo
  53. href="https://www.linkedin.com/in/olivier-massot-60b87b181"
  54. img="/images/logos/linkedin.png"
  55. :alt="i18n.t('Find me on LinkedIn')"
  56. :height="22"
  57. />
  58. <BannerLogo
  59. href="https://www.codingame.com/profile/75dcc329745def530c02ddb4485f22235683081"
  60. img="/images/logos/codingame.svg"
  61. :alt="i18n.t('Find me on Codingame')"
  62. />
  63. </div>
  64. </div>
  65. <div class="content">
  66. <div class="badges">
  67. <h3>{{ $t("Competences") }}</h3>
  68. <BadgeSection />
  69. </div>
  70. <div class="cursus">
  71. <h3>{{ $t("Cursus") }}</h3>
  72. <Cursus />
  73. </div>
  74. </div>
  75. <div class="contact">
  76. <h3>{{ $t("Contact") }}</h3>
  77. <Contact />
  78. </div>
  79. </template>
  80. <script setup lang="ts">
  81. import { useTheme } from 'vuetify'
  82. import type { Ref } from '@vue/reactivity'
  83. import BadgeSection from '~/components/BadgeSection.vue'
  84. const i18n = useI18n()
  85. const theme = useTheme()
  86. const START_YEAR = 2011
  87. const CURRENT_YEAR = new Date().getFullYear();
  88. const XP_YEARS = CURRENT_YEAR - START_YEAR
  89. const showLongIntro: Ref<boolean> = ref(false)
  90. </script>
  91. <style scoped lang="scss">
  92. .banner {
  93. display: flex;
  94. flex-direction: column;
  95. justify-content: center;
  96. align-items: center;
  97. text-align: center;
  98. padding: 20px;
  99. h2 {
  100. margin: 18px 0 36px 0;
  101. border-bottom: none;
  102. }
  103. }
  104. .introduction {
  105. text-align: justify;
  106. padding: 36px 64px;
  107. border-radius: 16px;
  108. background: rgba(var(--v-theme-primary-alt), 0.1);
  109. margin-bottom: 36px;
  110. div {
  111. margin-bottom: 16px;
  112. }
  113. .v-btn {
  114. width: 100%;
  115. margin: 8px auto;
  116. }
  117. :deep(a) {
  118. color: rgb(var(--v-theme-on-neutral));
  119. font-weight: 900;
  120. text-decoration: none;
  121. }
  122. .logos {
  123. display: flex;
  124. flex-direction: row;
  125. max-width: 600px;
  126. margin: 0 auto;
  127. }
  128. }
  129. h3 {
  130. margin: 12px 0 24px 0;
  131. }
  132. .content {
  133. display: flex;
  134. flex-direction: row;
  135. justify-content: space-around;
  136. .badges {
  137. max-width: 65%;
  138. }
  139. .cursus {
  140. max-width: 35%;
  141. padding: 24px;
  142. }
  143. @media (max-width: 1280px) {
  144. flex-direction: column;
  145. .badges {
  146. max-width: 100%;
  147. }
  148. .cursus {
  149. max-width: 100%;
  150. }
  151. }
  152. }
  153. .badges {
  154. padding: 18px;
  155. }
  156. </style>