@@ -5,6 +5,13 @@ import discordIcon from '../assets/discord.svg';
5
5
import githubIcon from '../assets/github.svg' ;
6
6
import telegramIcon from '../assets/telegram.svg' ;
7
7
import npmIcon from '../assets/npm.svg' ;
8
+ import community1 from '../assets/community1.jpg' ;
9
+ import community2 from '../assets/community2.jpg' ;
10
+ import community3 from '../assets/community3.jpg' ;
11
+ import community4 from '../assets/community4.jpg' ;
12
+ import community5 from '../assets/community5.jpg' ;
13
+ import community6 from '../assets/community6.jpg' ;
14
+ const communityImages = [ community1 , community2 , community3 , community4 , community5 , community6 ] ;
8
15
9
16
// Il serait bien d'avoir un composant Icône si vous en utilisez beaucoup et voulez gérer le hover de façon centralisée.
10
17
// Pour l'instant, nous allons garder les <img>.
@@ -95,7 +102,7 @@ const Community: React.FC = () => {
95
102
< div className = "images" style = { { animationDuration : '42s' } } >
96
103
{ [ 1 , 2 , 3 , 4 , 5 , 6 , 1 , 2 , 3 , 4 , 5 , 6 ] . map ( ( i , idx ) => (
97
104
< img
98
- src = { `/community ${ i } .jpg` }
105
+ src = { communityImages [ ( i - 1 ) % 6 ] }
99
106
alt = { `` }
100
107
className = "photo"
101
108
key = { "row1-" + idx }
@@ -109,7 +116,7 @@ const Community: React.FC = () => {
109
116
< div className = "images" style = { { animationDuration : '60s' } } >
110
117
{ [ 6 , 5 , 4 , 3 , 2 , 1 , 6 , 5 , 4 , 3 , 2 , 1 ] . map ( ( i , idx ) => (
111
118
< img
112
- src = { `/community ${ i } .jpg` }
119
+ src = { communityImages [ ( i - 1 ) % 6 ] }
113
120
alt = { `` }
114
121
className = "photo"
115
122
key = { "row2-" + idx }
0 commit comments