Stats.vue 661 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <div class="flex space-x-16 p-6">
  3. <div v-for="(stat, index) in stats" :key="`stat-${index}`">
  4. <span class="text-xl">
  5. {{ stat.count }}<span class="text-secondaryLight">+</span>
  6. </span>
  7. <br />
  8. <span class="text-sm">
  9. {{ stat.audience }}
  10. </span>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. import { defineComponent } from "@nuxtjs/composition-api"
  16. export default defineComponent({
  17. data() {
  18. return {
  19. stats: [
  20. { count: "350k", audience: "Developers" },
  21. { count: "5k", audience: "Organizations" },
  22. { count: "1m", audience: "Requests" },
  23. ],
  24. }
  25. },
  26. })
  27. </script>