-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
246 lines (205 loc) · 9.1 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AniTeams</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/not.css">
<link rel="stylesheet" href="css/search-bar.css">
</head>
<body>
<div class="container mx-auto my-10">
<div class="owl-carousel owl-theme">
<!-- Slide 1 -->
<div class="movie-slide" style="background-image: url('./wp9995115-one-piece-banner-wallpapers.jpg');">
<div class="movie-details">
<h2 class="text-2xl font-bold">One Piece 1</h2>
<p class="text-gray-200 mt-2">Gold Roger was known as the Pirate King, the strongest and most infamous being to have...</p>
<div class="text-gray-400 mt-2">
<p>TV</p> |
<p>1999</p> |
<p>Action, Adventure, Comdey, Fantasy, Drama</p>
</div>
</div>
</div>
<!-- Slide 2 -->
<div class="movie-slide" style="background-image: url('https://s4.anilist.co/file/anilistcdn/media/anime/banner/113415-jQBSkxWAAk83.jpg');">
<div class="movie-details">
<h2 class="text-2xl font-bold">Jujutsu Kaisen </h2>
<p class="text-gray-200 mt-2">A boy fights... for "the right death."</p>
<div class="text-gray-400 mt-2">
<p>TV</p> |
<p>2020</p> |
<p>Action, Drama, Supernatural</p>
</div>
</div>
</div>
<!-- Add more slides as needed -->
</div>
</div>
<!-- Search Bar section -->
<div class="search-container">
<div class="search-bar-container">
<input type="text" id="searchBar" class="search-bar" placeholder="Search...">
<button id="micButton" class="mic-button">
<img src="https://img.icons8.com/ios-filled/50/ffffff/microphone.png" alt="Mic">
</button>
</div>
<div id="suggestions" class="suggestions"></div>
</div>
<div id="micPopup" class="mic-popup">
<div class="mic-popup-content">
<div class="sound-wave"></div>
<div class="sound-wave"></div>
<div class="sound-wave"></div>
<div class="sound-wave"></div>
<div class="sound-wave"></div>
</div>
</div>
<!-- Trending Section -->
<hr class="border-gray-700 my-4" id="section-line">
<h5 class="text-xl font-bold text-white mb-4" id="section-heading">Trending Now</h5>
<div class="relative overflow-x-auto whitespace-nowrap py-4 scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-800" id="scroll-container" tabindex="0">
<div id="loading-spinner" class="absolute inset-0 flex justify-center items-center bg-gray-900 bg-opacity-70 z-10">
<div class="loader"></div><!-- Search Bar Section -->
<hr class="border-gray-700 my-4" id="search-line">
<h5 class="text-xl font-bold text-white mb-4" id="search-heading">Search for Anime</h5>
<div class="relative">
<input
type="text"
id="search-input"
placeholder="Search..."
class="search-input px-4 py-3 rounded-lg text-white bg-gray-800 placeholder-gray-400 shadow-lg"
/>
<ul id="suggestions-list" class="suggestions-list absolute left-0 w-full bg-gray-900 text-white rounded-lg mt-1 max-h-60 overflow-y-auto z-20">
<!-- Suggestions will be appended here -->
</ul>
</div>
</div>
<div id="error-message" class="hidden text-red-500 text-center py-4">Error fetching data. Please try again later.</div>
<div id="no-data-message" class="hidden text-yellow-500 text-center py-4">No data found.</div>
<div id="movie-container" class="flex space-x-4">
<!-- Movie cards will be appended here -->
</div>
</div>
<!-- Popular Section -->
<hr class="border-gray-700 my-4" id="new-section-line">
<h5 class="text-xl font-bold text-white mb-4" id="new-section-heading">Popular</h5>
<div class="relative overflow-x-auto whitespace-nowrap py-4 scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-gray-800" id="new-scroll-container" tabindex="0">
<div id="new-loading-spinner" class="absolute inset-0 flex justify-center items-center bg-gray-900 bg-opacity-70 z-10">
<div class="new-loader"></div>
</div>
<div id="new-error-message" class="hidden text-red-500 text-center py-4">Error fetching data. Please try again later.</div>
<div id="new-no-data-message" class="hidden text-yellow-500 text-center py-4">No data found.</div>
<div id="new-movie-container" class="flex space-x-4">
<!-- Movie cards will be appended here -->
</div>
</div>
<style>
/* Custom scrollbar styling */
#scroll-container::-webkit-scrollbar,
#new-scroll-container::-webkit-scrollbar {
height: 8px;
}
#scroll-container::-webkit-scrollbar-thumb,
#new-scroll-container::-webkit-scrollbar-thumb {
background-color: #4a4a4a;
border-radius: 10px;
}
#scroll-container::-webkit-scrollbar-track,
#new-scroll-container::-webkit-scrollbar-track {
background: #333;
}
/* Hover effects for movie cards */
.movie-card:hover .movie-image,
.new-movie-card:hover .new-movie-image {
filter: blur(4px);
}
.movie-card:hover .movie-info,
.new-movie-card:hover .new-movie-info {
opacity: 1;
}
.movie-card,
.new-movie-card {
transition: transform 0.2s, box-shadow 0.2s;
}
.movie-card:hover,
.new-movie-card:hover {
transform: translateY(-8px);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}
/* Styling for text overflow handling */
.movie-info h2,
.movie-info p,
.new-movie-info h2,
.new-movie-info p {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Loading spinner styling */
.loader,
.new-loader {
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
width: 40px;
height: 40px;
background-color: #333; /* Updated background color */
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script>
<script>
$(document).ready(function(){
$(".owl-carousel").owlCarousel({
loop: true,
margin: 10,
nav: true,
dots: true,
items: 1,
autoplay: true,
autoplayTimeout: 5000
});
});
</script>
<!-- Container Div -->
<div class="relative">
</div>
<!-- Bottom Toolbar -->
<div class="bg-gray-900 p-4 shadow-md fixed bottom-0 inset-x-0 flex justify-around">
<!-- Home Icon -->
<a href="index.html" class="flex flex-col items-center transform transition-transform duration-200 hover:scale-110">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-white hover:text-blue-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M13 5v6a1 1 0 001 1h3m4 0a1 1 0 011 1v6a1 1 0 01-1 1H6a1 1 0 01-1-1v-6a1 1 0 011-1h3m-4 0l2 2" />
</svg>
<span class="text-white text-xs mt-1 hover:text-blue-400">Home</span>
</a>
<!-- Search Icon -->
<a href="search.html" class="flex flex-col items-center transform transition-transform duration-200 hover:scale-110">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-white hover:text-green-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-4.35-4.35M18 10a8 8 0 11-16 0 8 8 0 0116 0z" />
</svg>
<span class="text-white text-xs mt-1 hover:text-green-400">Search</span>
</a>
<!-- Bookmark Icon -->
<a href="bookmark.html" class="flex flex-col items-center transform transition-transform duration-200 hover:scale-110">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-white hover:text-red-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 5v16l7-5 7 5V5a2 2 0 00-2-2H7a2 2 0 00-2 2z" />
</svg>
<span class="text-white text-xs mt-1 hover:text-red-400">Bookmark</span>
</a>
</div>
<script src="js/script.js"></script>
<script src="js/search-bar.js"></script>
</body>
</html>