faq.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div class="width-constraint">
  3. <h1 class="title-text">
  4. {{ $vuetify.lang.t("$vuetify.faq.title") }}
  5. </h1>
  6. <p style="color: #999; margin-top: 0.5rem; margin-bottom: 1.5rem">
  7. {{ $vuetify.lang.t("$vuetify.faq.subtitle") }}
  8. </p>
  9. <v-expansion-panels>
  10. <v-expansion-panel v-for="i in [1, 2, 3, 4, 5, 6, 7]" :key="i">
  11. <v-expansion-panel-header>
  12. {{ $vuetify.lang.t(`$vuetify.faq.bullet${i}`) }}
  13. </v-expansion-panel-header>
  14. <v-expansion-panel-content class="text-left">
  15. <hr style="border-color: #444" />
  16. <br />
  17. <span v-html="$vuetify.lang.t(`$vuetify.faq.bullet${i}text`)" />
  18. </v-expansion-panel-content>
  19. </v-expansion-panel>
  20. </v-expansion-panels>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. transition(to, from) {
  26. if (!from) return "swoop-in";
  27. let routes = ["index", "install", "docs", "help", "faq", "donate", "links"];
  28. if (routes.indexOf(to.name) < 0) return "swoop-out";
  29. if (routes.indexOf(from.name) < 0) return "swoop-in";
  30. return routes.indexOf(to.name) > routes.indexOf(from.name)
  31. ? "swoop-left"
  32. : "swoop-right";
  33. },
  34. };
  35. </script>