forked from aitoss/HacktoberFest_2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparticipants.js
64 lines (61 loc) · 2.16 KB
/
participants.js
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
const participants = [
{
"name": "AIT-OSS",
"img": "https://avatars3.githubusercontent.com/u/47062438?s=400&u=ab4cb37695763efe4297b2da4b7f97cd8f6f888b&v=4",
"title": "Organizer",
"year": "BE - 2022",
"linkedIn": "https://www.linkedin.com/company/open-source-software-club/",
"github": "https://github.com/aitoss",
"skills": ['All Open Source Technologies'],
"description": "A student driven Open Source Community at AIT, Pune."
},
{
"name": "Akshay Sharma",
"img": "https://avatars0.githubusercontent.com/u/47213544?s=400&u=2ead5be2dba2c7cea9fe1f7a6db53d25fa517d72&v=4",
"title": "Organizer",
"year": "BE - 2022",
"linkedIn": "https://www.linkedin.com/in/akshaysharma008/",
"github": "https://github.com/AkshaySharma008",
"skills": ['Angular', 'Nodejs' ,'Docker' , 'GCP'],
"description": "Secretary OSS Club and DSC Lead"
}
]
function loadParticipants() {
participants.forEach((participant) => {
let listed='';
participant.skills.forEach((skill)=>{
listed += `<li>${skill}</li>`;
})
const card = `<div class="col-md-3 mt-3">
<div class="card-container">
<span class="pro">${participant.title}</span>
<img
class="round"
src=${participant.img}
alt="user"
/>
<h3>${participant.name}</h3>
<h6>${participant.year}</h6>
<p>
${participant.description}
</p>
<div class="buttons">
<button onclick="location.href='${participant.linkedIn}';" class="primary">
LinkedIn
</button>
<button onclick="location.href='${participant.github}';" class="primary ghost">
Github
</button>
</div>
<div class="skills">
<h6>Skills</h6>
<ul>
${listed}
</ul>
</div>
</div>
</div>`;
$(".outer-div").append(card);
})
}
loadParticipants();