diff --git a/src/scripts/views/pages/learn-now.js b/src/scripts/views/pages/learn-now.js index 23cefea..92e07b3 100644 --- a/src/scripts/views/pages/learn-now.js +++ b/src/scripts/views/pages/learn-now.js @@ -28,13 +28,14 @@ const LearnNow = { data.forEach((budaya) => { const budayaDiv = document.createElement('div'); + const firstImage = budaya.rumah[0]; budayaDiv.innerHTML = `
- ${budaya.rumah.map((item) => `${item.nama}`).join('')} -

${budaya.provinsi}

+ ${firstImage.nama} +

${budaya.provinsi}

-
+ `; cardsProvinsi.appendChild(budayaDiv);