forked from HackClubRAIT/HackClubRAIT.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
contributer.html
78 lines (73 loc) · 4.15 KB
/
contributer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="styles.css" rel="stylesheet" type="text/css">
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> -->
<link rel="icon" href="./images/hackclubrait-logo.png">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<title>Contributors</title>
</head>
<body>
<nav class="nav navbar navbar-expand-lg navbar-dark fixed-top">
<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
<a class="header" href="index.html">
<img id="logo" src="./images/hackclubrait-logo.png">
<div class="logo_header">
<span style="color: #eb3750;"> <</span>
<span style="color: #eb3750;">HackClub</span>
<span style="color: #eb3750;">/></span>
</div>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav navbars navbar-nav ms-auto">
<li><a href="index.html" class="active hover-line nav navbars">HOME</a></li>
<li><a href="team.html" class="hover-line nav navbars">TEAM</a></li>
<li><a href="projects.html" class="hover-line nav navbars">PROJECTS</a></li>
<li><a href="contributer.html" class="hover-line nav navbars">CONTRIBUTORS</a></li>
<li><a href="opportunity.html" class="hover-line nav navbars">OPPORTUNITIES</a></li>
<li><a href="blogs.html" class="hover-line nav navbars">BLOGS</a></li>
<li><a href="contact.html" class="hover-line nav navbars">CONTACT US</a></li>
</div>
</nav>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.21.1/axios.min.js"></script>
<div id="contributor" data-aos="zoom-out-up">
</div>
</body>
<script>
const getUsers = () => {
const owner = 'HackClubRAIT',
repo = 'HackClubRAIT-Website';
axios
.get(
`https://api.github.com/repos/${owner}/${repo}/contributors`
)
.then((response) => {
var div=document.getElementById("contributor");
const users = response.data;
img_id = users.map(u => u.id);
img_user = users.map(u => u.login);
for (let i = 0; i < img_id.length; i++) {
div.innerHTML+=`<div class="userBlock"><a href="https://github.com/${img_user[i]}" target="_blank_"><img src="https://avatars.githubusercontent.com/u/${img_id[i]}"/></a><div><h4>@${img_user[i]}</h4><p>Contributions: ${users[i].contributions}</p></div></div>`;
}
})
.catch((error) => console.error(error));
};
getUsers();
AOS.init({
duration: 1200,
})
</script>
</html>