From b0c1d535e1b201f6a9c72758523066a51d132bb7 Mon Sep 17 00:00:00 2001 From: Vitalii Kmit Date: Mon, 3 Aug 2026 13:35:36 +0100 Subject: [PATCH] Work on quote-generator --- Sprint-3/quote-generator/index.html | 7 ++++--- Sprint-3/quote-generator/quotes.js | 9 +++++++++ Sprint-3/quote-generator/style.css | 10 ++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html index 30b434bcf..17dacc143 100644 --- a/Sprint-3/quote-generator/index.html +++ b/Sprint-3/quote-generator/index.html @@ -1,15 +1,16 @@ - + Title here +

hello there

-

+

- + diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js index 4a4d04b72..efe89dda2 100644 --- a/Sprint-3/quote-generator/quotes.js +++ b/Sprint-3/quote-generator/quotes.js @@ -491,3 +491,12 @@ const quotes = [ ]; // call pickFromArray with the quotes array to check you get a random quote + +function generate() { + const pick = pickFromArray(quotes); + + document.getElementById("quote").innerHTML = `"${pick.quote}"`; + document.getElementById("author").innerHTML = `By ${pick.author}`; +} + +generate(); diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css index 63cedf2d2..d67600aa6 100644 --- a/Sprint-3/quote-generator/style.css +++ b/Sprint-3/quote-generator/style.css @@ -1 +1,11 @@ /** Write your CSS in here **/ + +#author { + font-size: 25px; +} + +#quote { + font-size: 30px; + font-style: italic; + font-weight: bold; +}