Spaces:
Running
Running
Create index.html
Browse files- templates/index.html +31 -0
templates/index.html
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Python Parser</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
</head>
|
9 |
+
<body class="bg-gray-100 min-h-screen flex items-center justify-center">
|
10 |
+
<div class="bg-white p-8 rounded-lg shadow-lg max-w-2xl w-full">
|
11 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-6 text-center">Python Code Parser</h1>
|
12 |
+
|
13 |
+
<!-- File Upload -->
|
14 |
+
<form method="post" enctype="multipart/form-data" class="space-y-6">
|
15 |
+
<div>
|
16 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Upload a Python File</label>
|
17 |
+
<input type="file" name="file" accept=".py" class="w-full p-2 border rounded-lg focus:ring-2 focus:ring-blue-500">
|
18 |
+
</div>
|
19 |
+
|
20 |
+
<!-- Paste Code -->
|
21 |
+
<div>
|
22 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Or Paste Your Code</label>
|
23 |
+
<textarea name="code" rows="6" class="w-full p-2 border rounded-lg focus:ring-2 focus:ring-blue-500" placeholder="Paste Python code here..."></textarea>
|
24 |
+
<input type="text" name="filename" class="mt-2 w-full p-2 border rounded-lg" placeholder="Enter filename (e.g., script.py)">
|
25 |
+
</div>
|
26 |
+
|
27 |
+
<button type="submit" class="w-full bg-blue-600 text-white p-2 rounded-lg hover:bg-blue-700 transition">Parse</button>
|
28 |
+
</form>
|
29 |
+
</div>
|
30 |
+
</body>
|
31 |
+
</html>
|