File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,14 +89,15 @@ fetch("https://api.github.com/repos/TusharKesarwani/Front-End-Projects/contribut
8989 // Extract the data for each contributor
9090 const contributors = data . map ( contributor => ( {
9191 username : contributor . login ,
92- avatarUrl : contributor . avatar_url
92+ avatarUrl : contributor . avatar_url ,
93+ profileUrl : contributor . html_url
9394 } ) ) ;
9495
9596 // Create and append HTML elements to display the contributors
9697 const contributorsList = document . querySelector ( "#contributors-list" ) ;
9798 contributors . forEach ( contributor => {
9899 const li = document . createElement ( "li" ) ;
99- li . innerHTML = `<img src="${ contributor . avatarUrl } " alt="${ contributor . username } ">` ;
100+ li . innerHTML = `<a href=" ${ contributor . profileUrl } ">< img src="${ contributor . avatarUrl } " alt="${ contributor . username } "></a >` ;
100101 contributorsList . appendChild ( li ) ;
101102 } ) ;
102- } ) ;
103+ } ) ;
You can’t perform that action at this time.
0 commit comments