-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
76 lines (73 loc) · 1.58 KB
/
index.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
const projectContainer = document.querySelector(".project_container");
const projects = [
{
image: "images/p1.png",
title: "Life Timer App",
url: "../project1-fix/index.html",
},
{
image: "images/p2.png",
title: "Github User Search App",
url: "../project2/index.html",
},
{
image: "images/p3.png",
title: "Percentage Calculator App",
url: "../project3/index.html",
},
{
image: "images/p4.png",
title: "Math Quiz App",
url: "../project4.2/index.html",
},
{
image: "images/p5.png",
title: "Search & Filters Product App",
url: "../project5/index.html",
},
{
image: "images/p6.png",
title: "Color Generator App",
url: "../project6/index.html",
},
{
image: "images/p7.png",
title: "QR Code Generator App",
url: "../project7/index.html",
},
{
image: "images/p8.png",
title: "Expense Tracker App",
url: "../project8.3/index.html",
},
{
image: "images/p9.png",
title: "Password Generator App",
url: "../project9/index.html",
},
{
image: "images/p10.png",
title: "Drawer + Dropdown",
url: "../project10/index.html",
},
];
const showProjects = () => {
let output = "";
projects.forEach(
({ image, title, url }, i) =>
(output += `
<div class="grid_item">
<div class="card">
<img src="${image}" alt="Project ${i}" />
<a href="${url}">
<div class="card_content">
<h3>${title}</h3>
</div>
</a>
</div>
</div>
`)
);
projectContainer.innerHTML = output;
};
showProjects();