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; +}