akhaliq HF Staff commited on
Commit
c1c1ad1
·
verified ·
1 Parent(s): e9d3310

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +205 -45
style.css CHANGED
@@ -1,76 +1,236 @@
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, sans-serif;
9
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
10
+ min-height: 100vh;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ padding: 20px;
15
  }
16
 
17
+ .container {
18
+ width: 100%;
19
+ max-width: 800px;
20
+ background: white;
21
+ border-radius: 20px;
22
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
23
+ overflow: hidden;
24
+ position: relative;
25
+ }
26
+
27
+ header {
28
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
29
+ color: white;
30
+ padding: 25px;
31
+ text-align: center;
32
+ }
33
+
34
+ header h1 {
35
+ font-size: 28px;
36
+ margin-bottom: 5px;
37
+ }
38
+
39
+ header p {
40
+ opacity: 0.9;
41
+ font-size: 14px;
42
  }
43
 
44
+ .chat-container {
 
45
  display: flex;
46
  flex-direction: column;
47
+ height: 500px;
 
48
  }
49
 
50
+ .chat-messages {
51
+ flex: 1;
52
+ overflow-y: auto;
53
+ padding: 20px;
54
+ background: #f8f9fa;
55
+ }
56
 
57
+ .message {
58
+ display: flex;
59
+ margin-bottom: 15px;
60
+ animation: fadeIn 0.3s ease-in;
61
+ }
62
 
63
+ @keyframes fadeIn {
64
+ from {
65
+ opacity: 0;
66
+ transform: translateY(10px);
67
+ }
68
+ to {
69
+ opacity: 1;
70
+ transform: translateY(0);
71
+ }
72
+ }
73
 
74
+ .message.user {
75
+ justify-content: flex-end;
 
 
76
  }
77
 
78
+ .message.assistant {
79
+ justify-content: flex-start;
80
  }
81
 
82
+ .message-content {
83
+ max-width: 70%;
84
+ padding: 12px 16px;
85
+ border-radius: 18px;
86
+ word-wrap: break-word;
87
+ line-height: 1.4;
88
  }
89
 
90
+ .message.user .message-content {
91
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
92
+ color: white;
93
+ border-bottom-right-radius: 4px;
94
  }
95
 
96
+ .message.assistant .message-content {
97
+ background: white;
98
+ color: #333;
99
+ border-bottom-left-radius: 4px;
100
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
101
  }
102
 
103
+ .input-container {
104
+ display: flex;
105
+ padding: 20px;
106
+ background: white;
107
+ border-top: 1px solid #e0e0e0;
108
+ gap: 10px;
109
  }
110
 
111
+ #userInput {
112
+ flex: 1;
113
+ padding: 12px 16px;
114
+ border: 2px solid #e0e0e0;
115
+ border-radius: 25px;
116
+ font-size: 16px;
117
+ outline: none;
118
+ transition: border-color 0.3s;
119
+ }
120
+
121
+ #userInput:focus {
122
+ border-color: #667eea;
123
+ }
124
+
125
+ #userInput:disabled {
126
+ background: #f5f5f5;
127
+ cursor: not-allowed;
128
+ }
129
+
130
+ #sendButton {
131
+ width: 50px;
132
+ height: 50px;
133
+ border-radius: 50%;
134
+ border: none;
135
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
136
  color: white;
137
+ cursor: pointer;
138
+ display: flex;
139
+ align-items: center;
140
+ justify-content: center;
141
+ transition: transform 0.2s, opacity 0.2s;
142
+ }
143
+
144
+ #sendButton:hover:not(:disabled) {
145
+ transform: scale(1.05);
146
+ }
147
+
148
+ #sendButton:disabled {
149
+ opacity: 0.5;
150
+ cursor: not-allowed;
151
+ }
152
+
153
+ .loading-indicator {
154
  position: absolute;
155
+ top: 50%;
156
+ left: 50%;
157
+ transform: translate(-50%, -50%);
158
+ text-align: center;
159
+ background: white;
160
+ padding: 30px;
161
+ border-radius: 15px;
162
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
163
+ z-index: 10;
164
+ }
165
+
166
+ .spinner {
167
+ width: 50px;
168
+ height: 50px;
169
+ border: 4px solid #f3f3f3;
170
+ border-top: 4px solid #667eea;
171
+ border-radius: 50%;
172
+ animation: spin 1s linear infinite;
173
+ margin: 0 auto 15px;
174
+ }
175
+
176
+ @keyframes spin {
177
+ 0% { transform: rotate(0deg); }
178
+ 100% { transform: rotate(360deg); }
179
+ }
180
+
181
+ .typing-indicator {
182
+ display: inline-flex;
183
+ gap: 4px;
184
+ }
185
+
186
+ .typing-indicator span {
187
+ width: 8px;
188
+ height: 8px;
189
+ background: #667eea;
190
+ border-radius: 50%;
191
+ animation: typing 1.4s infinite;
192
+ }
193
+
194
+ .typing-indicator span:nth-child(2) {
195
+ animation-delay: 0.2s;
196
+ }
197
+
198
+ .typing-indicator span:nth-child(3) {
199
+ animation-delay: 0.4s;
200
+ }
201
+
202
+ @keyframes typing {
203
+ 0%, 60%, 100% {
204
+ transform: translateY(0);
205
+ opacity: 0.5;
206
+ }
207
+ 30% {
208
+ transform: translateY(-10px);
209
+ opacity: 1;
210
+ }
211
+ }
212
+
213
+ .error-message {
214
+ color: #d32f2f;
215
+ font-size: 16px;
216
+ }
217
+
218
+ @media (max-width: 600px) {
219
+ .container {
220
+ border-radius: 0;
221
+ height: 100vh;
222
+ max-width: 100%;
223
+ }
224
+
225
+ .chat-container {
226
+ height: calc(100vh - 120px);
227
+ }
228
+
229
+ .message-content {
230
+ max-width: 85%;
231
+ }
232
+
233
+ header h1 {
234
+ font-size: 24px;
235
+ }
236
  }