Fahd-B commited on
Commit
300b849
·
verified ·
1 Parent(s): cd98c4c

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +301 -41
style.css CHANGED
@@ -1,76 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  * {
2
- box-sizing: border-box;
3
- padding: 0;
4
  margin: 0;
5
- font-family: sans-serif;
 
6
  }
7
 
8
- html,
9
  body {
10
- height: 100%;
 
 
 
 
 
 
11
  }
12
 
13
- body {
14
- padding: 32px;
 
 
 
 
 
 
 
 
15
  }
16
 
17
- body,
18
- #container {
 
19
  display: flex;
20
  flex-direction: column;
21
- justify-content: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  align-items: center;
 
 
 
23
  }
24
 
25
- #container {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  position: relative;
27
- gap: 0.4rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- width: 640px;
30
- height: 640px;
31
  max-width: 100%;
32
- max-height: 100%;
 
 
 
33
 
34
- border: 2px dashed #D1D5DB;
35
- border-radius: 0.75rem;
36
- overflow: hidden;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  cursor: pointer;
38
- margin: 1rem;
 
 
 
 
 
39
 
40
- background-size: 100% 100%;
41
- background-position: center;
42
- background-repeat: no-repeat;
 
 
43
  font-size: 18px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
 
46
- #upload {
 
 
 
 
 
 
47
  display: none;
48
  }
49
 
50
- svg {
51
- pointer-events: none;
 
52
  }
53
 
54
- #example {
55
- font-size: 14px;
56
- text-decoration: underline;
57
- cursor: pointer;
 
 
 
 
58
  }
59
 
60
- #example:hover {
61
- color: #2563EB;
 
 
 
 
 
 
62
  }
63
 
64
- .bounding-box {
65
- position: absolute;
66
- box-sizing: border-box;
67
- border: solid 2px;
 
 
 
 
 
 
68
  }
69
 
70
- .bounding-box-label {
71
- color: white;
 
 
 
 
72
  position: absolute;
73
- font-size: 12px;
74
- margin: -16px 0 0 -2px;
75
- padding: 1px;
76
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
2
+
3
+ :root {
4
+ --primary-color: #007BFF;
5
+ --secondary-color: #F0F2F5;
6
+ --text-color: #333;
7
+ --light-text-color: #888;
8
+ --border-color: #E0E0E0;
9
+ --white-color: #FFF;
10
+ --error-color: #FF3B30;
11
+ --success-color: #34C759;
12
+ }
13
+
14
  * {
 
 
15
  margin: 0;
16
+ padding: 0;
17
+ box-sizing: border-box;
18
  }
19
 
 
20
  body {
21
+ font-family: 'Poppins', sans-serif;
22
+ background-color: var(--secondary-color);
23
+ color: var(--text-color);
24
+ display: flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ min-height: 100vh;
28
  }
29
 
30
+ .container {
31
+ display: flex;
32
+ width: 90vw;
33
+ max-width: 1200px;
34
+ min-width: 800px;
35
+ height: 80vh;
36
+ background-color: var(--white-color);
37
+ border-radius: 20px;
38
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
39
+ overflow: hidden;
40
  }
41
 
42
+ .left-panel,
43
+ .right-panel {
44
+ padding: 40px;
45
  display: flex;
46
  flex-direction: column;
47
+ }
48
+
49
+ .left-panel {
50
+ width: 40%;
51
+ border-right: 1px solid var(--border-color);
52
+ }
53
+
54
+ .right-panel {
55
+ width: 60%;
56
+ background-color: #F7F9FC;
57
+ position: relative;
58
+ }
59
+
60
+ .header h1 {
61
+ font-size: 28px;
62
+ font-weight: 600;
63
+ }
64
+
65
+ .header p {
66
+ color: var(--light-text-color);
67
+ margin-top: 5px;
68
+ }
69
+
70
+ .upload-section {
71
+ margin-top: 15px;
72
+ }
73
+
74
+ .info-section {
75
+ margin-top: 15px;
76
+ padding: 15px;
77
+ background-color: var(--secondary-color);
78
+ border-radius: 10px;
79
+ border: 1px solid var(--border-color);
80
+ }
81
+
82
+ .info-header {
83
+ display: flex;
84
  align-items: center;
85
+ margin-bottom: 10px;
86
+ font-weight: 600;
87
+ color: var(--primary-color);
88
  }
89
 
90
+ .info-header i {
91
+ margin-right: 8px;
92
+ font-size: 18px;
93
+ }
94
+
95
+ .info-content {
96
+ font-size: 14px;
97
+ color: var(--text-color);
98
+ }
99
+
100
+ .info-content p {
101
+ margin-bottom: 8px;
102
+ display: flex;
103
+ align-items: flex-start;
104
+ }
105
+
106
+ .info-content i {
107
+ margin-right: 8px;
108
+ margin-top: 3px;
109
+ font-size: 14px;
110
+ color: var(--primary-color);
111
+ }
112
+
113
+ .upload-label {
114
+ border: 2px dashed var(--border-color);
115
+ border-radius: 10px;
116
+ display: flex;
117
+ flex-direction: column;
118
+ justify-content: center;
119
+ align-items: center;
120
+ height: 120px;
121
+ cursor: pointer;
122
+ transition: all 0.3s;
123
  position: relative;
124
+ }
125
+
126
+ .upload-label:hover {
127
+ background-color: #f8f9fa;
128
+ border-color: var(--primary-color);
129
+ }
130
+
131
+ .upload-label.highlight {
132
+ background-color: #e7f3ff;
133
+ border-color: var(--primary-color);
134
+ }
135
+
136
+ .upload-label i {
137
+ font-size: 32px;
138
+ color: var(--primary-color);
139
+ }
140
+
141
+ .upload-label span {
142
+ margin-top: 12px;
143
+ color: var(--light-text-color);
144
+ }
145
+
146
+ #file-upload {
147
+ display: none;
148
+ }
149
+
150
+ #image-preview {
151
+ margin-top: 20px;
152
+ margin-bottom: 20px;
153
+ text-align: center;
154
+ }
155
 
156
+ #image-preview img {
 
157
  max-width: 100%;
158
+ max-height: 500px;
159
+ object-fit: contain;
160
+ border-radius: 10px;
161
+ }
162
 
163
+ .labels-section {
164
+ margin-top: 30px;
165
+ }
166
+
167
+ .labels-section label {
168
+ font-weight: 600;
169
+ display: block;
170
+ margin-bottom: 10px;
171
+ }
172
+
173
+ .input-wrapper {
174
+ display: flex;
175
+ align-items: center;
176
+ background-color: var(--secondary-color);
177
+ border-radius: 10px;
178
+ padding: 5px;
179
+ }
180
+
181
+ #labels-input {
182
+ flex-grow: 1;
183
+ border: none;
184
+ background-color: transparent;
185
+ padding: 10px;
186
+ font-size: 16px;
187
+ font-family: Poppins, sans-serif;
188
+ outline: none;
189
+ }
190
+
191
+ #classify-btn {
192
+ background-color: var(--primary-color);
193
+ color: var(--white-color);
194
+ border: none;
195
+ border-radius: 8px;
196
  cursor: pointer;
197
+ font-size: 16px;
198
+ display: flex;
199
+ justify-content: center;
200
+ align-items: center;
201
+ transition: background-color 0.3s;
202
+ padding: 12px 20px;
203
 
204
+ }
205
+
206
+ #classify-btn {
207
+ width: 40px;
208
+ height: 40px;
209
  font-size: 18px;
210
+ padding: 0;
211
+ }
212
+
213
+ #classify-btn:hover {
214
+ background-color: #0056b3;
215
+ }
216
+
217
+ #results-container {
218
+ flex-grow: 1;
219
+ display: flex;
220
+ flex-direction: column;
221
+ justify-content: flex-start;
222
+ align-items: center;
223
+ overflow-y: auto;
224
+ margin-bottom: 20px;
225
+ }
226
+
227
+
228
+ #results-container .result {
229
+ display: flex;
230
+ justify-content: space-between;
231
+ align-items: center;
232
+ width: 100%;
233
+ padding: 12px 15px;
234
+ background-color: var(--white-color);
235
+ border-radius: 8px;
236
+ margin-bottom: 10px;
237
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
238
+ }
239
+
240
+ .result span:first-child {
241
+ font-weight: 500;
242
+ font-size: 15px;
243
+ }
244
+
245
+ .result span:last-child {
246
+ font-weight: 500;
247
+ font-size: 15px;
248
+ color: var(--primary-color);
249
+ background-color: #E7F3FF;
250
+ padding: 5px 10px;
251
+ border-radius: 5px;
252
+ }
253
+
254
+ #status-indicator {
255
+ display: flex;
256
+ align-items: center;
257
+ justify-content: center;
258
+ height: 30px;
259
+ margin-top: 20px;
260
  }
261
 
262
+ .spinner {
263
+ border: 3px solid #f3f3f3;
264
+ border-top: 3px solid var(--primary-color);
265
+ border-radius: 50%;
266
+ width: 20px;
267
+ height: 20px;
268
+ animation: spin 1s linear infinite;
269
  display: none;
270
  }
271
 
272
+ #status-text {
273
+ margin-left: 10px;
274
+ color: var(--light-text-color);
275
  }
276
 
277
+ @keyframes spin {
278
+ 0% {
279
+ transform: rotate(0deg);
280
+ }
281
+
282
+ 100% {
283
+ transform: rotate(360deg);
284
+ }
285
  }
286
 
287
+ .placeholder {
288
+ display: flex;
289
+ flex-direction: column;
290
+ justify-content: center;
291
+ align-items: center;
292
+ height: 100%;
293
+ text-align: center;
294
+ color: var(--light-text-color);
295
  }
296
 
297
+ .placeholder i {
298
+ font-size: 50px;
299
+ color: var(--border-color);
300
+ }
301
+
302
+ .placeholder h2 {
303
+ margin-top: 20px;
304
+ font-size: 20px;
305
+ font-weight: 600;
306
+ color: var(--text-color);
307
  }
308
 
309
+ .placeholder p {
310
+ margin-top: 10px;
311
+ font-size: 16px;
312
+ }
313
+
314
+ .comparison-link-section {
315
  position: absolute;
316
+ top: 20px;
317
+ right: 40px;
318
+ }
319
+
320
+ .comparison-link {
321
+ display: flex;
322
+ align-items: center;
323
+ text-decoration: none;
324
+ color: var(--primary-color);
325
+ font-weight: 600;
326
+ font-size: 15px;
327
+ transition: color 0.3s;
328
+ }
329
+
330
+ .comparison-link:hover {
331
+ color: #0056b3;
332
+ }
333
+
334
+ .comparison-link i {
335
+ margin-left: 8px;
336
+ }