-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
142 lines (122 loc) · 3.41 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>File Transfer App</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
body {
background-color: #f4f6f9;
font-family: 'Inter', sans-serif;
}
.container {
background-color: white;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
padding: 40px;
margin-top: 50px;
}
#dropArea {
border: 3px dashed #a0aec0;
border-radius: 10px;
padding: 50px;
text-align: center;
transition: all 0.3s ease;
cursor: pointer;
}
#dropArea.drag-over {
background-color: #e6f2ff;
border-color: #4299e1;
}
#dropArea.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.file-list {
max-height: 250px;
overflow-y: auto;
}
.file-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background-color: #f7fafc;
border-radius: 6px;
margin-bottom: 10px;
transition: all 0.3s ease;
}
.file-item:hover {
background-color: #edf2f7;
transform: translateX(5px);
}
.upload-progress {
height: 30px;
border-radius: 15px;
margin-top: 20px;
}
.btn-upload {
background: linear-gradient(135deg, #4299e1, #3182ce);
color: white;
transition: all 0.3s ease;
}
.file-item.uploading {
background-color: #e6f2ff;
border-left: 4px solid #4299e1;
}
.notification {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
transition: opacity 0.5s ease;
text-align: center;
}
.btn-upload:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn-cancel {
background-color: #e53e3e;
color: white;
}
</style>
</head>
<body>
<div class="container">
<h1 class="text-center mb-4">
<i class="fas fa-cloud-upload-alt text-primary mr-2"></i>Omic File Transfer
</h1>
<div id="dropArea">
<i class="fas fa-file-upload text-primary" style="font-size: 3rem;"></i>
<p class="text-muted mt-3">Drag and drop files here or click to select</p>
</div>
<input type="file" id="fileInput" multiple style="display:none;">
<div id="fileList" class="mt-3">
<h5>Files to Upload</h5>
<div id="fileListItems" class="file-list"></div>
</div>
<div class="upload-controls mt-3">
<button id="uploadButton" class="btn btn-upload btn-block" disabled>
<i class="fas fa-upload mr-2"></i>Upload
</button>
<div class="progress upload-progress mt-3">
<div id="uploadProgress" class="progress-bar" role="progressbar" style="width: 0%"></div>
</div>
<div id="uploadSpeed" class="text-center mt-2 text-muted">Upload Speed: 0 MB/s</div>
</div>
<div id="uploadedFilesSection" class="mt-4">
<h5>Uploaded Files</h5>
<ul id="uploadedFilesList" class="list-group"></ul>
</div>
<div class="text-center mt-4">
<button id="logoutButton" class="btn btn-outline-danger">
<i class="fas fa-sign-out-alt mr-2"></i>Logout
</button>
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>