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.

81 lines
2.1 KiB

3 years ago
4 years ago
  1. <template>
  2. <section>
  3. <v-parallax
  4. :src="require(`~/assets/vbanner.jpg`)"
  5. height="400"
  6. dark
  7. >
  8. <v-container>
  9. <v-layout
  10. wrap
  11. align-center
  12. justify-center
  13. class="white--text"
  14. >
  15. <v-flex
  16. xs12
  17. md7
  18. >
  19. <v-img
  20. :src="require(`~/assets/ner_demo.png`)"
  21. max-height="380"
  22. contain
  23. class="ma-5"
  24. />
  25. </v-flex>
  26. <v-flex
  27. xs12
  28. md5
  29. >
  30. <h1 class="mb-2 display-1 text-xs-center">
  31. {{ $t('home.footerTitle') }}
  32. </h1>
  33. <div class="mt-4">
  34. <v-menu open-on-hover offset-y>
  35. <template #activator="{ on }">
  36. <v-btn
  37. class="blue lighten-2"
  38. dark
  39. large
  40. v-on="on"
  41. >
  42. {{ $t('home.demoDropDown') }}
  43. <v-icon>{{ mdiMenuDown }}</v-icon>
  44. </v-btn>
  45. </template>
  46. <v-list>
  47. <v-list-item
  48. v-for="(item, index) in items"
  49. :key="index"
  50. @click="$router.push(localePath('/demo/' + item.link))"
  51. >
  52. <v-list-item-title>{{ item.title }}</v-list-item-title>
  53. </v-list-item>
  54. </v-list>
  55. </v-menu>
  56. </div>
  57. </v-flex>
  58. </v-layout>
  59. </v-container>
  60. </v-parallax>
  61. </section>
  62. </template>
  63. <script lang="ts">
  64. import Vue from 'vue'
  65. import { mdiMenuDown } from '@mdi/js'
  66. export default Vue.extend({
  67. data() {
  68. return {
  69. items: [
  70. { title: this.$t('home.demoNER'), link: 'named-entity-recognition' },
  71. { title: this.$t('home.demoSent'), link: 'sentiment-analysis' },
  72. { title: this.$t('home.demoTranslation'), link: 'translation' },
  73. { title: this.$t('home.demoTextToSQL'), link: 'text-to-sql' }
  74. ],
  75. mdiMenuDown
  76. }
  77. }
  78. })
  79. </script>