item.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <script lang='ts' setup>
  2. defineProps({
  3. item: Object as any,
  4. })
  5. </script>
  6. <template>
  7. <div>
  8. <div class="pos-relative bg-#fff shadow-item flex b-rd-20px overflow-hidden p-40px items-center">
  9. <img :src="item.img" alt="" srcset="" class="w-500px h-380px b-rd-10px object-cover mr-50px">
  10. <div class="flex-1 text-left">
  11. <h3
  12. class="!mb-20px fw-800 text-24px text-#333 line-clamp-2"
  13. >
  14. {{ item.title }}
  15. </h3>
  16. <div class="text-16px text-#999 lh-24px mb-60px">
  17. {{ item.subTitle }}
  18. </div>
  19. <div class="flex items-center">
  20. <el-button class="!bg-#9B6CFF w-140px text-14px !text-#fff !b-#9B6CFF !h-48px py-18px">
  21. Learn More
  22. </el-button>
  23. <el-button class="!bg-#fff w-150px text-14px !text-#9B6CFF !b-#9B6CFF !h-48px px-24px">
  24. Download Catalog
  25. </el-button>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <style lang='less' scoped>
  32. .shadow-item{
  33. box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
  34. }
  35. </style>