From 46745d282412ce41e9941e6f31fbd28ea431e275 Mon Sep 17 00:00:00 2001 From: Aklilu Mihtsun Date: Fri, 20 Nov 2026 14:47:18 +0000 Subject: [PATCH 1/4] Refactor HTML structure for quote generator app --- Sprint-3/quote-generator/index.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html index 30b434bcfb..f28e8f0bae 100644 --- a/Sprint-3/quote-generator/index.html +++ b/Sprint-3/quote-generator/index.html @@ -1,15 +1,22 @@ - + - Title here + Quote generator app + + -

hello there

-

-

- +
+
+ “ +

+
+ +

+ +
From 9d7a741e2b201c35abfc588604d2c59b4e4ad943 Mon Sep 17 00:00:00 2001 From: Aklilu Mihtsun Date: Fri, 20 Nov 2026 14:47:28 +0000 Subject: [PATCH 2/4] Implement quote selection functionality in quote generator --- Sprint-3/quote-generator/quotes.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js index 4a4d04b722..69557aa1c9 100644 --- a/Sprint-3/quote-generator/quotes.js +++ b/Sprint-3/quote-generator/quotes.js @@ -1,3 +1,7 @@ +const quoteSpace = document.querySelector("#quote"); +const authorSpace = document.querySelector("#author"); +const newQuoteButton = document.querySelector("#new-quote"); + // DO NOT EDIT BELOW HERE // pickFromArray is a function which will return one item, at @@ -489,5 +493,13 @@ const quotes = [ author: "Zig Ziglar", }, ]; +const selectedQuote = pickFromArray(quotes); +quoteSpace.innerHTML = selectedQuote.quote; +authorSpace.innerHTML = selectedQuote.author; +newQuoteButton.addEventListener("click", function () { + const selectedQuote = pickFromArray(quotes); + quoteSpace.innerHTML = selectedQuote.quote; + authorSpace.innerHTML = selectedQuote.author; +}); // call pickFromArray with the quotes array to check you get a random quote From f621920837b7401680805c6c78527fcf97cc880f Mon Sep 17 00:00:00 2001 From: Aklilu Mihtsun Date: Fri, 20 Nov 2026 14:47:36 +0000 Subject: [PATCH 3/4] Add initial CSS styles for quote generator layout --- Sprint-3/quote-generator/style.css | 49 +++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css index 63cedf2d2f..a7528b12fb 100644 --- a/Sprint-3/quote-generator/style.css +++ b/Sprint-3/quote-generator/style.css @@ -1 +1,48 @@ -/** Write your CSS in here **/ +body { + background-color: orange; + margin: 0; + font-family: Arial, sans-serif; +} +.quote-container { + background-color: white; + width: 70%; + margin: 150px auto; + padding: 60px; +} +.quote-content { + display: inline-flex; + align-items: flex-start; +} + +.quote-icon { + font-size: 80px; + color: orange; + font-weight: bolder; + flex-shrink: align-self; +} + +#quote { + font-size: 24px; + color: orange; + line-height: 1.5; + text-align: center; +} +#author { + text-align: right; + font-size: 18px; + color: orange; +} +#author::before { + content: "- "; +} +#new-quote { + display: block; + margin-left: auto; + margin-top: 25px; + background-color: orange; + color: white; + border: none; + padding: 18px 25px; + font-size: 18px; + cursor: pointer; +} From b69bb6f3a56b169307c5fbdca68462a96bb6ceb5 Mon Sep 17 00:00:00 2001 From: Aklilu Mihtsun Date: Sat, 21 Nov 2026 15:53:00 +0000 Subject: [PATCH 4/4] Add box-sizing property to body for consistent layout --- Sprint-3/quote-generator/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css index a7528b12fb..bd61c4e9d6 100644 --- a/Sprint-3/quote-generator/style.css +++ b/Sprint-3/quote-generator/style.css @@ -8,6 +8,7 @@ body { width: 70%; margin: 150px auto; padding: 60px; + box-sizing: border-box; } .quote-content { display: inline-flex;