├── src ├── images │ ├── avatar1.jpg │ ├── avatar2.jpg │ └── avatar3.jpg ├── javascript │ └── script.js └── css │ └── styles.css ├── README.md └── index.html /src/images/avatar1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Larissakich/testimonials-carousel/HEAD/src/images/avatar1.jpg -------------------------------------------------------------------------------- /src/images/avatar2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Larissakich/testimonials-carousel/HEAD/src/images/avatar2.jpg -------------------------------------------------------------------------------- /src/images/avatar3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Larissakich/testimonials-carousel/HEAD/src/images/avatar3.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Carrossel de Avaliações com Swiper JS 2 | 3 | Este projeto demonstra como criar um carrossel de avaliações utilizando a biblioteca Swiper JS com HTML, CSS e JavaScript. O carrossel é responsivo e permite exibir avaliações de forma interativa e visualmente atraente. 4 | 5 | ## Visualize o Projeto 6 | 7 | [Visualize aqui](https://larissakich.github.io/testimonials-carousel) 8 | 9 | ## Funcionalidades 10 | 11 | - Carrossel responsivo de avaliações com Swiper JS. 12 | - Opções de navegação e paginação personalizáveis. 13 | - Animações suaves entre os slides. 14 | 15 | ## Autor 16 | 17 | Larissa Kich - larissakich04@gmail.com 18 | -------------------------------------------------------------------------------- /src/javascript/script.js: -------------------------------------------------------------------------------- 1 | var swiper = new Swiper(".swiper", { 2 | loop: true, 3 | grabCursor: true, 4 | navigation: { 5 | nextEl: ".swiper-button-next", 6 | prevEl: ".swiper-button-prev", 7 | }, 8 | pagination: { 9 | el: ".swiper-pagination", 10 | clickable: true 11 | }, 12 | breakpoints: { 13 | 640: { 14 | slidesPerView: 1, 15 | spaceBetween: 18 16 | }, 17 | 768: { 18 | slidesPerView: 2, 19 | spaceBetween: 18 20 | }, 21 | 1188: { 22 | slidesPerView: 3, 23 | spaceBetween: 24 24 | } 25 | } 26 | }); -------------------------------------------------------------------------------- /src/css/styles.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); 2 | 3 | * { 4 | font-family: 'Poppins', sans-serif; 5 | margin: 0; 6 | padding: 0; 7 | box-sizing: border-box; 8 | } 9 | 10 | #testimonials { 11 | min-height: 100vh; 12 | background-color: #f9fafb; 13 | display: flex; 14 | align-items: center; 15 | justify-content: center; 16 | flex-direction: column; 17 | gap: 60px; 18 | padding: 32px 8%; 19 | } 20 | 21 | #testimonials_header { 22 | text-align: center; 23 | } 24 | 25 | #testimonials_header h1 { 26 | font-size: 18px; 27 | font-weight: 600; 28 | color: #3758f9; 29 | } 30 | 31 | #testimonials_header h2 { 32 | color: #111928; 33 | font-size: 40px; 34 | } 35 | 36 | #testimonials_header p { 37 | color: #637381; 38 | font-size: 16px; 39 | max-width: 485px; 40 | } 41 | 42 | .swiper { 43 | width: 100%; 44 | height: 329px; 45 | padding-bottom: 60px; 46 | } 47 | 48 | .swiper-slide { 49 | background-color: #fff; 50 | display: flex; 51 | flex-direction: column; 52 | gap: 18px; 53 | justify-content: center; 54 | box-shadow: 0px 0px 20px 0px rgba(92, 115, 160, 0.07); 55 | padding: 34px; 56 | border-radius: 12px; 57 | } 58 | 59 | .testimonial-rate { 60 | display: flex; 61 | gap: 2px; 62 | } 63 | 64 | .testimonial-rate i { 65 | color: #f9b707; 66 | } 67 | 68 | .testimonial-quote { 69 | color: #637381; 70 | font-size: 16px; 71 | } 72 | 73 | .testimonial-author { 74 | display: flex; 75 | align-items: center; 76 | gap: 18px; 77 | } 78 | 79 | .author-avatar { 80 | width: 50px; 81 | height: 50px; 82 | border-radius: 100%; 83 | overflow: hidden; 84 | } 85 | 86 | .author-avatar img { 87 | width: 100%; 88 | height: 100%; 89 | object-fit: cover; 90 | } 91 | 92 | .author-info h3 { 93 | font-weight: 600; 94 | font-size: 14px; 95 | color: #111928; 96 | } 97 | 98 | .author-info p { 99 | font-size: 12px; 100 | color: #8899a8; 101 | } 102 | 103 | .swiper-button-prev, 104 | .swiper-button-next { 105 | background-color: #fff; 106 | width: 25px; 107 | height: 25px; 108 | color: #3758f9; 109 | border: 1px solid #f9fafb; 110 | border-radius: 100%; 111 | box-shadow: 0px 0px 20px 0px rgba(92, 115, 160, 0.2); 112 | } 113 | 114 | .swiper-button-prev::after { 115 | content: '\f053'; 116 | font-family: 'Font Awesome 5 free'; 117 | font-weight: 900; 118 | font-size: 14px; 119 | } 120 | 121 | .swiper-button-next::after { 122 | content: '\f054'; 123 | font-family: 'Font Awesome 5 free'; 124 | font-weight: 900; 125 | font-size: 14px; 126 | } 127 | 128 | .swiper-button-prev { 129 | left: 3px; 130 | } 131 | 132 | .swiper-button-next { 133 | right: 3px; 134 | } 135 | 136 | .swiper-pagination.active { 137 | background-color: #3758f9; 138 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Avaliações 10 | 11 | 12 |
13 |
14 |

Avaliações

15 |

16 | O que os clientes dizem 17 |

18 |

19 | Quer saber o que torna a nossa marca tão especial? 20 | Confira o que nossos clientes têm a dizer! 21 |

22 |
23 | 24 |
25 |
26 |
27 |
28 | 29 | 30 | 31 | 32 | 33 |
34 | 35 |
36 | "Experiência incrível! Desde o primeiro contato, fui muito bem atendido e recebi 37 | todas as informações de forma clara. Recomendo para todos!" 38 |
39 | 40 |
41 |
42 | Imagem de uma pessoa 43 |
44 | 45 |
46 |

Fulano de Tal

47 |

Cliente desde 2020

48 |
49 |
50 |
51 | 52 |
53 |
54 | 55 | 56 | 57 | 58 | 59 |
60 | 61 |
62 | "Experiência incrível! Desde o primeiro contato, fui muito bem atendido e recebi 63 | todas as informações de forma clara. Recomendo para todos!" 64 |
65 | 66 |
67 |
68 | Imagem de uma pessoa 69 |
70 | 71 |
72 |

Fulano de Tal

73 |

Cliente desde 2020

74 |
75 |
76 |
77 | 78 |
79 |
80 | 81 | 82 | 83 | 84 | 85 |
86 | 87 |
88 | "Experiência incrível! Desde o primeiro contato, fui muito bem atendido e recebi 89 | todas as informações de forma clara. Recomendo para todos!" 90 |
91 | 92 |
93 |
94 | Imagem de uma pessoa 95 |
96 | 97 |
98 |

Fulano de Tal

99 |

Cliente desde 2020

100 |
101 |
102 |
103 | 104 |
105 |
106 | 107 | 108 | 109 | 110 | 111 |
112 | 113 |
114 | "Experiência incrível! Desde o primeiro contato, fui muito bem atendido e recebi 115 | todas as informações de forma clara. Recomendo para todos!" 116 |
117 | 118 |
119 |
120 | Imagem de uma pessoa 121 |
122 | 123 |
124 |

Fulano de Tal

125 |

Cliente desde 2020

126 |
127 |
128 |
129 |
130 |
131 | 132 |
133 |
134 |
135 |
136 | 137 | 138 | 139 | 140 | --------------------------------------------------------------------------------