-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
379 lines (345 loc) · 19.9 KB
/
index.html
File metadata and controls
379 lines (345 loc) · 19.9 KB
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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Embedded Python - The Future of Prototyping</title>
<meta name="description"
content="Embed Python directly in your HTML. No build tools, no complex frameworks. Just pure productivity.">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap"
rel="stylesheet">
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Outfit', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
colors: {
background: '#0a0a0b',
surface: '#18181b',
brand: {
500: '#8b5cf6', // Violet
600: '#7c3aed',
},
accent: {
500: '#f43f5e', // Rose
}
},
animation: {
'float': 'float 6s ease-in-out infinite',
'pulse-slow': 'pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-20px)' },
}
}
}
}
}
</script>
<!-- Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style type="text/tailwindcss">
@layer utilities {
.text-gradient {
@apply bg-clip-text text-transparent bg-gradient-to-r from-brand-500 via-purple-500 to-accent-500;
}
.glass-panel {
@apply bg-surface/50 backdrop-blur-xl border border-white/10;
}
.glow {
@apply shadow-[0_0_40px_-10px_rgba(139,92,246,0.3)];
}
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #0a0a0b;
}
::-webkit-scrollbar-thumb {
background: #333;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #444;
}
</style>
</head>
<body class="bg-background text-gray-300 font-sans selection:bg-brand-500/30 selection:text-white overflow-x-hidden">
<!-- Navigation -->
<nav class="fixed w-full z-50 top-0 start-0 border-b border-white/5 bg-background/80 backdrop-blur-md">
<div class="max-w-7xl mx-auto flex flex-wrap items-center justify-between p-4">
<a href="#" class="flex items-center space-x-3 rtl:space-x-reverse z-50">
<div
class="w-10 h-10 rounded-lg bg-gradient-to-br from-brand-500 to-accent-500 flex items-center justify-center text-white font-bold text-xl shadow-lg">
<i class="fa-brands fa-python"></i>
</div>
<span class="text-xl md:text-2xl font-bold whitespace-nowrap text-white">
<span class="block md:hidden">WEP</span>
<span class="hidden md:block">Web Embedded Python</span>
</span>
</a>
<div class="flex md:order-2 space-x-3 md:space-x-0 rtl:space-x-reverse mt-2 sm:mt-0">
<a href="https://github.com/prodev717/web-embedded-python.git" target="_blank"
class="text-white bg-white/10 hover:bg-white/20 focus:ring-4 focus:outline-none focus:ring-brand-500/50 font-medium rounded-full text-sm px-4 py-2 sm:px-5 sm:py-2.5 text-center inline-flex items-center transition-all border border-white/10">
<i class="fa-brands fa-github mr-2"></i>
<span class="block md:hidden">GitHub</span>
<span class="hidden md:block">Star on GitHub</span>
</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="relative min-h-screen flex items-center pt-28 pb-12 lg:pt-32 overflow-hidden">
<!-- Background Gradients -->
<div
class="absolute top-0 right-0 -mr-40 -mt-40 w-[300px] md:w-[600px] h-[300px] md:h-[600px] bg-brand-500/20 rounded-full blur-[80px] md:blur-[120px] pointer-events-none mix-blend-screen animate-pulse-slow">
</div>
<div class="absolute bottom-0 left-0 -ml-40 -mb-40 w-[300px] md:w-[600px] h-[300px] md:h-[600px] bg-accent-500/10 rounded-full blur-[80px] md:blur-[120px] pointer-events-none mix-blend-screen animate-pulse-slow"
style="animation-delay: 2s;"></div>
<div
class="absolute inset-0 bg-[url('https://grainy-gradients.vercel.app/noise.svg')] opacity-20 brightness-100 contrast-150 pointer-events-none">
</div>
<div
class="grid max-w-screen-xl px-4 py-8 mx-auto gap-12 lg:gap-8 lg:py-16 grid-cols-1 lg:grid-cols-12 relative z-10 w-full place-items-center lg:place-items-start">
<!-- Text Content -->
<div class="text-center lg:text-left mr-auto place-self-center lg:col-span-7 w-full">
<div
class="inline-flex items-center px-3 py-1 mb-6 text-sm font-medium text-brand-500 bg-brand-500/10 rounded-full border border-brand-500/20">
<span class="w-2 h-2 rounded-full bg-brand-500 mr-2 animate-pulse"></span>
v1.0 Now Available
</div>
<h1
class="max-w-2xl mx-auto lg:mx-0 mb-4 text-4xl font-extrabold tracking-tight leading-tight md:text-5xl lg:text-6xl xl:text-7xl text-white">
Web Embedded <br>
<span class="text-gradient">Python.</span>
</h1>
<p
class="max-w-2xl mx-auto lg:mx-0 mb-8 font-light text-gray-400 md:text-lg lg:text-xl leading-relaxed">
A lightweight server-side framework that lets you write Python logic directly inside your HTML. The
simplicity of PHP, powered by the Python ecosystem.
</p>
<div
class="flex flex-col sm:flex-row justify-center lg:justify-start space-y-4 sm:space-y-0 sm:space-x-4">
<a href="https://github.com/prodev717/web-embedded-python.git"
class="inline-flex justify-center items-center py-3 px-6 text-base font-medium text-center text-white rounded-lg bg-gradient-to-r from-brand-600 to-accent-500 hover:from-brand-500 hover:to-accent-400 focus:ring-4 focus:ring-brand-500/50 shadow-lg shadow-brand-500/25 transition-all transform hover:-translate-y-1">
Get Started
<svg class="w-5 h-5 ml-2 -mr-1" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
</a>
<a href="#how-it-works"
class="inline-flex justify-center items-center py-3 px-6 text-base font-medium text-center text-gray-300 rounded-lg border border-white/20 hover:bg-white/5 focus:ring-4 focus:ring-white/10 transition-all">
Learn More
</a>
</div>
<div
class="mt-8 pt-8 border-t border-white/10 flex flex-wrap justify-center lg:justify-start gap-4 sm:gap-6 text-gray-500 text-sm font-mono">
<div class="flex items-center">
<i class="fa-solid fa-code text-brand-500 mr-2"></i> No Build Step
</div>
<div class="flex items-center">
<i class="fa-brands fa-python text-brand-500 mr-2"></i> Full Python Support
</div>
<div class="flex items-center">
<i class="fa-solid fa-server text-brand-500 mr-2"></i> Server-Side Rendering
</div>
</div>
</div>
<!-- Visual Content (Code Window) -->
<div class="lg:mt-0 lg:col-span-5 w-full relative">
<!-- Code Window -->
<div
class="relative mx-auto w-full max-w-md lg:max-w-full glass-panel rounded-xl shadow-2xl glow lg:animate-float overflow-hidden">
<div class="flex items-center px-4 py-3 bg-white/5 border-b border-white/5 rounded-t-xl">
<div class="flex space-x-2">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<div class="w-3 h-3 rounded-full bg-green-500"></div>
</div>
<div class="ml-4 text-xs text-gray-500 font-mono">index.wep</div>
</div>
<div class="p-4 sm:p-6 overflow-x-auto">
<pre class="font-mono text-xs sm:text-sm leading-6">
<code class="language-html"><span class="text-blue-400"><h1></span>Welcome<span class="text-blue-400"></h1></span>
<span class="text-accent-500"><wep></span>
<span class="text-purple-400">import</span> <span class="text-yellow-300">datetime</span>
<span class="text-gray-500"># Server-side logic</span>
now = datetime.datetime.now()
<span class="text-gray-500"># Output HTML directly</span>
echo(<span class="text-green-400">f"""</span>
<span class="text-green-400"> <div class="card"></span>
<span class="text-green-400"> <p>Time: {now}</p></span>
<span class="text-green-400"> </div></span>
<span class="text-green-400">"""</span>)
<span class="text-accent-500"></wep></span></code>
</pre>
</div>
</div>
</div>
</div>
</section>
<!-- Detailed Features Grid -->
<section id="how-it-works" class="py-16 md:py-24 bg-surface/30 relative">
<div class="max-w-screen-xl px-4 mx-auto lg:px-12">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold tracking-tight text-white md:text-4xl mb-4">Complete Power, Zero
Complexity</h2>
<p class="text-gray-400 max-w-2xl mx-auto">Web Embedded Python bridges the gap between static HTML and
full-stack web applications. Perfect for data science demos, internal tools, and rapid prototyping.
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
<!-- Feature 1 -->
<div
class="p-8 rounded-2xl bg-surface hover:bg-white/5 border border-white/5 transition-all group hover:-translate-y-1">
<div
class="w-12 h-12 rounded-lg bg-brand-500/10 flex items-center justify-center text-brand-500 text-xl mb-6">
<i class="fa-solid fa-code"></i>
</div>
<h3 class="text-xl font-bold text-white mb-3">Syntax You Know</h3>
<p class="text-gray-400 leading-relaxed">Just open a <code
class="text-brand-500 bg-brand-500/10 px-1 rounded">.wep</code> file and start writing HTML.
Add a <code class="text-brand-500 bg-brand-500/10 px-1 rounded"><wep></code> block
whenever you need logic. No new template language to learn.</p>
</div>
<!-- Feature 2 -->
<div
class="p-8 rounded-2xl bg-surface hover:bg-white/5 border border-white/5 transition-all group hover:-translate-y-1">
<div
class="w-12 h-12 rounded-lg bg-accent-500/10 flex items-center justify-center text-accent-500 text-xl mb-6">
<i class="fa-solid fa-layer-group"></i>
</div>
<h3 class="text-xl font-bold text-white mb-3">Full Ecosystem Access</h3>
<p class="text-gray-400 leading-relaxed">Import <strong>Pandas</strong>, <strong>NumPy</strong>,
<strong>Requests</strong>, or <strong>OpenAI</strong>. Since it runs server-side, you have
access to the entire PyPI repository.
</p>
</div>
<!-- Feature 3 -->
<div
class="p-8 rounded-2xl bg-surface hover:bg-white/5 border border-white/5 transition-all group hover:-translate-y-1">
<div
class="w-12 h-12 rounded-lg bg-blue-500/10 flex items-center justify-center text-blue-500 text-xl mb-6">
<i class="fa-solid fa-server"></i>
</div>
<h3 class="text-xl font-bold text-white mb-3">Session Management</h3>
<p class="text-gray-400 leading-relaxed">Built-in support for <code
class="text-blue-400 bg-blue-400/10 px-1 rounded">SESSION</code>, <code
class="text-blue-400 bg-blue-400/10 px-1 rounded">_GET</code>, and <code
class="text-blue-400 bg-blue-400/10 px-1 rounded">_POST</code> variables. Handle user logins
and form data effortlessly.</p>
</div>
<!-- Feature 4 -->
<div
class="p-8 rounded-2xl bg-surface hover:bg-white/5 border border-white/5 transition-all group hover:-translate-y-1">
<div
class="w-12 h-12 rounded-lg bg-green-500/10 flex items-center justify-center text-green-500 text-xl mb-6">
<i class="fa-solid fa-gauge-high"></i>
</div>
<h3 class="text-xl font-bold text-white mb-3">Zero Configuration</h3>
<p class="text-gray-400 leading-relaxed">No Webpack, no Babel, no complex build chains. The server
parses your file and renders the output instantly.</p>
</div>
<!-- Feature 5 -->
<div
class="p-8 rounded-2xl bg-surface hover:bg-white/5 border border-white/5 transition-all group hover:-translate-y-1">
<div
class="w-12 h-12 rounded-lg bg-purple-500/10 flex items-center justify-center text-purple-500 text-xl mb-6">
<i class="fa-brands fa-github"></i>
</div>
<h3 class="text-xl font-bold text-white mb-3">Open Source</h3>
<p class="text-gray-400 leading-relaxed">Fully open source and community driven. Fork it, customize
it, and deploy it anywhere Python runs.</p>
</div>
<!-- Feature 6 -->
<div
class="p-8 rounded-2xl bg-surface hover:bg-white/5 border border-white/5 transition-all group hover:-translate-y-1">
<div
class="w-12 h-12 rounded-lg bg-yellow-500/10 flex items-center justify-center text-yellow-500 text-xl mb-6">
<i class="fa-solid fa-lightbulb"></i>
</div>
<h3 class="text-xl font-bold text-white mb-3">AI Native</h3>
<p class="text-gray-400 leading-relaxed">The easiest way to build UI for your AI agents. Call LLM
APIs directly from your HTML and render the response.</p>
</div>
</div>
</div>
</section>
<!-- Getting Started Section -->
<section class="py-16 md:py-24 bg-background relative overflow-hidden">
<div class="max-w-screen-xl px-4 mx-auto relative z-10">
<h2 class="text-3xl font-bold tracking-tight text-white md:text-4xl mb-12 text-center">Get Started in
Seconds</h2>
<div class="flex flex-col md:flex-row justify-between items-center gap-8">
<!-- Step 1 -->
<div class="flex-1 text-center group">
<div
class="w-16 h-16 mx-auto bg-surface border border-brand-500/30 rounded-2xl flex items-center justify-center text-2xl text-brand-500 mb-6 group-hover:scale-110 transition-transform shadow-[0_0_20px_-5px_rgba(139,92,246,0.3)]">
1
</div>
<h3 class="text-xl font-bold text-white mb-2">Clone</h3>
<p
class="text-gray-500 font-mono text-sm bg-surface/50 p-2 rounded-lg border border-white/5 inline-block">
git clone web-embedded-python</p>
</div>
<div class="hidden md:block w-24 h-[2px] bg-gradient-to-r from-brand-500/50 to-transparent"></div>
<!-- Step 2 -->
<div class="flex-1 text-center group">
<div
class="w-16 h-16 mx-auto bg-surface border border-brand-500/30 rounded-2xl flex items-center justify-center text-2xl text-brand-500 mb-6 group-hover:scale-110 transition-transform shadow-[0_0_20px_-5px_rgba(139,92,246,0.3)]">
2
</div>
<h3 class="text-xl font-bold text-white mb-2">Build</h3>
<p class="text-gray-500 text-sm">Create your first <code class="text-brand-400">index.wep</code>
file</p>
</div>
<div class="hidden md:block w-24 h-[2px] bg-gradient-to-r from-brand-500/50 to-transparent"></div>
<!-- Step 3 -->
<div class="flex-1 text-center group">
<div
class="w-16 h-16 mx-auto bg-surface border border-accent-500/30 rounded-2xl flex items-center justify-center text-2xl text-accent-500 mb-6 group-hover:scale-110 transition-transform shadow-[0_0_20px_-5px_rgba(244,63,94,0.3)]">
3
</div>
<h3 class="text-xl font-bold text-white mb-2">Run</h3>
<p
class="text-gray-500 font-mono text-sm bg-surface/50 p-2 rounded-lg border border-white/5 inline-block">
uv run main.py</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-surface/50 border-t border-white/5 py-12">
<div
class="max-w-screen-xl px-4 mx-auto flex flex-col md:flex-row items-center justify-between space-y-4 md:space-y-0">
<div class="text-center md:text-left">
<span class="text-lg font-bold text-white block">Web Embedded Python</span>
<span class="text-sm text-gray-500">MIT Licensed Open Source Project</span>
</div>
<div class="flex space-x-6">
<a href="https://github.com/prodev717/web-embedded-python.git"
class="text-gray-400 hover:text-white transition-colors">
<i class="fa-brands fa-github text-xl"></i>
</a>
</div>
</div>
</footer>
</body>
</html>