diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html index 30b434bcf..546c33b45 100644 --- a/Sprint-3/quote-generator/index.html +++ b/Sprint-3/quote-generator/index.html @@ -3,13 +3,17 @@ - Title here + + Quote generator app -

hello there

-

-

- +
+

+

+ +
diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js index 4a4d04b72..b15c454d7 100644 --- a/Sprint-3/quote-generator/quotes.js +++ b/Sprint-3/quote-generator/quotes.js @@ -491,3 +491,11 @@ const quotes = [ ]; // call pickFromArray with the quotes array to check you get a random quote +function newquote() { + let QuoteID = document.getElementById("quote"); + let authorID = document.getElementById("author"); + const randomQuote = pickFromArray(quotes); + QuoteID.innerText = randomQuote.quote; + authorID.innerText = randomQuote.author; +} +window.onload = newquote(); diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css index 63cedf2d2..7bc0da2b8 100644 --- a/Sprint-3/quote-generator/style.css +++ b/Sprint-3/quote-generator/style.css @@ -1 +1,35 @@ -/** Write your CSS in here **/ +* { + box-sizing: border-box; +} +:root { + --bg-color: rgba(5, 18, 4, 0.838); + --text-color: #ffffff; + --shado-color: #524f4f; +} +body { + margin: 0; + padding: 0; + font-size: 1.5rem; + font-family: sans-serif; + background-color: var(--bg-color); + display: flex; + align-items: center; + justify-content: center; + height: 100vh; +} +.main { + background-color: var(--text-color); + padding: 30px 50px; + max-width: 600px; + text-align: right; + max-height: 80vh; + color: var(--bg-color); +} +#new-quote { + background-color: var(--bg-color); + padding: 10px; + box-shadow: 1px 1px 2px var(--shado-color); + border-radius: 10px; + color: var(--text-color); + font-size: large; +}