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.

69 lines
1.5 KiB

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