diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html index 30b434bcf..499293092 100644 --- a/Sprint-3/quote-generator/index.html +++ b/Sprint-3/quote-generator/index.html @@ -1,15 +1,25 @@ - - - - Title here - - - -

hello there

-

-

- - + + + + Quote Generator app + + + + +
+
+ + + + + + + diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js index 4a4d04b72..33a925e91 100644 --- a/Sprint-3/quote-generator/quotes.js +++ b/Sprint-3/quote-generator/quotes.js @@ -1,3 +1,9 @@ +function showRandomQuote() { + const quote = pickFromArray(quotes); + document.getElementById("quote").textContent = `"${quote.quote}"`; + document.getElementById("author").textContent = `— ${quote.author}`; +} + // DO NOT EDIT BELOW HERE // pickFromArray is a function which will return one item, at diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css index 63cedf2d2..c75939190 100644 --- a/Sprint-3/quote-generator/style.css +++ b/Sprint-3/quote-generator/style.css @@ -1 +1,65 @@ -/** Write your CSS in here **/ +body { + margin: 0; + font-family: 'Georgia', serif; + background-color: #f0f4f8; + /* soft blue-gray */ + display: flex; + justify-content: center; + align-items: center; + height: 100vh; +} + +.quote-box { + background-color: white; + padding: 2rem 3rem; + border-radius: 10px; + box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); + max-width: 600px; + width: 90%; + text-align: left; + position: relative; +} + +#quote { + font-size: 1.5rem; + color: #1a4d6e; + /* deep blue */ + margin-bottom: 1.5rem; + position: relative; +} + +#quote::before { + content: "“"; + font-size: 3rem; + color: #479696; + /* teal accent */ + position: absolute; + left: -1.5rem; + top: -1rem; +} + +#author { + text-align: right; + color: #479696; + /* teal author */ + font-style: italic; + font-size: 1rem; + margin-bottom: 1rem; +} + +#new-quote { + background-color: #479696; + /* teal button */ + color: white; + border: none; + padding: 0.5rem 1rem; + border-radius: 4px; + font-size: 1rem; + cursor: pointer; + transition: background-color 0.3s; +} + +#new-quote:hover { + background-color: #3a7c7c; + /* darker teal */ } + \ No newline at end of file