diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html
index 30b434bcf..ac3fd710e 100644
--- a/Sprint-3/quote-generator/index.html
+++ b/Sprint-3/quote-generator/index.html
@@ -1,15 +1,20 @@
-
+
- Title here
+ Quote Generator App
+
- hello there
-
-
-
+
+ Quote Generator
+
+
+
+
+
+
diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js
index 4a4d04b72..a3c3ab59b 100644
--- a/Sprint-3/quote-generator/quotes.js
+++ b/Sprint-3/quote-generator/quotes.js
@@ -491,3 +491,20 @@ const quotes = [
];
// call pickFromArray with the quotes array to check you get a random quote
+
+function displayRandomQuote() {
+ const selectedQuote = pickFromArray(quotes);
+
+ document.getElementById("quote").textContent = selectedQuote.quote;
+ document.getElementById("author").textContent = selectedQuote.author;
+}
+
+function setup() {
+ const newQuoteButton = document.getElementById("new-quote");
+
+ newQuoteButton.addEventListener("click", displayRandomQuote);
+
+ displayRandomQuote();
+}
+
+window.onload = setup;
diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css
index 63cedf2d2..aba20fb48 100644
--- a/Sprint-3/quote-generator/style.css
+++ b/Sprint-3/quote-generator/style.css
@@ -1 +1,57 @@
/** Write your CSS in here **/
+* {
+ box-sizing: border-box;
+}
+
+body {
+ margin: 0;
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-family: Arial, sans-serif;
+ background-color: #f4f4f4;
+ color: #333;
+}
+
+main {
+ width: 90%;
+ max-width: 600px;
+ padding: 40px;
+ text-align: center;
+ background-color: white;
+ border-radius: 12px;
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
+}
+
+h1 {
+ margin-bottom: 30px;
+ color: #444;
+}
+
+blockquote {
+ margin: 0 0 20px;
+ font-size: 1.5rem;
+ line-height: 1.5;
+ font-style: italic;
+}
+
+#author {
+ margin-bottom: 30px;
+ font-weight: bold;
+ color: #777;
+}
+
+button {
+ padding: 12px 24px;
+ border: none;
+ border-radius: 6px;
+ background-color: #333;
+ color: white;
+ font-size: 1rem;
+ cursor: pointer;
+}
+
+button:hover {
+ background-color: #555;
+}