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