diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html
index 30b434bcf..a53094bf3 100644
--- a/Sprint-3/quote-generator/index.html
+++ b/Sprint-3/quote-generator/index.html
@@ -2,14 +2,19 @@
+
- Title here
+ Quote generator app
- hello there
+
+
Hello there Welcome to Adnan's Quote-Generator
+
+
diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js
index 4a4d04b72..da1091f89 100644
--- a/Sprint-3/quote-generator/quotes.js
+++ b/Sprint-3/quote-generator/quotes.js
@@ -491,3 +491,16 @@ const quotes = [
];
// call pickFromArray with the quotes array to check you get a random quote
+function displayRandomQuote() {
+ const random = pickFromArray(quotes);
+ document.getElementById("quote").textContent = `"${random.quote}"`;
+ document.getElementById("author").textContent = `– ${random.author}`;
+}
+
+// Display a quote when the page loads
+displayRandomQuote();
+
+// Add click event to the "New quote" button
+document
+ .getElementById("new-quote")
+ .addEventListener("click", displayRandomQuote);
\ No newline at end of file
diff --git a/Sprint-3/quote-generator/style.css b/Sprint-3/quote-generator/style.css
index 63cedf2d2..85c18a581 100644
--- a/Sprint-3/quote-generator/style.css
+++ b/Sprint-3/quote-generator/style.css
@@ -1 +1,43 @@
-/** Write your CSS in here **/
+body {
+ font-family: Arial, sans-serif;
+ background-color: #f7a6;
+ display: flex;
+ justify-content: center;
+ text-align: center;
+ padding: 50px;
+ }
+ .quote-box {
+ background: white;
+ padding: 20px;
+ border-radius: 5px;
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
+ display: inline-block;
+ }
+ #quote {
+ font-size: 24px;
+ margin-bottom: 10px;
+ }
+ #author {
+ padding: 10px 2px;
+ font-size: 20px;
+ color: #f7a6;
+ margin-bottom: 2px;
+ font-weight: bold;
+ }
+ #new-quote {
+ padding: 10px 20px;
+ font-size: 16px;
+ background-color: #f7a6;
+ color: rgb(0, 0, 0);
+ font-weight: bold;
+ border: none;
+ border-radius: 5px;
+ }
+ #new-quote:hover {
+ background-color: rgba(196, 64, 112, 0.4);
+ cursor: pointer;
+ }
+ .name-button {
+ text-align: right;
+ float: right;
+ }
\ No newline at end of file