|
2 | 2 | {{ if .Site.Params.testimonials.enable }}
|
3 | 3 | {{ if isset .Site.Data "testimonials" }}
|
4 | 4 | {{ if gt (len .Site.Data.testimonials) 0 }}
|
5 |
| -<section class="bar background-pentagon no-mb"> |
6 |
| - <div class="container"> |
| 5 | +<section class="py-5 bg-pentagon border-top border-gray-600"> |
| 6 | + <div class="container py-4"> |
7 | 7 | <div class="row">
|
8 | 8 | <div class="col-md-12">
|
9 |
| - <div class="heading text-center"> |
10 |
| - <h2>{{ .Site.Params.testimonials.title }}</h2> |
11 |
| - </div> |
| 9 | + <h2 class="lined lined-center text-uppercase mb-4">{{ .Site.Params.testimonials.title }}</h2> |
12 | 10 |
|
13 |
| - <p class="lead"> |
| 11 | + <p class="lead text-center"> |
14 | 12 | {{ .Site.Params.testimonials.subtitle | markdownify }}
|
15 | 13 | </p>
|
16 | 14 |
|
17 | 15 | <!-- *** TESTIMONIALS CAROUSEL *** -->
|
18 | 16 |
|
19 |
| - <ul class="owl-carousel testimonials same-height-row" |
20 |
| - data-items="{{ default 4 .Site.Params.CarouselTestimonials.items }}" |
21 |
| - data-autoplay="{{ default false .Site.Params.CarouselTestimonials.auto_play }}" |
22 |
| - data-slide-speed="{{ default 2000 .Site.Params.CarouselTestimonials.slide_speed }}" |
23 |
| - data-pagination-speed="{{ default 1000 .Site.Params.CarouselTestimonials.pagination_speed }}"> |
24 |
| - {{ range .Site.Data.testimonials }} |
25 |
| - <li class="item"> |
26 |
| - <div class="testimonial same-height-always"> |
27 |
| - <div class="text"> |
28 |
| - <p>{{ .text | markdownify }}</p> |
29 |
| - </div> |
30 |
| - <div class="bottom"> |
31 |
| - <div class="icon"><i class="fas fa-quote-left"></i> |
| 17 | + <div class="swiper-container testimonials-slider"> |
| 18 | + <div class="swiper-wrapper"> |
| 19 | + {{ range .Site.Data.testimonials }} |
| 20 | + <div class="swiper-slide h-auto mb-5"> |
| 21 | + <div class="p-4 bg-white h-100 d-flex flex-column justify-content-between"> |
| 22 | + <div class="mb-2"> |
| 23 | + <p class="text-sm text-gray-600">{{ .text | markdownify }}</p> |
| 24 | + <p class="text-sm text-gray-600"></p> |
32 | 25 | </div>
|
33 |
| - <div class="name-picture"> |
34 |
| - <img class="" alt="" src="{{ .avatar | absURL }}"> |
35 |
| - <h5>{{ .name }}</h5> |
36 |
| - <p>{{ .position }}</p> |
| 26 | + <div class="d-flex align-items-center justify-content-between"> |
| 27 | + <i class="fas fa-quote-left text-primary fa-2x"></i> |
| 28 | + <div class="d-flex align-items-center ms-3"> |
| 29 | + <div class="me-3 text-end"> |
| 30 | + <h5 class="text-uppercase mb-0">{{ .name }}</h5> |
| 31 | + <p class="small text-muted mb-0">{{ .position }}</p> |
| 32 | + </div> |
| 33 | + <img class="avatar p-1 flex-shrink-0" alt="{{ .name }}" src="{{ .avatar | absURL }}"> |
| 34 | + </div> |
37 | 35 | </div>
|
38 | 36 | </div>
|
39 | 37 | </div>
|
40 |
| - </li> |
41 |
| - {{ end }} |
42 |
| - </ul> |
43 |
| - <!-- /.owl-carousel --> |
44 |
| - |
45 |
| - <!-- *** TESTIMONIALS CAROUSEL END *** --> |
| 38 | + {{ end }} |
| 39 | + </div> |
| 40 | + <div class="swiper-pagination"></div> |
| 41 | + </div> |
46 | 42 | </div>
|
47 |
| - |
48 | 43 | </div>
|
49 | 44 | </div>
|
50 | 45 | </section>
|
|
0 commit comments