kali33 commited on
Commit
15a7d29
·
verified ·
1 Parent(s): 23f96da

app that converts python to android apk app

Browse files
Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +333 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Python2apk Alchemist
3
- emoji: 🐠
4
- colorFrom: indigo
5
- colorTo: blue
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: Python2APK Alchemist 🐍✨
3
+ colorFrom: pink
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://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,334 @@
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">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Python2APK Alchemist | Transform Python to Android APK</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.min.js"></script>
11
+ <script>
12
+ tailwind.config = {
13
+ theme: {
14
+ extend: {
15
+ colors: {
16
+ primary: {
17
+ 100: '#d1fae5',
18
+ 500: '#10b981',
19
+ 900: '#064e3b',
20
+ },
21
+ secondary: {
22
+ 100: '#fef3c7',
23
+ 500: '#f59e0b',
24
+ 900: '#78350f',
25
+ }
26
+ }
27
+ }
28
+ }
29
+ }
30
+ </script>
31
+ <style>
32
+ .hero-gradient {
33
+ background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(245,158,11,0.1) 100%);
34
+ }
35
+ .feature-card:hover {
36
+ transform: translateY(-5px);
37
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
38
+ }
39
+ .code-block {
40
+ font-family: 'Courier New', monospace;
41
+ background-color: #1e293b;
42
+ border-radius: 0.5rem;
43
+ }
44
+ </style>
45
+ </head>
46
+ <body class="bg-gray-50 min-h-screen">
47
+ <div id="vanta-bg" class="fixed inset-0 -z-10"></div>
48
+
49
+ <!-- Navigation -->
50
+ <nav class="bg-white bg-opacity-90 backdrop-blur-md shadow-sm sticky top-0 z-50">
51
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
52
+ <div class="flex justify-between h-16 items-center">
53
+ <div class="flex items-center space-x-4">
54
+ <i data-feather="box" class="text-primary-500 h-6 w-6"></i>
55
+ <span class="text-xl font-bold bg-gradient-to-r from-primary-500 to-secondary-500 bg-clip-text text-transparent">Python2APK</span>
56
+ </div>
57
+ <div class="hidden md:flex space-x-8">
58
+ <a href="#" class="text-gray-700 hover:text-primary-500 font-medium">Home</a>
59
+ <a href="#" class="text-gray-700 hover:text-primary-500 font-medium">Features</a>
60
+ <a href="#" class="text-gray-700 hover:text-primary-500 font-medium">How It Works</a>
61
+ <a href="#" class="text-gray-700 hover:text-primary-500 font-medium">Pricing</a>
62
+ </div>
63
+ <button class="bg-gradient-to-r from-primary-500 to-secondary-500 text-white px-4 py-2 rounded-md font-medium hover:opacity-90 transition-opacity">
64
+ Get Started
65
+ </button>
66
+ <button class="md:hidden">
67
+ <i data-feather="menu" class="h-6 w-6 text-gray-600"></i>
68
+ </button>
69
+ </div>
70
+ </div>
71
+ </nav>
72
+
73
+ <!-- Hero Section -->
74
+ <section class="hero-gradient py-20">
75
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
76
+ <div class="grid md:grid-cols-2 gap-12 items-center">
77
+ <div>
78
+ <h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-6">
79
+ Turn Your <span class="text-primary-500">Python</span> Code Into <span class="text-secondary-500">Android APK</span>
80
+ </h1>
81
+ <p class="text-lg text-gray-600 mb-8">
82
+ The easiest way to convert your Python scripts into fully functional Android applications. No Java/Kotlin required.
83
+ </p>
84
+ <div class="flex flex-wrap gap-4">
85
+ <button class="bg-gradient-to-r from-primary-500 to-secondary-500 text-white px-6 py-3 rounded-lg font-medium hover:shadow-lg transition-all">
86
+ Try It Now
87
+ </button>
88
+ <button class="border-2 border-primary-500 text-primary-500 px-6 py-3 rounded-lg font-medium hover:bg-primary-50 transition-all">
89
+ See Demo
90
+ </button>
91
+ </div>
92
+ </div>
93
+ <div class="relative">
94
+ <div class="bg-white p-6 rounded-xl shadow-xl">
95
+ <div class="flex space-x-2 mb-4">
96
+ <div class="w-3 h-3 rounded-full bg-red-500"></div>
97
+ <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
98
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
99
+ </div>
100
+ <div class="code-block p-4 text-white overflow-x-auto">
101
+ <pre><code># Simple Python calculator
102
+ from kivy.app import App
103
+ from kivy.uix.button import Button
104
+
105
+ class MyApp(App):
106
+ def build(self):
107
+ return Button(text='Hello Android!')
108
+
109
+ MyApp().run()</code></pre>
110
+ </div>
111
+ <div class="mt-4 flex justify-between items-center">
112
+ <span class="text-sm text-gray-500">Convert to APK with one click</span>
113
+ <button class="flex items-center bg-primary-500 text-white px-4 py-2 rounded-md text-sm">
114
+ <i data-feather="download" class="mr-2 h-4 w-4"></i>
115
+ Build APK
116
+ </button>
117
+ </div>
118
+ </div>
119
+ <div class="absolute -bottom-6 -right-6 bg-white p-2 rounded-full shadow-lg">
120
+ <div class="bg-secondary-500 p-3 rounded-full">
121
+ <i data-feather="arrow-right" class="text-white h-6 w-6"></i>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </section>
128
+
129
+ <!-- Features Section -->
130
+ <section class="py-20 bg-white">
131
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
132
+ <div class="text-center mb-16">
133
+ <h2 class="text-3xl font-bold text-gray-800 mb-4">Magical Conversion Features</h2>
134
+ <p class="text-lg text-gray-600 max-w-2xl mx-auto">Everything you need to bring your Python apps to Android</p>
135
+ </div>
136
+
137
+ <div class="grid md:grid-cols-3 gap-8">
138
+ <div class="feature-card bg-white p-8 rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border-t-4 border-primary-500">
139
+ <div class="bg-primary-100 p-3 rounded-full w-12 h-12 flex items-center justify-center mb-6">
140
+ <i data-feather="zap" class="text-primary-500 h-6 w-6"></i>
141
+ </div>
142
+ <h3 class="text-xl font-bold text-gray-800 mb-3">One-Click Conversion</h3>
143
+ <p class="text-gray-600">Convert your Python scripts to APK with a single command. No complex setup required.</p>
144
+ </div>
145
+
146
+ <div class="feature-card bg-white p-8 rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border-t-4 border-secondary-500">
147
+ <div class="bg-secondary-100 p-3 rounded-full w-12 h-12 flex items-center justify-center mb-6">
148
+ <i data-feather="package" class="text-secondary-500 h-6 w-6"></i>
149
+ </div>
150
+ <h3 class="text-xl font-bold text-gray-800 mb-3">Full Android Support</h3>
151
+ <p class="text-gray-600">Access to all Android APIs, sensors, and hardware features from your Python code.</p>
152
+ </div>
153
+
154
+ <div class="feature-card bg-white p-8 rounded-xl shadow-md hover:shadow-xl transition-all duration-300 border-t-4 border-primary-500">
155
+ <div class="bg-primary-100 p-3 rounded-full w-12 h-12 flex items-center justify-center mb-6">
156
+ <i data-feather="cpu" class="text-primary-500 h-6 w-6"></i>
157
+ </div>
158
+ <h3 class="text-xl font-bold text-gray-800 mb-3">Optimized Performance</h3>
159
+ <p class="text-gray-600">Our engine compiles Python to optimized native code for the best possible performance.</p>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </section>
164
+
165
+ <!-- How It Works -->
166
+ <section class="py-20 bg-gray-50">
167
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
168
+ <div class="text-center mb-16">
169
+ <h2 class="text-3xl font-bold text-gray-800 mb-4">How It Works</h2>
170
+ <p class="text-lg text-gray-600 max-w-2xl mx-auto">Transform your Python code in just 3 simple steps</p>
171
+ </div>
172
+
173
+ <div class="grid md:grid-cols-3 gap-8 mb-12">
174
+ <div class="flex flex-col items-center text-center">
175
+ <div class="bg-primary-100 text-primary-500 rounded-full w-16 h-16 flex items-center justify-center mb-4 text-2xl font-bold">1</div>
176
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Write Python Code</h3>
177
+ <p class="text-gray-600">Create your application using Python and any compatible framework like Kivy, Pygame, or standard Python.</p>
178
+ </div>
179
+ <div class="flex flex-col items-center text-center">
180
+ <div class="bg-secondary-100 text-secondary-500 rounded-full w-16 h-16 flex items-center justify-center mb-4 text-2xl font-bold">2</div>
181
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Run Conversion</h3>
182
+ <p class="text-gray-600">Use our CLI tool or web interface to package your code into an APK with all dependencies included.</p>
183
+ </div>
184
+ <div class="flex flex-col items-center text-center">
185
+ <div class="bg-primary-100 text-primary-500 rounded-full w-16 h-16 flex items-center justify-center mb-4 text-2xl font-bold">3</div>
186
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Install & Run</h3>
187
+ <p class="text-gray-600">Install the generated APK on any Android device and enjoy your Python app running natively.</p>
188
+ </div>
189
+ </div>
190
+
191
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
192
+ <div class="grid md:grid-cols-2">
193
+ <div class="p-8">
194
+ <h3 class="text-2xl font-bold text-gray-800 mb-4">Advanced Features</h3>
195
+ <ul class="space-y-4">
196
+ <li class="flex items-start">
197
+ <i data-feather="check-circle" class="text-primary-500 mr-3 mt-1 flex-shrink-0"></i>
198
+ <span class="text-gray-700">Automatic dependency resolution</span>
199
+ </li>
200
+ <li class="flex items-start">
201
+ <i data-feather="check-circle" class="text-primary-500 mr-3 mt-1 flex-shrink-0"></i>
202
+ <span class="text-gray-700">Custom app icons and splash screens</span>
203
+ </li>
204
+ <li class="flex items-start">
205
+ <i data-feather="check-circle" class="text-primary-500 mr-3 mt-1 flex-shrink-0"></i>
206
+ <span class="text-gray-700">Permissions management</span>
207
+ </li>
208
+ <li class="flex items-start">
209
+ <i data-feather="check-circle" class="text-primary-500 mr-3 mt-1 flex-shrink-0"></i>
210
+ <span class="text-gray-700">APK signing for Play Store submission</span>
211
+ </li>
212
+ </ul>
213
+ </div>
214
+ <div class="bg-gray-50 p-8 flex items-center justify-center">
215
+ <div class="relative">
216
+ <img src="http://static.photos/technology/640x360/42" alt="Python to APK conversion" class="rounded-lg shadow-md w-full max-w-md">
217
+ <div class="absolute -bottom-4 -right-4 bg-white p-2 rounded-full shadow-lg">
218
+ <div class="bg-primary-500 p-3 rounded-full">
219
+ <i data-feather="smartphone" class="text-white h-6 w-6"></i>
220
+ </div>
221
+ </div>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </section>
228
+
229
+ <!-- CTA Section -->
230
+ <section class="py-20 bg-gradient-to-r from-primary-500 to-secondary-500">
231
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
232
+ <h2 class="text-3xl font-bold text-white mb-6">Ready to Transform Your Python Code?</h2>
233
+ <p class="text-xl text-primary-100 mb-8 max-w-3xl mx-auto">Join thousands of developers who are building Android apps with Python today.</p>
234
+ <div class="flex flex-wrap justify-center gap-4">
235
+ <button class="bg-white text-primary-500 px-8 py-4 rounded-lg font-bold hover:bg-gray-100 transition-all shadow-lg">
236
+ Get Started for Free
237
+ </button>
238
+ <button class="border-2 border-white text-white px-8 py-4 rounded-lg font-bold hover:bg-white hover:bg-opacity-10 transition-all">
239
+ View Documentation
240
+ </button>
241
+ </div>
242
+ </div>
243
+ </section>
244
+
245
+ <!-- Footer -->
246
+ <footer class="bg-gray-900 text-white py-12">
247
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
248
+ <div class="grid md:grid-cols-4 gap-8">
249
+ <div>
250
+ <div class="flex items-center space-x-2 mb-4">
251
+ <i data-feather="box" class="text-primary-500 h-6 w-6"></i>
252
+ <span class="text-xl font-bold">Python2APK</span>
253
+ </div>
254
+ <p class="text-gray-400">The easiest way to convert Python scripts to Android APK files.</p>
255
+ </div>
256
+ <div>
257
+ <h4 class="text-lg font-semibold mb-4">Product</h4>
258
+ <ul class="space-y-2">
259
+ <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Features</a></li>
260
+ <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Pricing</a></li>
261
+ <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Documentation</a></li>
262
+ <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Releases</a></li>
263
+ </ul>
264
+ </div>
265
+ <div>
266
+ <h4 class="text-lg font-semibold mb-4">Company</h4>
267
+ <ul class="space-y-2">
268
+ <li><a href="#" class="text-gray-400 hover:text-white transition-colors">About</a></li>
269
+ <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Blog</a></li>
270
+ <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Careers</a></li>
271
+ <li><a href="#" class="text-gray-400 hover:text-white transition-colors">Contact</a></li>
272
+ </ul>
273
+ </div>
274
+ <div>
275
+ <h4 class="text-lg font-semibold mb-4">Connect</h4>
276
+ <div class="flex space-x-4">
277
+ <a href="#" class="text-gray-400 hover:text-white transition-colors">
278
+ <i data-feather="twitter" class="h-5 w-5"></i>
279
+ </a>
280
+ <a href="#" class="text-gray-400 hover:text-white transition-colors">
281
+ <i data-feather="github" class="h-5 w-5"></i>
282
+ </a>
283
+ <a href="#" class="text-gray-400 hover:text-white transition-colors">
284
+ <i data-feather="linkedin" class="h-5 w-5"></i>
285
+ </a>
286
+ <a href="#" class="text-gray-400 hover:text-white transition-colors">
287
+ <i data-feather="youtube" class="h-5 w-5"></i>
288
+ </a>
289
+ </div>
290
+ <div class="mt-6">
291
+ <p class="text-gray-400">Subscribe to our newsletter</p>
292
+ <div class="flex mt-2">
293
+ <input type="email" placeholder="Your email" class="px-4 py-2 rounded-l-md w-full text-gray-900">
294
+ <button class="bg-primary-500 text-white px-4 py-2 rounded-r-md hover:bg-primary-600 transition-colors">
295
+ <i data-feather="send" class="h-4 w-4"></i>
296
+ </button>
297
+ </div>
298
+ </div>
299
+ </div>
300
+ </div>
301
+ <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
302
+ <p class="text-gray-400 text-sm">© 2023 Python2APK Alchemist. All rights reserved.</p>
303
+ <div class="flex space-x-6 mt-4 md:mt-0">
304
+ <a href="#" class="text-gray-400 hover:text-white text-sm transition-colors">Privacy Policy</a>
305
+ <a href="#" class="text-gray-400 hover:text-white text-sm transition-colors">Terms of Service</a>
306
+ <a href="#" class="text-gray-400 hover:text-white text-sm transition-colors">Cookies</a>
307
+ </div>
308
+ </div>
309
+ </div>
310
+ </footer>
311
+
312
+ <script>
313
+ // Initialize Vanta.js background
314
+ VANTA.WAVES({
315
+ el: "#vanta-bg",
316
+ mouseControls: true,
317
+ touchControls: true,
318
+ gyroControls: false,
319
+ minHeight: 200.00,
320
+ minWidth: 200.00,
321
+ scale: 1.00,
322
+ scaleMobile: 1.00,
323
+ color: 0x10b981,
324
+ shininess: 40.00,
325
+ waveHeight: 10.00,
326
+ waveSpeed: 0.50,
327
+ zoom: 0.65
328
+ });
329
+
330
+ // Initialize Feather Icons
331
+ feather.replace();
332
+ </script>
333
+ </body>
334
  </html>