File size: 14,785 Bytes
509f3c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PySQL Labs - Interactive Python & SQL Learning Platform</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <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>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: '#22c55e', /* lime-500 */
                        secondary: '#d946ef' /* fuchsia-500 */
                    },
                    fontFamily: {
                        'mono': ['JetBrains Mono', 'Monaco', 'Courier New', 'monospace'],
                        'sans': ['Inter', 'system-ui', 'sans-serif']
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');
    </style>
</head>
<body class="bg-gray-900 text-gray-100 font-sans min-h-screen">
    <!-- Navigation -->
    <custom-navbar></custom-navbar>

    <!-- Hero Section -->
    <section class="relative overflow-hidden">
        <div class="absolute inset-0 bg-gradient-to-br from-gray-800 via-gray-900 to-black"></div>
        <div class="relative container mx-auto px-6 py-20 md:py-32">
            <div class="flex flex-col lg:flex-row items-center justify-between gap-12">
                <div class="lg:w-1/2">
                    <div class="mb-6 inline-flex items-center px-4 py-2 rounded-full bg-gradient-to-r from-primary/20 to-secondary/20 border border-primary/30">
                        <i data-feather="zap" class="w-4 h-4 text-primary mr-2"></i>
                        <span class="text-sm font-medium">Interactive Learning Platform</span>
                    </div>
                    <h1 class="text-5xl md:text-7xl font-bold mb-6 leading-tight">
                        PySQL <span class="text-transparent bg-clip-text bg-gradient-to-r from-primary to-secondary">Labs</span>
                    </h1>
                    <p class="text-xl text-gray-300 mb-8 max-w-2xl">
                        Hands-on Python & SQL labs with auto-grading and interview drills. Master data skills through interactive coding challenges and realistic interview simulations.
                    </p>
                    <div class="flex flex-col sm:flex-row gap-4">
                        <a href="#dashboard" class="px-8 py-4 bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary text-gray-900 font-semibold rounded-lg shadow-lg hover:shadow-xl transition-all duration-300 flex items-center justify-center">
                            <i data-feather="play-circle" class="w-5 h-5 mr-2"></i>
                            Start Free Lab
                        </a>
                        <a href="#interview-mode" class="px-8 py-4 bg-gray-800 hover:bg-gray-700 border border-gray-700 font-semibold rounded-lg transition-all duration-300 flex items-center justify-center">
                            <i data-feather="clock" class="w-5 h-5 mr-2"></i>
                            Try Interview Mode
                        </a>
                    </div>
                </div>
                <div class="lg:w-1/2 relative">
                    <div class="relative bg-gray-800 rounded-2xl p-6 shadow-2xl border border-gray-700">
                        <!-- Mock Editor Split Screen -->
                        <div class="flex flex-col md:flex-row gap-4">
                            <!-- Python Editor Mock -->
                            <div class="md:w-1/2 bg-gray-900 rounded-xl p-4 border border-gray-700">
                                <div class="flex items-center justify-between mb-3">
                                    <div class="flex items-center">
                                        <div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
                                        <div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
                                        <div class="w-3 h-3 rounded-full bg-green-500"></div>
                                    </div>
                                    <span class="text-xs text-gray-400 font-mono">lab.py</span>
                                </div>
                                <div class="space-y-2">
                                    <div class="h-4 bg-gray-800 rounded w-3/4"></div>
                                    <div class="h-4 bg-gray-800 rounded w-full"></div>
                                    <div class="h-4 bg-primary/30 rounded w-1/2"></div>
                                    <div class="h-4 bg-gray-800 rounded w-5/6"></div>
                                    <div class="h-4 bg-gray-800 rounded w-full"></div>
                                </div>
                                <div class="mt-4 p-2 bg-gray-800 rounded text-xs font-mono text-green-400">
                                    > Tests passed: 3/5
                                </div>
                            </div>
                            <!-- SQL Results Mock -->
                            <div class="md:w-1/2 bg-gray-900 rounded-xl p-4 border border-gray-700">
                                <div class="flex items-center justify-between mb-3">
                                    <div class="flex items-center">
                                        <i data-feather="database" class="w-4 h-4 text-secondary mr-2"></i>
                                        <span class="text-xs text-gray-300">employees</span>
                                    </div>
                                    <span class="text-xs text-gray-400 font-mono">results.csv</span>
                                </div>
                                <div class="overflow-x-auto">
                                    <table class="w-full text-xs">
                                        <thead>
                                            <tr class="border-b border-gray-700">
                                                <th class="pb-2 text-left">id</th>
                                                <th class="pb-2 text-left">name</th>
                                                <th class="pb-2 text-left">dept</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr><td class="py-1">101</td><td class="py-1">Alice</td><td class="py-1">Engineering</td></tr>
                                            <tr><td class="py-1">102</td><td class="py-1">Bob</td><td class="py-1">Sales</td></tr>
                                            <tr><td class="py-1">103</td><td class="py-1">Charlie</td><td class="py-1">Marketing</td></tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class="absolute -top-3 -right-3">
                            <div class="bg-gradient-to-r from-primary to-secondary text-white text-xs font-bold px-3 py-1 rounded-full">
                                LIVE PREVIEW
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Grid -->
    <section class="py-20 bg-gray-800/50">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12">Everything You Need to Master Python & SQL</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
                <custom-feature-card 
                    icon="code" 
                    title="Interactive Python Lab" 
                    description="Write, run, and test Python code with real-time feedback. Our environment supports all core Python libraries."
                    cta-text="Try sample"
                    color="primary">
                </custom-feature-card>
                <custom-feature-card 
                    icon="database" 
                    title="SQL Sandbox" 
                    description="Practice SQL queries on realistic datasets. Includes schema browser, query history, and visual result sets."
                    cta-text="Try sample"
                    color="secondary">
                </custom-feature-card>
                <custom-feature-card 
                    icon="check-circle" 
                    title="Auto-grader & Feedback" 
                    description="Get instant scoring on your solutions. Detailed feedback helps you understand edge cases and optimize your code."
                    cta-text="Try sample"
                    color="primary">
                </custom-feature-card>
                <custom-feature-card 
                    icon="clock" 
                    title="Interview Simulator" 
                    description="Timed mock interviews with real FAANG-style questions. Track performance metrics and identify areas for improvement."
                    cta-text="Try sample"
                    color="secondary">
                </custom-feature-card>
            </div>
        </div>
    </section>

    <!-- How It Works -->
    <section class="py-20">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12">How PySQL Labs Works</h2>
            <div class="flex flex-col lg:flex-row items-center justify-between gap-8">
                <custom-step 
                    number="1" 
                    icon="search" 
                    title="Select a Lab" 
                    description="Choose from hundreds of Python and SQL problems, categorized by difficulty and topic."
                    delay="100">
                </custom-step>
                <div class="hidden lg:block">
                    <div class="w-32 h-1 bg-gradient-to-r from-primary to-secondary rounded-full"></div>
                </div>
                <custom-step 
                    number="2" 
                    icon="edit" 
                    title="Write & Run Code" 
                    description="Use our integrated editor to write solutions. Run code instantly and see output in real-time."
                    delay="200">
                </custom-step>
                <div class="hidden lg:block">
                    <div class="w-32 h-1 bg-gradient-to-r from-primary to-secondary rounded-full"></div>
                </div>
                <custom-step 
                    number="3" 
                    icon="bar-chart-2" 
                    title="Track Progress" 
                    description="Monitor your learning journey with detailed analytics, badges, and streak tracking."
                    delay="300">
                </custom-step>
            </div>
        </div>
    </section>

    <!-- Example Problems Carousel -->
    <section class="py-20 bg-gray-800/50">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12">Example Challenges</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
                <custom-problem-card 
                    title="Even or Odd Filter" 
                    language="Python" 
                    difficulty="Easy" 
                    time="15 min"
                    description="Filter a list to keep only even numbers using list comprehension."
                    status="free">
                </custom-problem-card>
                <custom-problem-card 
                    title="First Prime Number" 
                    language="Python" 
                    difficulty="Medium" 
                    time="25 min"
                    description="Find the first prime number in a given list of integers."
                    status="free">
                </custom-problem-card>
                <custom-problem-card 
                    title="Employee Finder" 
                    language="SQL" 
                    difficulty="Easy" 
                    time="10 min"
                    description="Select employee details by name from the employees table."
                    status="free">
                </custom-problem-card>
                <custom-problem-card 
                    title="Department Join" 
                    language="SQL" 
                    difficulty="Medium" 
                    time="20 min"
                    description="Merge two tables using JOIN to show employee-department relationships."
                    status="premium">
                </custom-problem-card>
            </div>
        </div>
    </section>

    <!-- Dashboard Preview -->
    <section id="dashboard" class="py-20">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12">Interactive Dashboard Preview</h2>
            <custom-dashboard></custom-dashboard>
        </div>
    </section>

    <!-- SQL Lab Mini UI -->
    <section class="py-20 bg-gray-800/50">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12">Try Our SQL Sandbox</h2>
            <custom-sql-lab></custom-sql-lab>
        </div>
    </section>

    <!-- Python Lab Mini UI -->
    <section class="py-20">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl md:text-4xl font-bold text-center mb-12">Python Lab Environment</h2>
            <custom-python-lab></custom-python-lab>
        </div>
    </section>

    <!-- Footer -->
    <custom-footer></custom-footer>

    <!-- Web Components Scripts -->
    <script src="components/navbar.js"></script>
    <script src="components/feature-card.js"></script>
    <script src="components/step.js"></script>
    <script src="components/problem-card.js"></script>
    <script src="components/dashboard.js"></script>
    <script src="components/sql-lab.js"></script>
    <script src="components/python-lab.js"></script>
    <script src="components/footer.js"></script>

    <!-- Main Script -->
    <script src="script.js"></script>
    <script>
        feather.replace();
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>