forked from pledge-snt-club/pledge-snt-club.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (83 loc) · 4.39 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
<!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>Science and Technology Club, SKIT Jaipur</title>
<meta name="title" content="Science and Technology Club, SKIT Jaipur">
<meta name="description" content="Best place to explore new Technology | Learn about Science | Hands on Projects">
<!-- CSS only -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script>
<style>
h4{
margin-bottom:0px;
}
.fa,.fab{
font-size: 2rem;
color:#212529;
}
</style>
</head>
<body>
<div class="px-4 py-5 my-3 text-center">
<img class="d-block mx-auto mb-4" src="/logo_colored.png" alt="" width="200px" >
<h1 class="display-6 fw-bold">Git with S&T</h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">Every contribution counts! So lets come together & grow together as a community. One pull request at a time.</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="https://github.com/pledge-snt-club/pledge-snt-club.github.io" target="_blank"><button type="button" class="btn btn-dark px-4 me-sm-3">create a Pull Request</button></a>
</div>
</div>
<div class=" d-flex justify-content-center mt-3 ">
<a href="https://www.instagram.com/snt_club/" target="_blank" rel="noopener noreferrer"><i class="fa fa-instagram p-2 " style=""></i></a>
<a href="https://www.youtube.com/channel/UCs7cNBZzRubgSe-zZJWif8A" target="_blank" rel="noopener noreferrer"><i class="fa fa-youtube p-2"></i></a>
<a href="https://www.linkedin.com/in/science-and-technology-club-93a66a176" target="_blank" rel="noopener noreferrer"><i class="fa fa-linkedin p-2"></i></a>
</div>
</div>
<div class="container">
<div class="row row-cols-1 row-cols-md-3 " id="data">
<script id="template" type="text/x-handlebars-template">
{{#each info}}
<div class="col mb-3">
<div class="card">
<div class="card-header d-flex align-items-center justify-content-between pb-0" >
<div class="d-flex align-items-center">
<img {{createAvatar avatar}} alt="" class="img-fluid" style="max-height: 60px; margin-right:0.5rem;">
<div class="header-text">
<h4>{{name}}</h4>
<span>{{year}}</span>
</div>
</div>
{{createLink link}} <img src="linkedin.png" alt="" width="45px" class="img-fluid"></a>
</div>
<div class="card-body">
<div class="card-text">
{{des}}
</div>
</div>
</div>
</div>
{{/each}}
</script>
</div>
</div>
<div id="get"></div>
</body>
<script src="data.json"></script>
<script>
link = document.getElementById('data');
Handlebars.registerHelper("createLink", function(url) {
return new Handlebars.SafeString("<a href='" + url + "'target='blank'>");
});
Handlebars.registerHelper("createAvatar", function(url) {
return new Handlebars.SafeString(" src='avatar/" + url + ".png'");
});
var temp = document.getElementById('template').innerHTML;
var templateScript = Handlebars.compile(temp);
var html = templateScript(data);
link.innerHTML = html;
</script>
</html>