diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html
index 30b434bcfb..0fc2dd7de8 100644
--- a/Sprint-3/quote-generator/index.html
+++ b/Sprint-3/quote-generator/index.html
@@ -1,15 +1,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 4a4d04b722..445d974dd3 100644
--- a/Sprint-3/quote-generator/quotes.js
+++ b/Sprint-3/quote-generator/quotes.js
@@ -490,4 +490,14 @@ const quotes = [
},
];
+const button = document.querySelector("button");
+function showQuote() {
+ const result = pickFromArray(quotes);
+ const author = document.querySelector("#author");
+ const quote = document.querySelector("#quote");
+ quote.textContent = result.quote;
+ author.textContent = ` - ${result.author}`;
+}
+button.addEventListener("click", showQuote);
+
// call pickFromArray with the quotes array to check you get a random quote
diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css
index 63cedf2d2f..9b60a3c25a 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 {
+ font-family: "Poppins", sans-serif;
+ background-color: #fcc054;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ min-height: 100vh;
+ margin: 0;
+ padding: 20px;
+}
+
+button {
+ background-color: #fca800;
+ align-self: flex-end;
+ padding: 10px;
+ border: 0;
+ color: white;
+ font-weight: bold;
+}
+
+.quote-card {
+ background-color: #fcfcfc;
+ border-radius: 5px;
+ padding: 30px;
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ max-width: 600px;
+ min-height: 200px;
+}
+
+#quote {
+ font-family: "Playfair Display", serif;
+ font-size: 28px;
+ color: #333333;
+ overflow-wrap: break-word;
+}
+
+#author {
+ align-self: flex-end;
+}
+
+@media (max-width: 480px) {
+ .quote-card {
+ padding: 20px;
+ }
+
+ #quote {
+ font-size: 22px;
+ }
+}