ChapterCard.vue 754 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <v-card
  3. width="100%"
  4. height="100%"
  5. max-width="380"
  6. class="text-center"
  7. :to="to"
  8. nuxt
  9. >
  10. <v-img
  11. :aspect-ratio="2.3"
  12. width="100%"
  13. src="https://cdn.vuetifyjs.com/images/home/feature2.png"
  14. />
  15. <v-card-text class="pb-1">
  16. <h3 class="title">
  17. {{ $t(name) }}
  18. </h3>
  19. <p class="subtitle-1">
  20. {{ $t(description) }}
  21. </p>
  22. </v-card-text>
  23. </v-card>
  24. </template>
  25. <script lang="ts">
  26. import Vue from 'vue'
  27. export default Vue.extend({
  28. props: {
  29. name: {
  30. type: String,
  31. default: ''
  32. },
  33. description: {
  34. type: String,
  35. default: ''
  36. },
  37. to: {
  38. type: String,
  39. default: ''
  40. }
  41. }
  42. })
  43. </script>
  44. <style scoped></style>