Skip to content

Commit 1e4fdd2

Browse files
committed
start: project - quote generator
1 parent e0bc993 commit 1e4fdd2

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

09_quote-generator/index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Quote Generator</title>
7+
<script src="https://cdn.tailwindcss.com"></script>
8+
</head>
9+
<body>
10+
<div id="main">
11+
<div id="quote">
12+
<h1 id="statement"></h1>
13+
<span id="author"></span>
14+
</div>
15+
<hr>
16+
<div id="buttons">
17+
<a href="www.x.com" id="tweet">Tweet</a>
18+
<button id="next-quote">Next Quote</button>
19+
</div>
20+
<p>This random quote generated by Niraj</p>
21+
</div>
22+
23+
<script src="script.js"></script>
24+
</body>
25+
</html>

09_quote-generator/script.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const statement = document.getElementById('statement');
2+
const authorName = document.getElementById('author');
3+
const actionButton = document.getElementById('buttons');
4+
const nextQuote = document.getElementById('next-quote');
5+
6+
nextQuote.onclick = getNewQuote();
7+
actionButton.addEventListener('')
8+
9+
function getNewQuote() {
10+
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ["./*.html"],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
};

0 commit comments

Comments
 (0)