PeterPinetree commited on
Commit
e9c2730
·
verified ·
1 Parent(s): dd70bc6

Update Swipercomponent.js

Browse files
Files changed (1) hide show
  1. Swipercomponent.js +19 -1
Swipercomponent.js CHANGED
@@ -44,4 +44,22 @@ function SwiperComponent({ onSelectAvatar }) {
44
  slideShadows: false,
45
  }}
46
  pagination={true}
47
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  slideShadows: false,
45
  }}
46
  pagination={true}
47
+ modules={[EffectCoverflow, Pagination]}
48
+ className="swiper"
49
+ >
50
+ {avatars.map((avatar, index) => (
51
+ <SwiperSlide key={index} onClick={() => handleSelect(avatar)}>
52
+ <img src={avatar.image} alt={avatar.name} className="avatar-image" />
53
+ <div className="avatar-info">
54
+ <h3>{avatar.name}</h3>
55
+ <p>{avatar.description}</p>
56
+ <em>"{avatar.sample}"</em>
57
+ </div>
58
+ </SwiperSlide>
59
+ ))}
60
+ </Swiper>
61
+ </div>
62
+ );
63
+ }
64
+
65
+ export default SwiperComponent;