Features.vue 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div class="flex flex-col p-4">
  3. <div class="flex flex-col items-center">
  4. <p class="my-4 text-center text-accent tracking-widest">FEATURES</p>
  5. </div>
  6. <div class="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
  7. <div
  8. v-for="(feature, index) in features"
  9. :key="`feature-${index}`"
  10. class="flex-col p-8 inline-flex"
  11. >
  12. <i class="text-accent text-4xl material-icons">{{ feature.icon }}</i>
  13. <div class="flex-grow">
  14. <h2 class="mt-4 text-lg text-secondaryDark mb-2 transition">
  15. {{ feature.title }}
  16. </h2>
  17. <p>
  18. {{ feature.description }}
  19. </p>
  20. <p class="mt-2">
  21. <NuxtLink :to="feature.link.target" class="link">
  22. {{ feature.link.title }}
  23. <SmartIcon name="chevron-right" class="svg-icons" />
  24. </NuxtLink>
  25. </p>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. import { defineComponent } from "@nuxtjs/composition-api"
  33. export default defineComponent({
  34. data() {
  35. return {
  36. features: [
  37. {
  38. icon: "offline_bolt",
  39. title: "Feature",
  40. description:
  41. "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nam vel vero quia tenetur obcaecati. Distinctio nesciunt obcaecati deserunt.",
  42. link: { title: "Learn more", target: "/settings" },
  43. },
  44. {
  45. icon: "stars",
  46. title: "Feature",
  47. description:
  48. "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nam vel vero quia tenetur obcaecati. Distinctio nesciunt obcaecati deserunt.",
  49. link: { title: "Learn more", target: "/settings" },
  50. },
  51. {
  52. icon: "supervised_user_circle",
  53. title: "Feature",
  54. description:
  55. "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nam vel vero quia tenetur obcaecati. Distinctio nesciunt obcaecati deserunt.",
  56. link: { title: "Learn more", target: "/settings" },
  57. },
  58. {
  59. icon: "build_circle",
  60. title: "Feature",
  61. description:
  62. "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nam vel vero quia tenetur obcaecati. Distinctio nesciunt obcaecati deserunt.",
  63. link: { title: "Learn more", target: "/settings" },
  64. },
  65. {
  66. icon: "monetization_on",
  67. title: "Feature",
  68. description:
  69. "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nam vel vero quia tenetur obcaecati. Distinctio nesciunt obcaecati deserunt.",
  70. link: { title: "Learn more", target: "/settings" },
  71. },
  72. {
  73. icon: "group_work",
  74. title: "Feature",
  75. description:
  76. "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nam vel vero quia tenetur obcaecati. Distinctio nesciunt obcaecati deserunt.",
  77. link: { title: "Learn more", target: "/settings" },
  78. },
  79. ],
  80. }
  81. },
  82. })
  83. </script>