-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtutors.js
78 lines (73 loc) · 3.22 KB
/
tutors.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
// Tutors div holder
const featuredTutors = document.querySelector('.tutors');
const tutors = [
{
name: 'Bucky Roberts',
position: 'Director of Engineering',
description:
'I’ve acquired a wide depth of knowledge and expertise in using my technical skills in programming, computer science, software development, and mobile app development to developing solutions to help organizations increase productivity, and accelerate business performance.',
image: './images/tutors/selected/Bucky.jpg',
},
{
name: 'Jonas Schmedtmann',
position: 'Web Developer, Designer, and Teacher.',
description:
"Hi, I'm Jonas! I have been identified as one of Udemy's Top Instructors and all my premium courses have earned the best-selling status for outstanding performance and student satisfaction.",
image: './images/tutors/selected/Jonas.jpg',
},
{
name: 'Andrew Mead',
position: 'A Full-stack Developer & Teacher',
description:
"I launched my first Udemy course in 2014 and had a blast teaching and helping others. Since then, I've launched 3 courses with over 110,000 students and over 18,000 5-star reviews.",
image: './images/tutors/selected/Andrew.jpg',
},
{
name: 'Brad Traversy',
position: 'Full Stack Web Developer & Instructor at Traversy Media',
description:
'Brad Traversy has been programming for around 12 years and teaching for almost 5 years. He is the owner of Traversy Media which is a successful web development YouTube channel and specializes in Fullstack web development.',
image: './images/tutors/selected/Brad.jpeg',
},
{
name: 'Maximilian Schwarzmüller',
position: 'Professional Web Developer and Instructor',
description:
'Starting out at the age of 12 I never stopped learning new programming skills and languages. Early I started creating websites for friends and just for fun as well. Besides web development I also explored Python and other non-web-only languages.',
image: './images/tutors/selected/Maximilian.jpeg',
},
{
name: 'Colt Steele',
position: 'Developer and Bootcamp Instructor',
description:
"Hi! I'm Colt. I'm a developer with a serious love for teaching. I've spent the last few years teaching people to program at 2 different immersive bootcamps where I've helped hundreds of people become web developers and change their lives.",
image: './images/tutors/selected/Colt.jpg',
},
];
// Looping through the array and passing each object's data to div holding the Tutors in HTML
tutors.forEach((item) => {
const card = `
<div class="d-flex featured-left">
<div class="image">
<img src="./images/Tiles.svg" alt="" class="image-left" />
<img
src="${item.image}"
alt="Colt Steele"
class="image-top"
id="colt-image"
/>
</div>
<div class="speaker-info">
<h4 id="speaker-colt">${item.name}</h4>
<i class="primary-color" id="colt-position"
>${item.position}</i
>
<div class="speaker-line secondary-light-bg"></div>
<p class="mt-3" id="colt-description">
${item.description}
</p>
</div>
</div>
`;
featuredTutors.insertAdjacentHTML('afterbegin', card);
});