Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit 28d8221

Browse files
committed
testimonials animation unidirectional
1 parent 3e29287 commit 28d8221

File tree

2 files changed

+60
-2
lines changed

2 files changed

+60
-2
lines changed

src/views/pages/common/Recommendations.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,64 @@ export default function Recommendations({ recommendationsImages }) {
201201
</GridListTile>
202202
);
203203
})}
204+
{recommendations.slice(0, 4).map((recommendation, index) => {
205+
return (
206+
<GridListTile
207+
className="recommendation_slide"
208+
key={index}
209+
style={{
210+
margin: '20px',
211+
borderRadius: '5px',
212+
height: 'auto',
213+
overflow: 'hidden',
214+
boxShadow: '0px 0px 14px rgba(0, 0, 0, 0.1)'
215+
}}
216+
>
217+
<Card className={classes.card}>
218+
<CardContent className={classes.cardContent}>
219+
<img
220+
alt=""
221+
width="70px"
222+
src={
223+
index % 2 === 0
224+
? '/static/reviews/high.png'
225+
: '/static/reviews/low.png'
226+
}
227+
/>
228+
</CardContent>
229+
230+
<CardContent className={classes.cardContent}>
231+
<Box display="flex" justifyContent="center">
232+
<Typography
233+
variant="body2"
234+
className={classes.recommenderDetail}
235+
>
236+
<Box m={1}>{recommendation.text}</Box>
237+
</Typography>
238+
</Box>
239+
</CardContent>
240+
241+
<CardContent className={classes.cardContent}>
242+
<Box display="flex" alignItems="center">
243+
<img
244+
className={classes.avatarLarge}
245+
alt=""
246+
width="50px"
247+
src={recommendation['avatar']}
248+
/>
249+
<Box display="flex" flexDirection="column">
250+
<Typography>
251+
<Box fontWeight="fontWeightBold">
252+
{recommendation.name}
253+
</Box>
254+
</Typography>
255+
</Box>
256+
</Box>
257+
</CardContent>
258+
</Card>
259+
</GridListTile>
260+
);
261+
})}
204262
</GridList>
205263
</Grid>
206264
</Grid>

src/views/pages/common/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
}
3131
@keyframes slideshow {
3232
0% { left: 0%; }
33-
50% { left: -150%; }
34-
100% { left: 0%; }
33+
100% { left: -250%; }
34+
3535
}

0 commit comments

Comments
 (0)