Feature.vue 702 B

12345678910111213141516171819202122232425262728293031
  1. <script setup lang="ts">
  2. defineProps({
  3. title: { type: String, required: true },
  4. text: { type: String, required: true },
  5. url: { type: String, required: true },
  6. })
  7. </script>
  8. <template>
  9. <div
  10. class="flex flex-col h-full p-8 bg-gray-100 rounded-lg items dark:bg-gray-700"
  11. >
  12. <Heading2>
  13. {{ title }}
  14. </Heading2>
  15. <div class="flex flex-col flex-grow">
  16. <p class="flex-grow text-base leading-relaxed dark:text-gray-300">
  17. {{ text }}
  18. </p>
  19. <a
  20. :href="url"
  21. target="_blank"
  22. class="inline-flex items-center mt-3 text-green-500"
  23. >
  24. Learn More
  25. <MdiArrowRight class="ml-1" />
  26. </a>
  27. </div>
  28. </div>
  29. </template>