File size: 7,068 Bytes
a7479c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CineVerse - Your Movie Universe</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="components/navbar.js"></script>
    <script src="components/movie-card.js"></script>
    <script src="components/footer.js"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#6d28d9',
                        secondary: '#f59e0b',
                    }
                }
            }
        }
    </script>
</head>
<body class="bg-gray-100 dark:bg-gray-900 transition-colors duration-300">
    <custom-navbar></custom-navbar>
    
    <main class="container mx-auto px-4 py-8">
        <!-- Hero Section -->
        <section class="mb-12">
            <div class="bg-gradient-to-r from-primary to-secondary rounded-2xl p-8 text-white">
                <h1 class="text-4xl md:text-5xl font-bold mb-4">Discover Your Next Favorite Movie</h1>
                <p class="text-xl mb-6">Explore thousands of films from all genres and eras</p>
                <div class="relative max-w-2xl">
                    <input type="text" placeholder="Search movies, actors, genres..." 
                           class="w-full py-3 px-4 rounded-full text-gray-800 focus:outline-none">
                    <button class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-primary hover:bg-primary-dark p-2 rounded-full">
                        <i data-feather="search"></i>
                    </button>
                </div>
            </div>
        </section>

        <!-- Featured Movies -->
        <section class="mb-12">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold text-gray-800 dark:text-white">Featured Movies</h2>
                <a href="#" class="text-primary hover:underline">View All</a>
            </div>
            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
                <movie-card 
                    title="Inception" 
                    year="2010" 
                    rating="8.8" 
                    genre="Sci-Fi" 
                    image="http://static.photos/technology/640x360/1">
                </movie-card>
                <movie-card 
                    title="The Shawshank Redemption" 
                    year="1994" 
                    rating="9.3" 
                    genre="Drama" 
                    image="http://static.photos/vintage/640x360/2">
                </movie-card>
                <movie-card 
                    title="Parasite" 
                    year="2019" 
                    rating="8.6" 
                    genre="Thriller" 
                    image="http://static.photos/indoor/640x360/3">
                </movie-card>
                <movie-card 
                    title="Pulp Fiction" 
                    year="1994" 
                    rating="8.9" 
                    genre="Crime" 
                    image="http://static.photos/vintage/640x360/4">
                </movie-card>
            </div>
        </section>

        <!-- Categories -->
        <section class="mb-12">
            <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-6">Browse by Category</h2>
            <div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4">
                <a href="#" class="category-card bg-primary hover:bg-primary-dark text-white">Action</a>
                <a href="#" class="category-card bg-secondary hover:bg-secondary-dark text-white">Comedy</a>
                <a href="#" class="category-card bg-green-500 hover:bg-green-600 text-white">Drama</a>
                <a href="#" class="category-card bg-red-500 hover:bg-red-600 text-white">Horror</a>
                <a href="#" class="category-card bg-blue-500 hover:bg-blue-600 text-white">Sci-Fi</a>
                <a href="#" class="category-card bg-purple-500 hover:bg-purple-600 text-white">Fantasy</a>
            </div>
        </section>

        <!-- Trending Now -->
        <section>
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold text-gray-800 dark:text-white">Trending Now</h2>
                <a href="#" class="text-primary hover:underline">View All</a>
            </div>
            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
                <movie-card 
                    title="Dune" 
                    year="2021" 
                    rating="8.0" 
                    genre="Sci-Fi" 
                    image="http://static.photos/technology/640x360/5">
                </movie-card>
                <movie-card 
                    title="The Batman" 
                    year="2022" 
                    rating="7.9" 
                    genre="Action" 
                    image="http://static.photos/black/640x360/6">
                </movie-card>
                <movie-card 
                    title="Everything Everywhere All at Once" 
                    year="2022" 
                    rating="8.7" 
                    genre="Adventure" 
                    image="http://static.photos/abstract/640x360/7">
                </movie-card>
                <movie-card 
                    title="Top Gun: Maverick" 
                    year="2022" 
                    rating="8.3" 
                    genre="Action" 
                    image="http://static.photos/aerial/640x360/8">
                </movie-card>
            </div>
        </section>
    </main>

    <custom-footer></custom-footer>
    <script>
        feather.replace();
        // Dark mode toggle
        document.addEventListener('DOMContentLoaded', () => {
            // Add loading state
            const movieCards = document.querySelectorAll('movie-card');
            movieCards.forEach(card => {
                card.setAttribute('loading', 'true');
            });
        });
const darkModeToggle = document.getElementById('darkModeToggle');
        if (darkModeToggle) {
            darkModeToggle.addEventListener('click', () => {
                document.documentElement.classList.toggle('dark');
                localStorage.setItem('darkMode', document.documentElement.classList.contains('dark'));
            });
        }

        // Check for saved dark mode preference
        if (localStorage.getItem('darkMode') === 'true') {
            document.documentElement.classList.add('dark');
        } else {
            document.documentElement.classList.remove('dark');
        }
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>