-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
64 lines (57 loc) · 1.43 KB
/
script.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
// dynamic preview-cards
const cards = [{
img: 'img/speaker1.png',
name: 'Angela Mark',
title: 'full-stack developer',
des: 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. ',
},
{
img: 'img/speaker2.png',
name: 'Steph Portilla',
title: 'Web application developer',
des: 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. ',
},
{
img: 'img/speaker3.png',
name: 'Jose Steele',
title: 'Front end developer',
des: 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. ',
},
{
img: 'img/speaker4.png',
name: 'Colt Jonas',
title: 'Back end developer',
des: 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. ',
},
{
img: 'img/speaker5.png',
name: 'Kyle Tim',
title: 'Web Designer ',
des: 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. ',
},
{
img: 'img/speaker6.png',
name: 'Jonas Deo',
title: 'Game developer',
des: 'Lorem ipsum dolor sit, amet consectetur adipisicing elit. ',
},
];
function displayCards() {
let result = '';
cards.forEach((card) => {
result += `
<div class="instructor-card">
<div>
<img src="${card.img}">
</div>
<div>
<h3 class="fw-bold fs-500">${card.name}</h3>
<div class="guide_bar-inst"></div>
<h3 class="text-accent-400 fw-bold">${card.title}</h3>
<p class="">${card.des}</p>
</div>
</div>`;
});
document.querySelector('.even-columns-instructor').innerHTML = result;
}
displayCards();