generated from microverseinc/readme-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcards.js
73 lines (70 loc) · 3.22 KB
/
cards.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
const titleWorks = ['My Recent Works'];
const descriptionWorks = ["A daily selection of privately personalized reads; no accounts or sign-ups required. has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a standard dummy text."];
const worksHeading = ['Multi-Post Stories'];
const img = ['images/Img Placeholder.svg', 'images/Img Placeholder-desktop.svg'];
const works = document.querySelector('.works');
works.innerHTML = `<h2 class="my-recent">${titleWorks[0]}</h2>
<hr class="hori-break1" />
<div class="clearfix">
<div class="placeholder">
<img src="${img[0]}" alt="Placeholder" />
</div>
<img
class="placeholder2"
src="${img[1]}"
alt="Placeholder"
/>
<div class="story-cont">
<div class="stories">
<p>${worksHeading[0]}</p>
</div>
<p class="daily">
${descriptionWorks[0]}
</p>
<ul class="lruby">
<a class="block" href="#">
<li>css</li>
</a>
<a class="block" href="#">
<li>html</li>
</a>
<a class="block" href="#">
<li>bootstrap</li>
</a>
<a class="block" href="#">
<li>ruby</li>
</a>
</ul>
<a data-modal-target="#modal" class="see-project" href="#">
See Project
</a>
</div>
</div>`;
const titleArray = ['', 'Data Dashboard Healthcare', 'Website Portfolio', 'Profesional Art Printing Data More', 'Data Dashboard Healthcare', 'Website Portfolio'];
const description = ["A daily selection of privately personalized reads; no accounts or sign-ups required. has been the industry's standard", "A daily selection of privately personalized reads; no accounts or sign-ups required. has been the industry's standard", "A daily selection of privately personalized reads; no accounts or sign-ups required. has been the industry's standard", "A daily selection of privately personalized reads; no accounts or sign-ups required. has been the industry's standard", "A daily selection of privately personalized reads; no accounts or sign-ups required. has been the industry's standard", "A daily selection of privately personalized reads; no accounts or sign-ups required. has been the industry's standard"];
const classesDiv = ['nothing', 'profesion-desktop', 'profesion-desktop3', 'profesion-desktop4', 'profesion-desktop', 'profesion-desktop3', 'profesion-desktop3'];
const classesHeading = ['nothing', 'heading-content-desktop', 'heading-content-desktop3', 'heading-content-desktop4', 'heading-content-desktop', 'heading-content-desktop3'];
const lists = ['html', 'bootstrap', 'ruby'];
const cards = document.querySelector('.project-cards-desktop');
for (let i = 0; i < titleArray.length; i += 1) {
cards.innerHTML += ` <div class="${classesDiv[i]}">
<h2 class="${classesHeading[i]}">
${titleArray[i]}
</h2>
<p class="p-content-desktop">
${description[i]}
</p>
<ul class="p-language-desktop">
<a class="block-two-desktop" href="#">
<li>${lists[0]}</li>
</a>
<a class="block-two-desktop" href="#">
<li>${lists[1]}</li>
</a>
<a class="block-two-desktop" href="#">
<li>${lists[2]}</li>
</a>
</ul>
<button data-modal-target="#modal" class="project-button-desktop" href="#">See Project</button>
</div>`;
}