@@ -15,20 +15,19 @@ const getUserPicture = ()=> {
1515 const url = data . followers_url ;
1616 const button = document . getElementById ( "Btn" )
1717
18- button . onclick = ( ) => {
19- window . location = 'data.followers_url'
20-
21- }
18+
2219
2320
24- userInfo . innerHTML = `
25- <img class="user-info_picture" src="${ picture } " alt="Picture of gitHub user"/>
26- <div class="user-info_username">User name: ${ username } </div>
27- <div class="user-info_location">Location: ${ location } </div>
28- <div class="user-info_bio">${ userBio } 🐒</div>
21+ userInfo . innerHTML += `
22+
23+ <img class="user-info_picture" src="${ picture } " alt="Picture of gitHub user"/>
24+ <div class="user-info_username">User name: ${ username } </div>
25+ <div class="user-info_location">Location: ${ location } </div>
26+ <div class="user-info_bio">${ userBio } 🐒</div>
27+ `
2928
3029
31- `
30+
3231 } )
3332}
3433getUserPicture ( )
@@ -42,18 +41,21 @@ const fetchRepo = ()=> {
4241 const technigoRepo = data . filter ( repo =>
4342 repo . name . includes ( 'project-' ) && repo . fork
4443 ) ;
45- console . log ( technigoRepo ) ;
44+ // console.log(technigoRepo);
4645
4746 technigoRepo . forEach ( ( repo ) => {
4847 projectsContainer . innerHTML += `
49- <div>PROJECT: ${ repo . name } </div>
50- <div>default branch:${ repo . default_branch } </div>
51- <div>url:${ repo . html_url } </div>
52- <a href="${ repo . html_url } " target="_blank">Go to "${ repo . name } "</a>
53- <div>most recent push:"${ repo . pushed_at } "`
48+
49+ <div class="repo-card">
50+ <div>PROJECT: ${ repo . name } </div>
51+ <div>default branch:${ repo . default_branch } </div>
52+ <a href="${ repo . html_url } " target="_blank">Go to "${ repo . name } "</a>
53+ <div>most recent push:"${ repo . pushed_at } "
54+ `
5455 } ) ;
5556 fetchPull ( technigoRepo ) ;
5657
58+
5759 } ) ;
5860
5961
@@ -66,10 +68,10 @@ const fetchPull = (allRepo)=> {
6668 fetch ( `https://api.github.com/repos/Technigo/${ repo . name } /pulls` )
6769 . then ( ( res ) => res . json ( ) )
6870 . then ( ( data ) => {
69- console . log ( `mother ${ repo . name } , data` ) ;
71+ console . log ( "aleksa" , data ) ;
7072
7173 } ) ;
72- fetchPull ( )
74+
7375
7476
7577 } ) ;
0 commit comments