forked from GDSC-SLRTCE/github-hands-on
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
152 lines (151 loc) · 5.38 KB
/
index.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!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" />
<title>github-hands-on</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU"
crossorigin="anonymous"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter&family=Lexend+Deca&display=swap"
rel="stylesheet"
/>
<link href="./assets/css/main.css" rel="stylesheet" />
</head>
<body>
<div id="app">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img
src="./assets/images/logo.jpg "
alt=""
width="48"
height="48"
class="d-inline-block rounded-circle align-text-center"
/>
<span class="primary-text"> GDSC SLRTCE</span>
</a>
<button
class="navbar-toggler ms-auto"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarTogglerDemo01"
aria-controls="navbarTogglerDemo01"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 text-title">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#participants">Participants</a>
</li>
<li class="nav-item">
<a
class="nav-link active"
href="https://github.com/GDSC-SLRTCE/github-hands-on"
>Github</a
>
</li>
<li class="nav-item">
<a
class="nav-link active"
href="https://gdsc.community.dev/shree-l-r-tiwari-college-of-engineering-thane/"
>GDSC Homepage</a
>
</li>
</ul>
</div>
</div>
</nav>
<div class="bg-dark text-white rounded-lg jumbotron-custom">
<div class="color-overlay p-5">
<h1 class="display-4 text-title">Hands-on with Git and GitHub</h1>
<p class="lead">This is a practice website for the workshop.</p>
<hr class="my-4" />
<p>
You can make a pull request to
<a href="https://github.com/GDSC-SLRTCE/github-hands-on"
>GDSC-SLRTCE/github-hands-on</a
>
to add yourself to the participants list.
</p>
<a
class="btn btn-light"
href="https://github.com/GDSC-SLRTCE/github-hands-on"
role="button"
>Add yourself as participant</a
>
</div>
</div>
<div class="container py-5">
<h2 class="display-4 text-title text-muted mb-4">Participants</h2>
<div
id="participants"
class="row py-5"
data-masonry='{"percentPosition": true }'
></div>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/masonry.pkgd.min.js"
integrity="sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D"
crossorigin="anonymous"
async
></script>
<script>
let participantsDOM = document.getElementById('participants')
fetch('./data/participants.json')
.then((response) => response.json())
.then((data) => {
data.participants.map((participant) => {
participantsDOM.insertAdjacentHTML(
'beforeend',
`
<div class="col-sm-2 col-md-3 mb-4">
<div class="card text-white bg-dark mb-1 card-custom">
<img
src="${participant.imageURL}"
class="card-img-top custom-card-img"
role="img"
focusable="false"
alt="No image"
/>
<div class="card-body">
<h5 class="card-title text-title">${participant.name}</h5>
<p class="card-text">${participant.about}</p>
</div>
</div>
</div>
`
)
})
})
.catch((error) => console.log(error))
document.addEventListener('DOMContentLoaded', function (event) {
document.querySelectorAll('img').forEach(function (img) {
img.onerror = function () {
this.style.display = 'none'
}
})
})
</script>
</body>
</html>