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.

56 lines
1.8 KiB

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