-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (42 loc) · 2.03 KB
/
index.html
File metadata and controls
49 lines (42 loc) · 2.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Advice & Quote Generator</title>
<!-- Tailwind CSS CDN for utility classes -->
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<!-- Custom Styles -->
<link rel="stylesheet" href="css/styles.css" />
</head>
<body class="bg-gradient-to-br from-gray-900 to-gray-800 min-h-screen flex items-center justify-center text-white">
<!-- Main Card -->
<main class="bg-gray-800/80 backdrop-blur-lg rounded-2xl shadow-2xl p-8 w-full max-w-lg text-center space-y-6 transition-all duration-300 hover:scale-[1.01]">
<h1 class="text-3xl font-bold text-cyan-400 mb-2">Advice & Quote Generator</h1>
<!-- Advice Display -->
<div class="advice-panel mb-4">
<p id="advice" class="advice-text text-xl italic text-slate-100 transition-opacity duration-500">
Click below to get some advice!
</p>
<p id="adviceId" class="text-cyan-200 text-sm mt-2"></p>
</div>
<!-- Action Buttons -->
<div class="flex flex-wrap justify-center gap-3 mb-3">
<button id="newAdviceBtn" class="btn-primary">New Advice</button>
<button id="copyBtn" class="btn-secondary">Copy</button>
<button id="saveBtn" class="btn-secondary">Save</button>
<a id="tweetBtn" class="btn-secondary" target="_blank">Tweet</a>
</div>
<!-- Saved Advice Section -->
<section id="savedSection" class="pt-5 border-t border-gray-700 hidden">
<h2 class="text-lg font-semibold mb-3 text-cyan-300">Saved:</h2>
<ul id="savedList" class="text-base text-slate-300 space-y-2 max-h-40 overflow-y-auto"></ul>
</section>
<footer class="mt-6 text-sm text-gray-400 opacity-70">
Uses <a class="underline" href="https://api.adviceslip.com/" target="_blank">Advice Slip API</a> with static fallback.<br>
Designed by Arijit Sen © 2025
</footer>
</main>
<script src="js/script.js"></script>
</body>
</html>