-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (39 loc) · 2.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Anime News</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body class="bg-blue-500 text-white">
<header class="p-5 bg-gray-800 flex flex-col md:flex-row justify-between items-center shadow-md">
<h1 class="text-3xl font-bold mb-4 md:mb-0">Anime News</h1>
<div class="flex items-center w-full md:w-auto">
<input id="search-input" type="text" placeholder="Search..." class="p-2 rounded-l bg-gray-700 text-white focus:outline-none w-full md:w-auto">
<button id="search-button" class="p-2 rounded-r bg-blue-500 text-white hover:bg-blue-600 focus:outline-none"><i class="fas fa-search"></i></button>
</div>
</header>
<nav class="p-5 bg-gray-800 flex flex-wrap justify-center space-x-2 space-y-2 md:space-y-0 shadow-inner">
<button class="category-btn p-2 bg-blue-500 rounded-lg hover:bg-blue-600 focus:outline-none" data-category="top">Top Anime</button>
<button class="category-btn p-2 bg-blue-500 rounded-lg hover:bg-blue-600 focus:outline-none" data-category="upcoming">Upcoming Anime</button>
<button class="category-btn p-2 bg-blue-500 rounded-lg hover:bg-blue-600 focus:outline-none" data-category="news">News</button>
</nav>
<div id="loading" class="flex justify-center items-center mt-5 hidden">
<i class="fas fa-spinner fa-spin text-4xl"></i>
</div>
<main class="p-5">
<div id="news-container" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5"></div>
<div id="pagination" class="flex justify-center mt-5 space-x-2">
<button id="prev-page" class="p-2 bg-blue-500 rounded-lg hover:bg-blue-600 focus:outline-none flex items-center"><i class="fas fa-arrow-left mr-2"></i> Previous</button>
<button id="next-page" class="p-2 bg-blue-500 rounded-lg hover:bg-blue-600 focus:outline-none flex items-center">Next <i class="fas fa-arrow-right ml-2"></i></button>
</div>
</main>
<footer class="p-5 bg-gray-800 text-center border-t border-gray-700 mt-5">
<p>Anime News © 2024. SC All rights reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>