Users.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="bg-primaryLight rounded flex flex-col mx-6 p-4">
  3. <div class="flex flex-col items-center">
  4. <p class="my-4 text-center tracking-widest">EMPOWERING DEVELOPERS FROM</p>
  5. </div>
  6. <div class="grid gap-4 grid-cols-3 md:grid-cols-4 lg:grid-cols-6">
  7. <div
  8. v-for="(user, index) in users"
  9. :key="`user-${index}`"
  10. class="flex-col px-4 inline-flex items-center justify-center"
  11. >
  12. <img
  13. :src="`/images/users/${user.image}`"
  14. alt="Profile picture"
  15. loading="lazy"
  16. class="flex-col object-contain object-center h-24 w-24 inline-flex"
  17. />
  18. </div>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. import { defineComponent } from "@nuxtjs/composition-api"
  24. export default defineComponent({
  25. data() {
  26. return {
  27. users: [
  28. { title: "Accenture", image: "accenture.svg" },
  29. { title: "ByteDance", image: "bytedance.svg" },
  30. { title: "Decathlon", image: "decathlon.svg" },
  31. { title: "GitHub", image: "github.svg" },
  32. { title: "Gojek", image: "gojek.svg" },
  33. { title: "Google", image: "google.svg" },
  34. { title: "Microsoft", image: "microsoft.svg" },
  35. { title: "PayTM", image: "paytm.svg" },
  36. { title: "Twilio", image: "twilio.svg" },
  37. { title: "Udemy", image: "udemy.svg" },
  38. { title: "Zendesk", image: "zendesk.svg" },
  39. { title: "Zoho", image: "zoho.svg" },
  40. ],
  41. }
  42. },
  43. })
  44. </script>