reda20111gh commited on
Commit
a7479c8
·
verified ·
1 Parent(s): afb63de

TMDB offers a powerful API service that is free for personal use. Please ensure you attribute TMDB for any images or data you use. You can find the logos for attribution here.

Browse files

Documentation
Our primary documentation is located at developer.themoviedb.org.

Assistance
If you have questions or comments about the information covered here, please create a post on our support forums.

Détails de l'API
Test your API credentials by clicking here. You can also edit the details of your app by clicking here.

Jeton d'accès en lecture à l'API
eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIyNTZiNDQ4OTViZTMyNGM5ZDgwYTU4NzQ3YTFlMzk3NyIsIm5iZiI6MTc2MzI5MjU4MS4xNSwic3ViIjoiNjkxOWI1YTVhODk2YThiYjIyYTBlZGM2Iiwic2NvcGVzIjpbImFwaV9yZWFkIl0sInZlcnNpb24iOjF9.AQjeeaZtUJ9OoahPCIgGDXoZpCAiZBlJ60388-n7oBU
Clé d'API
256b44895be324c9d80a58747a1e3977

Files changed (4) hide show
  1. README.md +7 -4
  2. components/api-loader.js +36 -0
  3. index.html +164 -19
  4. style.css +44 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Cineverse Api Explorer
3
- emoji: 📈
4
- colorFrom: pink
5
  colorTo: gray
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: CineVerse API Explorer 🍿
3
+ colorFrom: yellow
 
4
  colorTo: gray
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/api-loader.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class ApiLoader extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .loader-container {
7
+ display: flex;
8
+ justify-content: center;
9
+ align-items: center;
10
+ padding: 2rem;
11
+ }
12
+
13
+ .loader {
14
+ width: 48px;
15
+ height: 48px;
16
+ border: 5px solid #6d28d9;
17
+ border-bottom-color: transparent;
18
+ border-radius: 50%;
19
+ display: inline-block;
20
+ box-sizing: border-box;
21
+ animation: rotation 1s linear infinite;
22
+ }
23
+
24
+ @keyframes rotation {
25
+ 0% { transform: rotate(0deg); }
26
+ 100% { transform: rotate(360deg); }
27
+ }
28
+ </style>
29
+ <div class="loader-container">
30
+ <span class="loader"></span>
31
+ </div>
32
+ `;
33
+ }
34
+ }
35
+
36
+ customElements.define('api-loader', ApiLoader);
index.html CHANGED
@@ -1,19 +1,164 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>CineVerse - Your Movie Universe</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="components/navbar.js"></script>
12
+ <script src="components/movie-card.js"></script>
13
+ <script src="components/footer.js"></script>
14
+ <script>
15
+ tailwind.config = {
16
+ theme: {
17
+ extend: {
18
+ colors: {
19
+ primary: '#6d28d9',
20
+ secondary: '#f59e0b',
21
+ }
22
+ }
23
+ }
24
+ }
25
+ </script>
26
+ </head>
27
+ <body class="bg-gray-100 dark:bg-gray-900 transition-colors duration-300">
28
+ <custom-navbar></custom-navbar>
29
+
30
+ <main class="container mx-auto px-4 py-8">
31
+ <!-- Hero Section -->
32
+ <section class="mb-12">
33
+ <div class="bg-gradient-to-r from-primary to-secondary rounded-2xl p-8 text-white">
34
+ <h1 class="text-4xl md:text-5xl font-bold mb-4">Discover Your Next Favorite Movie</h1>
35
+ <p class="text-xl mb-6">Explore thousands of films from all genres and eras</p>
36
+ <div class="relative max-w-2xl">
37
+ <input type="text" placeholder="Search movies, actors, genres..."
38
+ class="w-full py-3 px-4 rounded-full text-gray-800 focus:outline-none">
39
+ <button class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-primary hover:bg-primary-dark p-2 rounded-full">
40
+ <i data-feather="search"></i>
41
+ </button>
42
+ </div>
43
+ </div>
44
+ </section>
45
+
46
+ <!-- Featured Movies -->
47
+ <section class="mb-12">
48
+ <div class="flex justify-between items-center mb-6">
49
+ <h2 class="text-2xl font-bold text-gray-800 dark:text-white">Featured Movies</h2>
50
+ <a href="#" class="text-primary hover:underline">View All</a>
51
+ </div>
52
+ <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
53
+ <movie-card
54
+ title="Inception"
55
+ year="2010"
56
+ rating="8.8"
57
+ genre="Sci-Fi"
58
+ image="http://static.photos/technology/640x360/1">
59
+ </movie-card>
60
+ <movie-card
61
+ title="The Shawshank Redemption"
62
+ year="1994"
63
+ rating="9.3"
64
+ genre="Drama"
65
+ image="http://static.photos/vintage/640x360/2">
66
+ </movie-card>
67
+ <movie-card
68
+ title="Parasite"
69
+ year="2019"
70
+ rating="8.6"
71
+ genre="Thriller"
72
+ image="http://static.photos/indoor/640x360/3">
73
+ </movie-card>
74
+ <movie-card
75
+ title="Pulp Fiction"
76
+ year="1994"
77
+ rating="8.9"
78
+ genre="Crime"
79
+ image="http://static.photos/vintage/640x360/4">
80
+ </movie-card>
81
+ </div>
82
+ </section>
83
+
84
+ <!-- Categories -->
85
+ <section class="mb-12">
86
+ <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-6">Browse by Category</h2>
87
+ <div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4">
88
+ <a href="#" class="category-card bg-primary hover:bg-primary-dark text-white">Action</a>
89
+ <a href="#" class="category-card bg-secondary hover:bg-secondary-dark text-white">Comedy</a>
90
+ <a href="#" class="category-card bg-green-500 hover:bg-green-600 text-white">Drama</a>
91
+ <a href="#" class="category-card bg-red-500 hover:bg-red-600 text-white">Horror</a>
92
+ <a href="#" class="category-card bg-blue-500 hover:bg-blue-600 text-white">Sci-Fi</a>
93
+ <a href="#" class="category-card bg-purple-500 hover:bg-purple-600 text-white">Fantasy</a>
94
+ </div>
95
+ </section>
96
+
97
+ <!-- Trending Now -->
98
+ <section>
99
+ <div class="flex justify-between items-center mb-6">
100
+ <h2 class="text-2xl font-bold text-gray-800 dark:text-white">Trending Now</h2>
101
+ <a href="#" class="text-primary hover:underline">View All</a>
102
+ </div>
103
+ <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
104
+ <movie-card
105
+ title="Dune"
106
+ year="2021"
107
+ rating="8.0"
108
+ genre="Sci-Fi"
109
+ image="http://static.photos/technology/640x360/5">
110
+ </movie-card>
111
+ <movie-card
112
+ title="The Batman"
113
+ year="2022"
114
+ rating="7.9"
115
+ genre="Action"
116
+ image="http://static.photos/black/640x360/6">
117
+ </movie-card>
118
+ <movie-card
119
+ title="Everything Everywhere All at Once"
120
+ year="2022"
121
+ rating="8.7"
122
+ genre="Adventure"
123
+ image="http://static.photos/abstract/640x360/7">
124
+ </movie-card>
125
+ <movie-card
126
+ title="Top Gun: Maverick"
127
+ year="2022"
128
+ rating="8.3"
129
+ genre="Action"
130
+ image="http://static.photos/aerial/640x360/8">
131
+ </movie-card>
132
+ </div>
133
+ </section>
134
+ </main>
135
+
136
+ <custom-footer></custom-footer>
137
+ <script>
138
+ feather.replace();
139
+ // Dark mode toggle
140
+ document.addEventListener('DOMContentLoaded', () => {
141
+ // Add loading state
142
+ const movieCards = document.querySelectorAll('movie-card');
143
+ movieCards.forEach(card => {
144
+ card.setAttribute('loading', 'true');
145
+ });
146
+ });
147
+ const darkModeToggle = document.getElementById('darkModeToggle');
148
+ if (darkModeToggle) {
149
+ darkModeToggle.addEventListener('click', () => {
150
+ document.documentElement.classList.toggle('dark');
151
+ localStorage.setItem('darkMode', document.documentElement.classList.contains('dark'));
152
+ });
153
+ }
154
+
155
+ // Check for saved dark mode preference
156
+ if (localStorage.getItem('darkMode') === 'true') {
157
+ document.documentElement.classList.add('dark');
158
+ } else {
159
+ document.documentElement.classList.remove('dark');
160
+ }
161
+ </script>
162
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
163
+ </body>
164
+ </html>
style.css CHANGED
@@ -1,28 +1,54 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ font-family: 'Poppins', sans-serif;
5
+ }
6
+
7
+ .category-card {
8
+ @apply py-3 px-4 rounded-lg text-center font-medium transition-all duration-200 shadow-md;
9
  }
10
 
11
+ /* Custom scrollbar */
12
+ ::-webkit-scrollbar {
13
+ width: 8px;
14
+ height: 8px;
15
  }
16
 
17
+ ::-webkit-scrollbar-track {
18
+ @apply bg-gray-200 dark:bg-gray-800;
 
 
 
19
  }
20
 
21
+ ::-webkit-scrollbar-thumb {
22
+ @apply bg-primary rounded-full;
 
 
 
 
23
  }
24
 
25
+ ::-webkit-scrollbar-thumb:hover {
26
+ @apply bg-primary-dark;
27
  }
28
+
29
+ /* Animation for movie cards */
30
+ @keyframes fadeIn {
31
+ from { opacity: 0; transform: translateY(20px); }
32
+ to { opacity: 1; transform: translateY(0); }
33
+ }
34
+
35
+ movie-card {
36
+ animation: fadeIn 0.5s ease-out forwards;
37
+ opacity: 0;
38
+ }
39
+
40
+ movie-card:nth-child(1) { animation-delay: 0.1s; }
41
+ movie-card:nth-child(2) { animation-delay: 0.2s; }
42
+ movie-card:nth-child(3) { animation-delay: 0.3s; }
43
+ movie-card:nth-child(4) { animation-delay: 0.4s; }
44
+
45
+ /* Responsive video player */
46
+ .video-container {
47
+ position: relative;
48
+ padding-bottom: 56.25%; /* 16:9 */
49
+ height: 0;
50
+ overflow: hidden;
51
+ }
52
+
53
+ .video-container iframe {
54
+ position: absolute