WebashalarForML commited on
Commit
7df743a
·
verified ·
1 Parent(s): 75c7ef7

Create upload.html

Browse files
Files changed (1) hide show
  1. templates/upload.html +102 -0
templates/upload.html ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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">
6
+ <title>Upload Database</title>
7
+ <style>
8
+ /* Overall dark theme background */
9
+ body {
10
+ background-color: #1a1a2e;
11
+ color: #eaeaea;
12
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+ .container {
17
+ max-width: 800px;
18
+ margin: 0 auto;
19
+ padding: 20px;
20
+ }
21
+ header {
22
+ display: flex;
23
+ justify-content: space-between;
24
+ align-items: center;
25
+ margin-bottom: 20px;
26
+ }
27
+ h1 {
28
+ margin-bottom: 20px;
29
+ color: #eaeaea;
30
+ }
31
+ .upload-btn, .back-btn {
32
+ background-color: #007bff;
33
+ color: #fff;
34
+ padding: 8px 12px;
35
+ text-decoration: none;
36
+ border-radius: 5px;
37
+ }
38
+ .upload-btn:hover, .back-btn:hover {
39
+ background-color: #0056b3;
40
+ }
41
+ /* Form container styling */
42
+ .form-container {
43
+ background-color: #16213e;
44
+ border-radius: 8px;
45
+ padding: 20px;
46
+ }
47
+ .form-container h2 {
48
+ margin-top: 0;
49
+ }
50
+ /* Form elements styling */
51
+ .form-group {
52
+ margin-bottom: 15px;
53
+ }
54
+ .form-group label {
55
+ display: block;
56
+ margin-bottom: 5px;
57
+ }
58
+ .form-group input[type="file"] {
59
+ display: block;
60
+ padding: 8px;
61
+ border-radius: 5px;
62
+ border: 1px solid #ccc;
63
+ width: 100%;
64
+ background-color: #eaeaea;
65
+ color: #333;
66
+ }
67
+ .form-group button {
68
+ background-color: #007bff;
69
+ color: #fff;
70
+ padding: 10px 20px;
71
+ border: none;
72
+ border-radius: 5px;
73
+ cursor: pointer;
74
+ font-size: 1rem;
75
+ }
76
+ .form-group button:hover {
77
+ background-color: #0056b3;
78
+ }
79
+ </style>
80
+ </head>
81
+ <body>
82
+ <div class="container">
83
+ <header>
84
+ <h1>Upload Database</h1>
85
+ <!-- Optional: Back link to main chat page -->
86
+ <a href="/" class="back-btn">Back to Chat</a>
87
+ </header>
88
+ <div class="form-container">
89
+ <h2>Upload a SQLite DB file</h2>
90
+ <form method="POST" action="/upload" enctype="multipart/form-data">
91
+ <div class="form-group">
92
+ <label for="dbFile">Choose file:</label>
93
+ <input type="file" id="dbFile" name="file" accept=".db" required>
94
+ </div>
95
+ <div class="form-group">
96
+ <button type="submit">Upload</button>
97
+ </div>
98
+ </form>
99
+ </div>
100
+ </div>
101
+ </body>
102
+ </html>