forked from devvsakib/power-the-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontributor.html
More file actions
102 lines (89 loc) · 3.72 KB
/
contributor.html
File metadata and controls
102 lines (89 loc) · 3.72 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hacktoberfest React Projects</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
crossorigin="anonymous"></script>
<!-- icon cdn -->
<script src="https://kit.fontawesome.com/8d8e8b8b8a.js" crossorigin="anonymous"></script>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="assets/css/style.css" />
<link rel="stylesheet" href="assets/css/contributor.css" />
</head>
<body>
<!--make contriibuters card from Contributors.json-->
<nav id="navi">
<div id="menuToggle">
<!-- Nav tabs -->
<input type="checkbox" />
<span></span>
<span></span>
<span></span>
<ul id="menu">
<a href="index.html">
<li>Home</li>
</a>
<a href="./contributor.html" class="active">
<li>Contributors</li>
</a>
<a href="./project.html">
<li>Projects</li>
</a>
<a href="./blog.html">
<li>Blog</li>
</a>
<a href="#" class="disabled">
<li>Open-Source</li>
</a>
</ul>
</div>
</nav>
<div class="container">
<div class="details">
<h1 class="title"> Our Contributors </h1>
<p class="sub-title"> Thanks To All Contributors. Join Us </p>
</div>
<div>
<ul class="contributors-list" id="contributors"></ul>
</div>
</div>
<div class="footer">PowerTheWeb | Developed By PTW Community @ 2022</div>
<script>
async function loadJson() {
const contributorsElement = document.getElementById('contributors')
const res = await fetch('./Contributors.json');
const { profiles } = await res.json();
profiles.forEach(({ name, github, twitter, avatarUrl }) => {
contributorsElement.innerHTML += `
<div class="contributor-card m-1">
<div class="rounded-3xl overflow-visible shadow-xl max-w-[240px] h-[350px] my-3 p-4">
<img src="${avatarUrl}"
class="rounded-full border-solid border-white border-2 mt-3" />
<div>
<h2 class="text-center text-2xl font-bold">${name}</h2>
<div class="flex justify-evenly items-center ">
<a href="https://github.com/${github}">
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" class="w-10" />
</a>
<a href="https://twitter.com/${twitter}">
<img src="https://cdn-icons-png.flaticon.com/512/2111/2111738.png" class="w-8" />
</a>
</div>
</div>
</div>
</div>
`
})
}
loadJson();
</script>
</body>
</html>