Skip to content

Commit f54120c

Browse files
committed
UPDATE: team-section
team name and designation fixed
1 parent 032eac2 commit f54120c

10 files changed

Lines changed: 23 additions & 33 deletions

File tree

assets/css/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,11 @@ main {
623623
color: #ff5622e1;
624624
}
625625

626+
.faculty-designation, .member-designation{
627+
padding: 0px 6px 0px !important;
628+
}
629+
630+
626631
.basic-details {
627632
position: relative;
628633
z-index: 20;

assets/img/avatar.jpg

-91.9 KB
Binary file not shown.

assets/js/main.js

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -142,36 +142,14 @@ function updateRepos(data){
142142
}
143143

144144
function fetchTeam(force = false) {
145-
fetch("./assets/js/members.json", {
146-
headers: {
147-
"Accept": "*",
148-
"If-None-Match": ls.getKey("team-etag")
149-
}
150-
}).then(
145+
fetch("./assets/js/members.json")
146+
.then(
151147
function(response) {
152-
if (response.status == 304) {
153-
try {
154-
let data = JSON.parse(ls.getKey("team-data"));
155-
updateTeam(data);
156-
console.log("[LOCAL Team] Loaded cached copy.");
157-
} catch (e) {
158-
ls.removeKey("team-etag");
159-
setTimeout(fetchTeam());
160-
}
161-
return;
162-
}
163148
if (response.status !== 200) {
164149
console.log("[FETCH Team] Request failed!. Status Code: " + response.status);
165150
return;
166151
}
167-
168152
response.json().then(function(data) {
169-
try {
170-
ls.setKey("team-etag", response.headers.get("etag"));
171-
ls.setKey("team-data", JSON.stringify(data));
172-
} catch (e) {
173-
console.log("[FETCH Team] ETag Missing");
174-
}
175153
updateTeam(data);
176154
});
177155
}
@@ -195,10 +173,13 @@ function setMember(info){
195173
let basicdetails = createElement("div", {class: "basic-details"});
196174
let img = createElement("img",{class: info.profile+"-image", src: info.img});
197175
let h3 = createElement("h3", {class: info.profile+"-name"});
176+
let h4 = createElement("h4", {class: info.profile+"-designation "+info.profile+"-name ml-2"});
198177
let innerdetails = createElement("div", {class: "outer-circle"});
199178
h3.innerHTML = info.name;
179+
h4.innerHTML = info.designation;
200180
basicdetails.appendChild(img);
201181
basicdetails.appendChild(h3);
182+
basicdetails.appendChild(h4);
202183
outerDiv.appendChild(basicdetails);
203184
outerDiv.appendChild(innerdetails);
204185
teamContainer.appendChild(outerDiv);

assets/js/members.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,37 @@
22
"faculty":[
33
{
44
"profile": "faculty",
5-
"img": "/assets/img/PratyayKuila.jpeg",
5+
"img": "/assets/img/faculty/PratyayKuila.jpeg",
66
"name": "Dr. Pratyay Kuila",
77
"designation" : "Faculty advisors"
88
},
99
{
1010
"profile": "faculty",
11-
"img": "/assets/img/TarunBiswas.jpeg",
11+
"img": "/assets/img//faculty/TarunBiswas.jpeg",
1212
"name": "Dr. Tarun Biswas",
1313
"designation" : "Faculty advisors"
1414
}
1515
],
1616
"2021": [
1717
{
1818
"profile": "member",
19-
"img": "/assets/img/PokalaAnirudh.png",
20-
"name": "Pokala Anirudh"
19+
"img": "/assets/img/member/PokalaAnirudh.png",
20+
"name": "Pokala Anirudh",
21+
"designation": "Coordinator"
2122
},
2223
{
2324
"profile": "member",
24-
"img": "/assets/img/PrinceRaj.jpg",
25-
"name": "Prince Raj"
25+
"img": "/assets/img/member/PrinceRaj.jpg",
26+
"name": "Prince Raj",
27+
"designation": "Coordinator"
28+
2629
},
2730
{
2831
"profile": "member",
29-
"img": "/assets/img/AbhineshKumar.jpg",
30-
"name": "Abhinesh Kumar"
32+
"img": "/assets/img/member/AbhineshKumar.jpg",
33+
"name": "Abhinesh Kumar",
34+
"designation": "Coordinator"
35+
3136
}
3237
]
3338
}

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ <h4>Feedback</h4>
177177
<script src="assets/js/main.js"></script>
178178
<script src="assets/vendor/particles.min.js"></script>
179179
<script src="assets/js/particle.js"></script>
180-
<script src="assets/js/members.js"></script>
181180
</body>
182181

183182
</html>

0 commit comments

Comments
 (0)