diff --git a/Sprint-3/reading-list/script.js b/Sprint-3/reading-list/script.js index 6024d73a0..4de20d34b 100644 --- a/Sprint-3/reading-list/script.js +++ b/Sprint-3/reading-list/script.js @@ -21,3 +21,26 @@ const books = [ }, ]; +function renderReadingList() { + const readingList = document.getElementById("reading-list"); + + books.forEach((book) => { + const listItem = document.createElement("li"); + + listItem.style.backgroundColor = book.alreadyRead ? "green" : "red"; + + const info = document.createElement("p"); + info.className = "book-info"; + info.innerText = book.title + " by " + book.author; + listItem.appendChild(info); + + const bookCover = document.createElement("img"); + bookCover.src = book.bookCoverImage; + bookCover.alt = `Cover of ${book.title}`; + listItem.appendChild(bookCover); + + readingList.appendChild(listItem); + }); +} + +renderReadingList(); diff --git a/Sprint-3/reading-list/style.css b/Sprint-3/reading-list/style.css index 74406e64f..55b9c1c0e 100644 --- a/Sprint-3/reading-list/style.css +++ b/Sprint-3/reading-list/style.css @@ -157,3 +157,8 @@ body { max-height: 80px; } } +.book-info { + font-size: 1.2rem; + font-weight: bold; + margin-bottom: 10px; +} diff --git a/Sprint-3/slideshow/assets/butterfly1.png b/Sprint-3/slideshow/assets/butterfly1.png new file mode 100644 index 000000000..d47c18ef9 Binary files /dev/null and b/Sprint-3/slideshow/assets/butterfly1.png differ diff --git a/Sprint-3/slideshow/assets/butterfly2.png b/Sprint-3/slideshow/assets/butterfly2.png new file mode 100644 index 000000000..db86f10bc Binary files /dev/null and b/Sprint-3/slideshow/assets/butterfly2.png differ diff --git a/Sprint-3/slideshow/assets/butterfly3.png b/Sprint-3/slideshow/assets/butterfly3.png new file mode 100644 index 000000000..78f16edd8 Binary files /dev/null and b/Sprint-3/slideshow/assets/butterfly3.png differ diff --git a/Sprint-3/slideshow/index.html b/Sprint-3/slideshow/index.html index 50f2eb1c0..68dd0975d 100644 --- a/Sprint-3/slideshow/index.html +++ b/Sprint-3/slideshow/index.html @@ -3,12 +3,16 @@
-
+
+
+
+