@@ -767,12 +767,13 @@ <h3>Stay Updated</h3>
767767 const projectsData = [
768768 // GAMES (20+)
769769 {
770- project : "number-sliding-puzzle" ,
771- title : "Number Sliding Puzzle" ,
772- category : "games" ,
773- desc : "Arrange tiles in order by sliding them into empty space" ,
774- tags : "game,puzzle,sliding,numbers" ,
775- } ,
770+ project : "number-sliding-puzzle" ,
771+ title : "Number Sliding Puzzle" ,
772+ category : "games" ,
773+ difficulty : "Intermediate" ,
774+ desc : "Arrange tiles in order by sliding them into empty space" ,
775+ tags : "game,puzzle,sliding,numbers" ,
776+ } ,
776777 {
777778 project : "2048-game" ,
778779 title : "2048 Game" ,
@@ -1190,16 +1191,31 @@ <h3>Stay Updated</h3>
11901191 const starClass = isFavorite ? "fas fa-star" : "far fa-star" ;
11911192
11921193 card . innerHTML = `
1193- <img class="card-banner" src="assets/banners/${ proj . project } .webp?v=2" alt="${ proj . title } " loading="lazy">
1194- <div class="card-actions">
1195- <button class="btn-play" data-project="${ proj . project } " aria-label="Play PyMini Logo">Try It</button>
1196- <button class="btn-favorite" data-project="${ proj . project } " aria-label="Add to favorites">
1197- <i class="${ starClass } "></i>
1198- </button>
1199- </div>
1200- <h3>${ proj . title } </h3>
1201- <p>${ proj . desc } </p>
1202- ` ;
1194+ <div class="difficulty-badge ${ proj . difficulty . toLowerCase ( ) } ">
1195+ ${ proj . difficulty }
1196+ </div>
1197+
1198+ <img class="card-banner"
1199+ src="assets/banners/${ proj . project } .webp?v=2"
1200+ alt="${ proj . title } "
1201+ loading="lazy">
1202+
1203+ <div class="card-actions">
1204+ <button class="btn-play"
1205+ data-project="${ proj . project } ">
1206+ Try It
1207+ </button>
1208+
1209+ <button class="btn-favorite"
1210+ data-project="${ proj . project } ">
1211+ <i class="${ starClass } "></i>
1212+ </button>
1213+ </div>
1214+
1215+ <h3>${ proj . title } </h3>
1216+
1217+ <p>${ proj . desc } </p>
1218+ ` ;
12031219
12041220 projectsGrid . appendChild ( card ) ;
12051221 } ) ;
0 commit comments