Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (43 loc) · 1.51 KB
/
Copy pathindex.html
File metadata and controls
50 lines (43 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random Quote Generator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="app-header">
<h1>💬 Random Quote Generator</h1>
<button id="darkModeToggle" class="icon-btn" title="Toggle dark mode">🌙</button>
</header>
<main class="app-main">
<div class="controls-row">
<select id="categoryFilter">
<option value="all">All categories</option>
</select>
</div>
<div id="quoteCard" class="quote-card">
<p id="quoteText" class="quote-text">Loading quote...</p>
<p id="quoteAuthor" class="quote-author"></p>
<span id="quoteCategory" class="quote-category"></span>
</div>
<div class="action-row">
<button id="newQuoteBtn" class="primary-btn">🔄 New Quote</button>
<button id="copyBtn" class="secondary-btn" title="Copy quote">📋 Copy</button>
<a id="tweetBtn" class="secondary-btn" href="#" target="_blank" rel="noopener" title="Share on X/Twitter">🐦 Tweet</a>
</div>
<div class="autoplay-row">
<label class="switch-label">
<input type="checkbox" id="autoplayToggle">
Auto-rotate every 8 seconds
</label>
</div>
<p class="hint">Tip: press Space for a new quote</p>
</main>
<footer class="app-footer">
Built for the CodeAlpha App Development Internship
</footer>
<script src="script.js"></script>
</body>
</html>