-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaculty-data.js
110 lines (94 loc) · 4.39 KB
/
faculty-data.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
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
const facultyData = [
{
name: "Puja Banerjee",
age: 25,
education: "B.Sc in Zoology(Honours) from WBSU",
subject: "Science faculty of GANiT from class V to VIII and Biology faculty from IX to XII"
},
{
name: "Sarthak Biswas",
age: 22,
education: "B.Sc in Computer Science(Honours) from University of Burdwan and pursuing M.Sc in same stream from Calcutta University",
subject: "Computer Faculty of GANiT"
},
{
name: "Supriti saha",
age: 27,
education: "B.Sc and M.Sc from Burdwan University in Microbiology(Honours)",
subject: "Biology Teacher of class 6 to class 10 ICSE and CBSE board and Class 12 WB board"
},
{
name: "Debadreeta Ghosh",
age: 20,
education: "Pursuing BA in English(Honours) from University of Kalyani",
subject: "English faculty of GANiT"
},
{
name: "Diptesh Bramha",
age: 27,
education: "B-Tech in Electrical Engineering from Ideal Institute of Engineering, Kalyani, M-Tech in Power System Engineering from MAKAUT",
subject: "Physics faculty of GANiT The Assurance from VI to X ICSE, CBSE and XI-XII WBBSE, ISC, CBSE"
},
{
name: "Manoj Sir",
age: 49,
education: "M.Sc in Applied Mathematics from Calcutta University, 1st class",
subject: "Founder Teacher of GANiT The Assistance,20+ years teaching Mathematics at 10+2 level, specializing in WBJEE, JEE MAINS, and JEE ADVANCED(IIT) mentoring."
},
{
name: "Dipan Das",
age: 24,
education: "B.Sc in Statistics(Honours) from University of Kalyani & pursuing M.Sc in Mathematics from IGNOU",
subject: "Currently mentoring over 80 students, in MATHEMATICS from class V to X of WBBSE, ICSE, CBSE and guiding students in STATISTICS at 10+2 level"
},
{
name: "Pratik Dey",
age: 23,
education: "B.Sc(Hons) in Physics from Chakdaha College(KU) and currently pursuing M.Sc in Physics from Aliah University",
subject: "Physics faculty of GANiT"
},
{
name: "Shuvam Rajbanshi",
age: 23,
education: "B.Sc(Hons) in Geography from Calcutta University with 3 years teaching experience ",
subject: "Geography faculty of GANiT"
}
];
// Function to create and populate flip-card elements
function createFacultyCards() {
const facultyContainer = document.querySelector('.faculty-container1');
facultyData.forEach((faculty, index) => {
const flipCard = document.createElement('div');
flipCard.classList.add('flip-card');
const flipCardInner = document.createElement('div');
flipCardInner.classList.add('flip-card-inner');
const flipCardFront = document.createElement('div');
flipCardFront.classList.add('flip-card-front');
const img = document.createElement('img');
img.src = `faculty\\faculty${index + 1}.jpg`; // Assuming images are named faculty1.png, faculty2.png, ...
img.alt = "Avatar";
img.style.width = "250px";
img.style.height = "300px";
flipCardFront.appendChild(img);
const flipCardBack = document.createElement('div');
flipCardBack.classList.add('flip-card-back');
const h1 = document.createElement('h2');
h1.innerText = faculty.name;
const pAge = document.createElement('p');
pAge.innerText = `Age: ${faculty.age}`;
const pEducation = document.createElement('p');
pEducation.innerText = `Education: ${faculty.education}`;
const pSubject = document.createElement('p');
pSubject.innerText = `Subject: ${faculty.subject}`;
flipCardBack.appendChild(h1);
flipCardBack.appendChild(pAge);
flipCardBack.appendChild(pEducation);
flipCardBack.appendChild(pSubject);
flipCardInner.appendChild(flipCardFront);
flipCardInner.appendChild(flipCardBack);
flipCard.appendChild(flipCardInner);
facultyContainer.appendChild(flipCard);
});
}
// Call function to create and populate flip-card elements
createFacultyCards();