diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html
index 30b434bcf..9ad5d65df 100644
--- a/Sprint-3/quote-generator/index.html
+++ b/Sprint-3/quote-generator/index.html
@@ -1,15 +1,24 @@
-
+
- Title here
+ Quote Generator App
+
- hello there
-
-
-
+
+

+
+
hello there
+
+
+
+
diff --git a/Sprint-3/quote-generator/package.json b/Sprint-3/quote-generator/package.json
index 0f6f98917..8797340e6 100644
--- a/Sprint-3/quote-generator/package.json
+++ b/Sprint-3/quote-generator/package.json
@@ -2,7 +2,7 @@
"name": "quote-generator",
"version": "1.0.0",
"license": "CC-BY-SA-4.0",
- "description": "You must update this package",
+ "description": "A quote generator app completed for Sprint 3",
"scripts": {
"test": "jest --config=../jest.config.js quote-generator"
},
diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js
index 4a4d04b72..a00e9126f 100644
--- a/Sprint-3/quote-generator/quotes.js
+++ b/Sprint-3/quote-generator/quotes.js
@@ -1,3 +1,18 @@
+window.onload = () => {
+ const quoteText = document.getElementById("quote");
+ const authorText = document.getElementById("author");
+ const newQuoteBtn = document.getElementById("new-quote");
+
+ function generateQuote() {
+ const randomQuote = pickFromArray(quotes);
+ quoteText.innerText = randomQuote.quote;
+ authorText.innerText = `- ${randomQuote.author}`;
+ }
+
+ generateQuote();
+
+ newQuoteBtn.addEventListener("click", generateQuote);
+};
// 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..055ae3d48 100644
--- a/Sprint-3/quote-generator/style.css
+++ b/Sprint-3/quote-generator/style.css
@@ -1 +1,57 @@
-/** Write your CSS in here **/
+body {
+ background-color: #fba21c;
+ font-family: sans-serif;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ margin: 0;
+}
+
+.container {
+ background-color: white;
+ width: 70%;
+ max-width: 800px;
+ padding: 50px 50px 80px 50px;
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
+ position: relative;
+}
+
+h1 {
+ display: none;
+}
+
+.quote-icon {
+ width: 45px;
+ float: left;
+ margin-right: 15px;
+ margin-top: -10px;
+}
+
+#quote {
+ font-size: 32px;
+ color: #fba21c;
+ margin: 0;
+ line-height: 1.4;
+}
+
+#author {
+ color: #fba21c;
+ font-size: 20px;
+ font-weight: bold;
+ text-align: right;
+ margin-top: 30px;
+ margin-bottom: 30px;
+}
+
+#new-quote {
+ background-color: #fba21c;
+ color: white;
+ border: none;
+ padding: 12px 24px;
+ font-size: 18px;
+ cursor: pointer;
+ position: absolute;
+ bottom: 40px;
+ right: 50px;
+}
\ No newline at end of file