akhaliq HF Staff commited on
Commit
17e6cda
·
verified ·
1 Parent(s): 43ac787

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +216 -41
style.css CHANGED
@@ -1,76 +1,251 @@
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
  * {
 
 
2
  margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
  }
6
 
 
7
  body {
8
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
9
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
10
+ min-height: 100vh;
11
+ color: #333;
12
+ line-height: 1.6;
13
  }
14
 
15
+ .container {
16
+ max-width: 800px;
17
+ margin: 0 auto;
18
+ padding: 2rem;
19
+ min-height: 100vh;
20
+ display: flex;
21
+ flex-direction: column;
22
+ }
23
+
24
+ header {
25
+ text-align: center;
26
+ margin-bottom: 2rem;
27
+ }
28
+
29
+ h1 {
30
+ color: white;
31
+ font-size: 2.5rem;
32
+ margin-bottom: 0.5rem;
33
+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
34
+ }
35
+
36
+ header p {
37
+ color: rgba(255, 255, 255, 0.9);
38
+ font-size: 1.2rem;
39
+ }
40
+
41
+ main {
42
+ flex: 1;
43
+ background: white;
44
+ border-radius: 20px;
45
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
46
+ padding: 2rem;
47
+ }
48
+
49
+ .upload-section {
50
+ margin-bottom: 2rem;
51
  }
52
 
53
+ .upload-area {
54
+ border: 2px dashed #cbd5e0;
55
+ border-radius: 15px;
56
+ padding: 3rem;
57
+ text-align: center;
58
+ cursor: pointer;
59
+ transition: all 0.3s ease;
60
+ background: #f7fafc;
61
+ }
62
+
63
+ .upload-area:hover,
64
+ .upload-area.dragover {
65
+ border-color: #667eea;
66
+ background: #edf2f7;
67
+ }
68
+
69
+ .upload-content {
70
  display: flex;
71
  flex-direction: column;
 
72
  align-items: center;
73
+ gap: 1rem;
74
+ }
75
+
76
+ .upload-icon {
77
+ width: 48px;
78
+ height: 48px;
79
+ color: #667eea;
80
  }
81
 
82
+ .upload-area p {
83
+ color: #4a5568;
84
+ font-size: 1.1rem;
85
+ }
86
+
87
+ .upload-area span {
88
+ color: #667eea;
89
+ font-weight: 600;
90
+ }
91
+
92
+ .image-preview {
93
  position: relative;
94
+ display: inline-block;
95
+ margin: 0 auto;
96
+ }
97
 
98
+ .image-preview img {
 
99
  max-width: 100%;
100
+ max-height: 400px;
101
+ border-radius: 15px;
102
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
103
+ }
104
 
105
+ .remove-btn {
106
+ position: absolute;
107
+ top: -10px;
108
+ right: -10px;
109
+ width: 30px;
110
+ height: 30px;
111
+ border-radius: 50%;
112
+ background: #e53e3e;
113
+ color: white;
114
+ border: none;
115
+ font-size: 20px;
116
  cursor: pointer;
117
+ transition: transform 0.2s;
118
+ }
119
 
120
+ .remove-btn:hover {
121
+ transform: scale(1.1);
 
 
122
  }
123
 
124
+ .query-section {
125
+ margin-bottom: 2rem;
126
  }
127
 
128
+ .input-group {
129
+ display: flex;
130
+ gap: 0.5rem;
131
  }
132
 
133
+ #questionInput {
134
+ flex: 1;
135
+ padding: 0.75rem 1rem;
136
+ border: 1px solid #e2e8f0;
137
+ border-radius: 10px;
138
+ font-size: 1rem;
139
+ transition: border-color 0.3s;
140
+ }
141
+
142
+ #questionInput:focus {
143
+ outline: none;
144
+ border-color: #667eea;
145
+ }
146
+
147
+ #askBtn {
148
+ padding: 0.75rem 2rem;
149
+ background: #667eea;
150
+ color: white;
151
+ border: none;
152
+ border-radius: 10px;
153
+ font-size: 1rem;
154
  cursor: pointer;
155
+ transition: background-color 0.3s;
156
  }
157
 
158
+ #askBtn:hover:not(:disabled) {
159
+ background: #5a67d8;
160
  }
161
 
162
+ #askBtn:disabled {
163
+ background: #cbd5e0;
164
+ cursor: not-allowed;
165
+ }
166
+
167
+ .response-section h2 {
168
+ margin-bottom: 1rem;
169
+ color: #2d3748;
170
+ }
171
+
172
+ .response-content {
173
+ background: #f7fafc;
174
+ border-radius: 10px;
175
+ padding: 1.5rem;
176
+ min-height: 100px;
177
+ }
178
+
179
+ .loading {
180
+ display: flex;
181
+ flex-direction: column;
182
+ align-items: center;
183
+ gap: 1rem;
184
+ }
185
+
186
+ .spinner {
187
+ width: 40px;
188
+ height: 40px;
189
+ border: 4px solid #e2e8f0;
190
+ border-top-color: #667eea;
191
+ border-radius: 50%;
192
+ animation: spin 1s linear infinite;
193
+ }
194
+
195
+ @keyframes spin {
196
+ to { transform: rotate(360deg); }
197
+ }
198
+
199
+ .response-text {
200
+ color: #2d3748;
201
+ line-height: 1.8;
202
+ }
203
+
204
+ footer {
205
+ text-align: center;
206
+ margin-top: 2rem;
207
  }
208
 
209
+ footer p {
210
+ color: rgba(255, 255, 255, 0.8);
211
+ }
212
+
213
+ footer a {
214
  color: white;
215
+ text-decoration: none;
216
+ font-weight: 600;
217
+ }
218
+
219
+ footer a:hover {
220
+ text-decoration: underline;
221
+ }
222
+
223
+ @media (max-width: 600px) {
224
+ .container {
225
+ padding: 1rem;
226
+ }
227
+
228
+ h1 {
229
+ font-size: 2rem;
230
+ }
231
+
232
+ header p {
233
+ font-size: 1rem;
234
+ }
235
+
236
+ main {
237
+ padding: 1.5rem;
238
+ }
239
+
240
+ .upload-area {
241
+ padding: 2rem;
242
+ }
243
+
244
+ .input-group {
245
+ flex-direction: column;
246
+ }
247
+
248
+ #askBtn {
249
+ align-self: flex-end;
250
+ }
251
  }