You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

2 years ago
2 years ago
  1. <template>
  2. <v-container>
  3. <v-layout column wrap class="my-5" align-center>
  4. <v-flex xs12 sm4 class="my-3">
  5. <div class="text-xs-center">
  6. <h2 class="headline">
  7. {{ $t('home.featuresTitle') }}
  8. </h2>
  9. </div>
  10. </v-flex>
  11. <v-flex xs12>
  12. <v-container grid-list-xl>
  13. <v-layout wrap align-center>
  14. <v-flex v-for="(item, index) in featureCards" :key="index" xs12 md4>
  15. <feature-card
  16. :image-src="require(`~/assets/${item.imageSrc}`)"
  17. :title="item.title"
  18. :text="item.text"
  19. />
  20. </v-flex>
  21. </v-layout>
  22. </v-container>
  23. </v-flex>
  24. </v-layout>
  25. </v-container>
  26. </template>
  27. <script lang="ts">
  28. import Vue from 'vue'
  29. import FeatureCard from './FeatureCard.vue'
  30. export default Vue.extend({
  31. components: {
  32. FeatureCard
  33. },
  34. data() {
  35. return {
  36. featureCards: [
  37. {
  38. imageSrc: 'feature3.png',
  39. title: this.$t('home.featuresTitle1'),
  40. text: this.$t('home.featuresText1')
  41. },
  42. {
  43. imageSrc: 'feature2.png',
  44. title: this.$t('home.featuresTitle2'),
  45. text: this.$t('home.featuresText2')
  46. },
  47. {
  48. imageSrc: 'feature1.png',
  49. title: this.$t('home.featuresTitle3'),
  50. text: this.$t('home.featuresText3')
  51. }
  52. ]
  53. }
  54. }
  55. })
  56. </script>