Testimonial.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <section class="testimonials-one">
  3. <div class="container">
  4. <div class="block-title text-center">
  5. <h2 class="block-title__title">What Our <span>Clients</span> Say <br> About Us.</h2><!-- /.block-title__title -->
  6. </div><!-- /.block-title -->
  7. <div class="testimonials-one__carousel-outer">
  8. <div class="testimonials-one__carousel owl-carousel owl-theme">
  9. <div class="item">
  10. <div class="testimonials-one__single">
  11. <div class="testimonials-one__inner">
  12. <p>This is due to their excellent service, competitive pricing and <br> customer support. It’s throughly refresing to get such a personal <br> touch. Duis aute irure dolor in reprehenderit.</p>
  13. <h3>Shirley Smith</h3>
  14. <span>Our Customers</span>
  15. <img src="/assets/images/resources/testi-1-1.png" alt="Awesome Image" />
  16. </div><!-- /.testimonials-one__inner -->
  17. </div><!-- /.testimonials-one__single -->
  18. </div><!-- /.item -->
  19. <div class="item">
  20. <div class="testimonials-one__single">
  21. <div class="testimonials-one__inner">
  22. <p>This is due to their excellent service, competitive pricing and <br> customer support. It’s throughly refresing to get such a personal <br> touch. Duis aute irure dolor in reprehenderit.</p>
  23. <h3>Shirley Smith</h3>
  24. <span>Our Customers</span>
  25. <img src="/assets/images/resources/testi-1-1.png" alt="Awesome Image" />
  26. </div><!-- /.testimonials-one__inner -->
  27. </div><!-- /.testimonials-one__single -->
  28. </div><!-- /.item -->
  29. <div class="item">
  30. <div class="testimonials-one__single">
  31. <div class="testimonials-one__inner">
  32. <p>This is due to their excellent service, competitive pricing and <br> customer support. It’s throughly refresing to get such a personal <br> touch. Duis aute irure dolor in reprehenderit.</p>
  33. <h3>Shirley Smith</h3>
  34. <span>Our Customers</span>
  35. <img src="/assets/images/resources/testi-1-1.png" alt="Awesome Image" />
  36. </div><!-- /.testimonials-one__inner -->
  37. </div><!-- /.testimonials-one__single -->
  38. </div><!-- /.item -->
  39. </div><!-- /.testimonials-one__carousel -->
  40. <div class="testimonials-one__carousel__shape-one"></div><!-- /.testimonials-one__carousel__shape-one -->
  41. <div class="testimonials-one__carousel__shape-two"></div><!-- /.testimonials-one__carousel__shape-two -->
  42. <div class="testimonials-one__nav">
  43. <a class="testimonials-one__nav-left" href="#"><i class="dimon-icon-left-arrow"></i></a>
  44. <a class="testimonials-one__nav-right" href="#"><i class="dimon-icon-right-arrow"></i></a>
  45. </div><!-- /.testimonials-one__nav -->
  46. </div><!-- /.testimonials-one__carousel-outer -->
  47. </div><!-- /.container -->
  48. </section>
  49. </template>
  50. <script>
  51. export default {
  52. name: "Testimonial",
  53. mounted() {
  54. if ($('.testimonials-one__carousel').length) {
  55. $('.testimonials-one__carousel').owlCarousel({
  56. loop: true,
  57. margin: 0,
  58. nav: false,
  59. dots: false,
  60. autoWidth: false,
  61. autoplay: true,
  62. smartSpeed: 700,
  63. autoplayTimeout: 5000,
  64. autoplayHoverPause: true,
  65. items: 1
  66. });
  67. $('.testimonials-one__nav-left').on('click', function() {
  68. $('.testimonials-one__carousel').trigger('next.owl.carousel');
  69. return false;
  70. });
  71. $('.testimonials-one__nav-right').on('click', function() {
  72. $('.testimonials-one__carousel').trigger('prev.owl.carousel');
  73. return false;
  74. });
  75. }
  76. }
  77. }
  78. </script>
  79. <style scoped>
  80. </style>