-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (44 loc) · 2.21 KB
/
index.html
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
51
52
53
54
<!DOCTYPE html>
<html lang="en" class="light">
<head>
<meta charset="UTF-8">
<title>Awesome Lists</title>
<link rel="stylesheet" href="./style.css">
<script src='https://cdn.tailwindcss.com'></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PBPZPGQE9Z"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PBPZPGQE9Z');
</script>
</head>
<body class="light bg-gray-100 text-gray-800 transition-colors duration-300">
<div class="container mx-auto py-10">
<div class="flex justify-between items-center mb-8">
<h1 class="text-4xl font-bold">Awesome Lists</h1>
<button id="toggleDarkMode" class="p-2 border rounded shadow">Toggle Dark Mode</button>
</div>
<div class="flex justify-center mb-4">
<button onclick="showLists('all')" id="allTab" class="p-2 border rounded-l shadow bg-blue-500 text-white">All Lists</button>
<button onclick="showLists('favorites')" id="favoritesTab" class="p-2 border rounded-r shadow">Favorites</button>
</div>
<div class="mb-4 flex justify-center">
<input id="searchInput" type="text" placeholder="Search Awesome Lists..." class="w-full max-w-lg p-3 border rounded-lg shadow focus:outline-none" oninput="filterLists()">
</div>
<div class="mb-4 flex justify-center">
<select id="sortOptions" class="p-2 border rounded" onchange="sortLists()">
<option value="title">Sort by Title</option>
<option value="newest">Sort by Newest</option>
</select>
</div>
<div id="paginationControls" class="mb-4 flex justify-center"></div>
<div id="awesomeGrid" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6"></div>
</div>
<footer class="mt-8 bg-gray-200 p-4 text-center">
<p class="text-sm">Copyright © Awesome Lists by <a href="https://www.himpfen.com/" target="_blank" class="text-blue-600 hover:underline">Brandon Himpfen</a>. All Rights Reserved.</p>
</footer>
<script src="./script.js"></script>
</body>
</html>