-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
45 lines (40 loc) · 1.12 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
const feProjects = [
{
name: "chat-app",
friendly: "Chat Illustration App",
used: "HTML, SCSS, Gulp 4"
},
{
name: "huddle-landing-page",
friendly: "Huddle Landing Page",
used: "HTML, SCSS, Gulp 4"
},
{
name: "article-preview",
friendly: "Article Preview",
used: "HTML, CSS, Javascript"
},
{
name: "coding-bootcamp-testimonials-slider",
friendly: "Coding Bootcamp Testimonials",
used: "HTML, CSS, Javascript"
}
]
const list = document.querySelector('.list');
feProjects.forEach(({ name, friendly, used }) => {
const item = document.createElement('LI');
item.innerHTML = `
<div class="img-wrapper">
<img src="/${name}/starter_files/design/desktop-preview.jpg" alt="${name}" />
</div>
<div class="text-wrapper">
<a href="/${name}/index.html" aria-label="view ${friendly} project">
<p class="subtitle">Project: </p>
</a>
<p>${friendly}</p>
<p class="subtitle">Tech used: </p>
<p>${used}</p>
</div>
`
list.appendChild(item);
})