We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9760e4 commit 6b46234Copy full SHA for 6b46234
1 file changed
src/app.js
@@ -0,0 +1,18 @@
1
+fetch("buttons.json")
2
+ .then(res => res.json())
3
+ .then(buttons => {
4
+ const root = document.getElementById("buttons");
5
+
6
+ buttons.forEach(btn => {
7
+ const card = document.createElement("div");
8
+ card.className = "button-card";
9
10
+ card.innerHTML = `
11
+ <h3>${btn.name}</h3>
12
+ <p>by ${btn.author}</p>
13
+ <button class="${btn.class}">Click me</button>
14
+ `;
15
16
+ root.appendChild(card);
17
+ });
18
0 commit comments