Create templates/index.html
Browse files- templates/index.html +52 -0
templates/index.html
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Upload Project - AI Code Editor</title>
|
5 |
+
<style>
|
6 |
+
body {
|
7 |
+
font-family: Arial, sans-serif;
|
8 |
+
padding: 20px;
|
9 |
+
background-color: #f4f4f4;
|
10 |
+
}
|
11 |
+
h1 {
|
12 |
+
color: #333;
|
13 |
+
}
|
14 |
+
form {
|
15 |
+
background: #fff;
|
16 |
+
padding: 20px;
|
17 |
+
border-radius: 8px;
|
18 |
+
box-shadow: 0 0 10px #ccc;
|
19 |
+
max-width: 500px;
|
20 |
+
}
|
21 |
+
input[type="file"], input[type="submit"] {
|
22 |
+
margin-top: 10px;
|
23 |
+
padding: 10px;
|
24 |
+
font-size: 16px;
|
25 |
+
}
|
26 |
+
input[type="submit"] {
|
27 |
+
background-color: #4CAF50;
|
28 |
+
color: white;
|
29 |
+
border: none;
|
30 |
+
cursor: pointer;
|
31 |
+
}
|
32 |
+
input[type="submit"]:hover {
|
33 |
+
background-color: #45a049;
|
34 |
+
}
|
35 |
+
</style>
|
36 |
+
<script>
|
37 |
+
function showLoading() {
|
38 |
+
document.getElementById("loading").style.display = "block";
|
39 |
+
}
|
40 |
+
</script>
|
41 |
+
</head>
|
42 |
+
<body>
|
43 |
+
<h1>AI Project Code Editor</h1>
|
44 |
+
<form method="POST" enctype="multipart/form-data" onsubmit="showLoading()">
|
45 |
+
<input type="file" name="files" multiple>
|
46 |
+
<input type="submit" value="AI Understand Project">
|
47 |
+
</form>
|
48 |
+
<div id="loading" style="display:none; margin-top:20px;">
|
49 |
+
<p>Loading... Please wait while AI is processing your project.</p>
|
50 |
+
</div>
|
51 |
+
</body>
|
52 |
+
</html>
|