CTA.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <div
  3. class="
  4. bg-primaryLight
  5. rounded
  6. flex
  7. grid
  8. p-4
  9. gap-4
  10. grid-cols-1
  11. md:grid-cols-2
  12. lg:grid-cols-3
  13. "
  14. >
  15. <div
  16. v-for="(cta, index) in ctas"
  17. :key="`cta-${index}`"
  18. class="flex-col p-8 inline-flex"
  19. >
  20. <i class="text-accent text-3xl material-icons">{{ cta.icon }}</i>
  21. <div class="flex-grow">
  22. <h2 class="mt-4 text-lg text-secondaryDark mb-2 transition">
  23. {{ cta.title }}
  24. </h2>
  25. <p>
  26. {{ cta.description }}
  27. </p>
  28. <p class="mt-2">
  29. <SmartLink :to="cta.link.target" class="link" blank>
  30. {{ cta.link.title }}
  31. <SmartIcon name="chevron-right" class="svg-icons" />
  32. </SmartLink>
  33. </p>
  34. </div>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. import { defineComponent } from "@nuxtjs/composition-api"
  40. export default defineComponent({
  41. data() {
  42. return {
  43. ctas: [
  44. {
  45. icon: "layers",
  46. title: "Feature",
  47. description:
  48. "Get up and running with Kooli in as little as 10 minutes.",
  49. link: {
  50. title: "Feature",
  51. target: "https://docs.hoppscotch.io/api",
  52. },
  53. },
  54. {
  55. icon: "local_library",
  56. title: "Feature",
  57. description:
  58. "Explore and start integrating Kooli's products and tools.",
  59. link: {
  60. title: "Feature",
  61. target: "https://docs.hoppscotch.io/guides",
  62. },
  63. },
  64. {
  65. icon: "local_library",
  66. title: "Feature",
  67. description:
  68. "Explore and start integrating Kooli's products and tools.",
  69. link: {
  70. title: "Feature",
  71. target: "https://docs.hoppscotch.io/guides",
  72. },
  73. },
  74. ],
  75. }
  76. },
  77. })
  78. </script>