Cta.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <section class="cta">
  3. <div class="cta-title pf-sc-semibold">开启您的智慧社区转型之旅</div>
  4. <div class="cta-desc pf-sc-light">
  5. 提交您的需求,我们的专属顾问将在24小时内为您提供定制化解决方案
  6. </div>
  7. <button class="cta-btn pf-sc-regular" @click="openConsultation">
  8. <span class="cta-btn-text">立即咨询</span>
  9. <i class="i-custom-arrow-right cta-btn-icon"></i>
  10. </button>
  11. </section>
  12. </template>
  13. <script setup lang="ts">
  14. const { openConsultation } = useConsultation()
  15. </script>
  16. <style scoped lang="scss">
  17. .cta {
  18. @apply w-full h-276px py-60px flex-center flex-col;
  19. @apply lt-sm:h-345px lt-sm:py-60px;
  20. background-size: cover;
  21. background-position: center;
  22. background-image: url('@/assets/images/bg-3.png');
  23. @screen lt-sm {
  24. background-size: cover;
  25. background-position: center;
  26. background-image: url('@/assets/images/bg-3-mobile.png');
  27. }
  28. }
  29. .cta-title {
  30. @apply font-s-40px lh-56px text-center;
  31. @apply lt-sm:font-s-40px lt-sm:lh-56px;
  32. }
  33. .cta-desc {
  34. @apply font-s-18px text-#232325;
  35. @apply lt-sm:font-s-18px lt-sm:mt-24px;
  36. }
  37. .cta-btn {
  38. @apply h-52px mt-22px w-268px bg-#0F67F8 text-white rounded-8px px-16px flex items-center justify-between hover:opacity-80;
  39. @apply lt-sm:h-84px lt-sm:w-391px lt-sm:mt-24px lt-sm:rounded-8px;
  40. }
  41. .cta-btn-text {
  42. @apply font-s-16px;
  43. @apply lt-sm:font-s-26px;
  44. }
  45. .cta-btn-icon {
  46. @apply i-custom-arrow-right wh-18px;
  47. }
  48. </style>