This repository was archived by the owner on Mar 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +60
-2
lines changed Expand file tree Collapse file tree 2 files changed +60
-2
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,64 @@ export default function Recommendations({ recommendationsImages }) {
201
201
</ GridListTile >
202
202
) ;
203
203
} ) }
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
+ } ) }
204
262
</ GridList >
205
263
</ Grid >
206
264
</ Grid >
Original file line number Diff line number Diff line change 30
30
}
31
31
@keyframes slideshow {
32
32
0% { left : 0% ; }
33
- 50 % { left : -150 % ; }
34
- 100 % { left : 0 % ; }
33
+ 100 % { left : -250 % ; }
34
+
35
35
}
You can’t perform that action at this time.
0 commit comments