diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html
index 30b434bcf..9a65b11ee 100644
--- a/Sprint-3/quote-generator/index.html
+++ b/Sprint-3/quote-generator/index.html
@@ -3,7 +3,8 @@
- Title here
+ Quote generator app
+
diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js
index 4a4d04b72..d2ac1d67c 100644
--- a/Sprint-3/quote-generator/quotes.js
+++ b/Sprint-3/quote-generator/quotes.js
@@ -491,3 +491,19 @@ const quotes = [
];
// call pickFromArray with the quotes array to check you get a random quote
+
+function displayRandomQuote() {
+ const randomQuote = pickFromArray(quotes);
+
+ document.getElementById("quote").textContent = randomQuote.quote;
+ document.getElementById("author").textContent = randomQuote.author;
+}
+function setup() {
+ displayRandomQuote();
+
+ document
+ .getElementById("new-quote")
+ .addEventListener("click", displayRandomQuote);
+}
+
+window.addEventListener("load", setup);
diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css
index 63cedf2d2..a3984bd5a 100644
--- a/Sprint-3/quote-generator/style.css
+++ b/Sprint-3/quote-generator/style.css
@@ -1 +1,37 @@
/** Write your CSS in here **/
+body {
+ font-family: Arial, sans-serif;
+ background-color: #f4f4f4;
+ text-align: center;
+ padding: 50px;
+}
+
+h1 {
+ color: #333;
+}
+
+#quote {
+ font-size: 1.5rem;
+ margin: 20px 0;
+ color: #222;
+}
+
+#author {
+ font-size: 1.2rem;
+ color: #666;
+ margin-bottom: 30px;
+}
+
+button {
+ padding: 10px 20px;
+ font-size: 1rem;
+ background-color: #007BFF;
+ color: white;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+}
+
+button:hover {
+ background-color: #0056b3;
+}
\ No newline at end of file