NavyaNayer commited on
Commit
a366240
·
verified ·
1 Parent(s): 73bdac5

Delete task_css.py

Browse files
Files changed (1) hide show
  1. task_css.py +0 -458
task_css.py DELETED
@@ -1,458 +0,0 @@
1
- def get_custom_css():
2
- return """
3
- <style>
4
- :root {
5
- /* Refined Color Palette */
6
- --primary-blue: #3B82F6; /* Vibrant Blue */
7
- --primary-dark: #1E40AF; /* Deeper Blue */
8
- --accent-teal: #0EA5E9; /* Bright Teal */
9
- --background-light: #F9FAFB; /* Soft White */
10
- --text-dark: #1E293B; /* Deep Navy */
11
- --text-medium: #475569; /* Medium Slate */
12
- --accent-orange: #F97316; /* Warm Orange */
13
- --success-green: #10B981; /* Emerald Green */
14
- --warning-yellow: #FBBF24; /* Amber Yellow */
15
- --error-red: #EF4444; /* Cherry Red */
16
-
17
- /* Refined Gradients */
18
- --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
19
- --gradient-accent: linear-gradient(135deg, var(--accent-teal), #38BDF8);
20
- --gradient-warm: linear-gradient(135deg, var(--accent-orange), #FB923C);
21
- }
22
-
23
- /* Global Reset with Professional Typography */
24
- body, .stApp {
25
- font-family: 'Inter', system-ui, -apple-system, sans-serif;
26
- background-color: var(--background-light) !important;
27
- color: var(--text-dark);
28
- line-height: 1.6;
29
- letter-spacing: -0.011em;
30
- }
31
-
32
- /* App Container with Refined Depth */
33
- [data-testid="stAppViewContainer"] {
34
- background-color: var(--background-light) !important;
35
- max-width: 1100px;
36
- margin: 0 auto;
37
- padding: 2.5rem;
38
- border-radius: 16px;
39
- box-shadow:
40
- 0 20px 25px -5px rgba(59, 130, 246, 0.1),
41
- 0 10px 10px -5px rgba(59, 130, 246, 0.04),
42
- inset 0 1px 0 rgba(255, 255, 255, 0.8);
43
- transition: all 0.3s ease;
44
- }
45
-
46
- /* Professional Header */
47
- .main-header {
48
- display: flex;
49
- align-items: center;
50
- justify-content: center;
51
- margin-bottom: 2rem;
52
- color: var(--primary-blue);
53
- font-size: 2rem;
54
- font-weight: 700;
55
- letter-spacing: -0.03em;
56
- }
57
-
58
- .main-header::before {
59
-
60
- margin-right: 15px;
61
- font-size: 2.2rem;
62
- transition: transform 0.3s ease;
63
- }
64
-
65
- .main-title:hover::before {
66
- transform: scale(1.1) rotate(5deg);
67
- }
68
-
69
- /* Professional Card Sections */
70
- .emotion-analysis, .task-input {
71
- background-color: white;
72
- border-radius: 12px;
73
- padding: 1.8rem;
74
- box-shadow:
75
- 0 4px 6px -1px rgba(59, 130, 246, 0.1),
76
- 0 2px 4px -1px rgba(59, 130, 246, 0.06);
77
- margin-bottom: 1.5rem;
78
- transition: all 0.2s ease;
79
- border-top: 3px solid var(--primary-blue);
80
- }
81
-
82
- .emotion-analysis:hover, .task-input:hover {
83
- transform: translateY(-3px);
84
- box-shadow:
85
- 0 10px 15px -3px rgba(59, 130, 246, 0.1),
86
- 0 4px 6px -2px rgba(59, 130, 246, 0.05);
87
- }
88
-
89
- /* Section Headers */
90
- .stMarkdown h3 {
91
- color: var(--primary-blue);
92
- font-weight: 600;
93
- font-size: 1.3rem;
94
- margin-bottom: 1rem;
95
- letter-spacing: -0.01em;
96
- border-bottom: 1px solid rgba(59, 130, 246, 0.2);
97
- padding-bottom: 0.5rem;
98
- }
99
-
100
- /* Polished Input Elements */
101
- .stTextArea textarea,
102
- .stTextInput>div>div>input {
103
- border: 1px solid rgba(59, 130, 246, 0.3) !important;
104
- border-radius: 8px !important;
105
- padding: 12px 14px !important;
106
- background-color: white !important;
107
- color: var(--text-dark) !important;
108
- font-weight: 400;
109
- transition: all 0.2s ease !important;
110
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
111
- }
112
-
113
- .stTextArea textarea:focus,
114
- .stTextInput>div>div>input:focus {
115
- border-color: var(--primary-blue) !important;
116
- box-shadow:
117
- 0 0 0 3px rgba(59, 130, 246, 0.15) !important,
118
- 0 1px 2px rgba(0, 0, 0, 0.05) !important;
119
- outline: none !important;
120
- }
121
-
122
- /* Contextual Badges */
123
- .emotion-badge {
124
- background: var(--gradient-accent);
125
- color: white !important;
126
- border-radius: 6px;
127
- padding: 8px 12px;
128
- font-weight: 600;
129
- display: inline-block;
130
- margin-top: 10px;
131
- box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
132
- }
133
-
134
- .warning-badge {
135
- background: var(--gradient-warm);
136
- color: white !important;
137
- border-radius: 6px;
138
- padding: 8px 12px;
139
- font-weight: 600;
140
- display: inline-block;
141
- box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
142
- }
143
-
144
- /* Professional Button */
145
- .stButton>button {
146
- background: var(--gradient-primary) !important;
147
- color: white !important;
148
- border: none !important;
149
- border-radius: 8px !important;
150
- padding: 10px 20px !important;
151
- font-weight: 600;
152
- font-size: 0.9rem;
153
- letter-spacing: 0.02em;
154
- transition: all 0.2s ease !important;
155
- box-shadow:
156
- 0 4px 6px -1px rgba(59, 130, 246, 0.2),
157
- 0 2px 4px -1px rgba(59, 130, 246, 0.1);
158
- }
159
-
160
- .stButton>button:hover {
161
- transform: translateY(-2px);
162
- box-shadow:
163
- 0 6px 10px -1px rgba(59, 130, 246, 0.25),
164
- 0 4px 6px -1px rgba(59, 130, 246, 0.15);
165
- }
166
-
167
- .stButton>button:active {
168
- transform: translateY(0);
169
- box-shadow:
170
- 0 2px 4px -1px rgba(59, 130, 246, 0.2),
171
- 0 1px 2px -1px rgba(59, 130, 246, 0.1);
172
- }
173
-
174
- /* Improved Slider */
175
- .stSlider {
176
- margin-top: 12px;
177
- }
178
-
179
- .stSlider > div > div > div {
180
- background-color: #CBD5E1 !important;
181
- height: 6px !important;
182
- border-radius: 3px !important;
183
- }
184
-
185
- .stSlider > div > div > div > div {
186
- background: var(--primary-blue) !important;
187
- box-shadow: 0 0 0 2px white, 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
188
- width: 18px !important;
189
- height: 18px !important;
190
- border-radius: 50% !important;
191
- transition: transform 0.2s ease !important;
192
- }
193
-
194
- .stSlider > div > div > div > div:hover {
195
- transform: scale(1.15) !important;
196
- }
197
-
198
- /* Progress Bar */
199
- .stProgress > div > div > div {
200
- background-color: var(--primary-blue) !important;
201
- border-radius: 4px !important;
202
- }
203
-
204
- /* Select Boxes */
205
- .stSelectbox label {
206
- color: var(--text-medium) !important;
207
- font-weight: 500 !important;
208
- }
209
-
210
- .stSelectbox > div > div > div {
211
- background-color: white !important;
212
- border: 1px solid rgba(59, 130, 246, 0.3) !important;
213
- border-radius: 8px !important;
214
- padding: 4px 8px !important;
215
- }
216
-
217
- /* Checkbox */
218
- .stCheckbox label {
219
- color: var(--text-medium) !important;
220
- font-size: 0.95rem !important;
221
- }
222
-
223
- /* Tabs */
224
- .stTabs [data-baseweb="tab-list"] {
225
- gap: 2px;
226
- background-color: rgba(59, 130, 246, 0.1) !important;
227
- border-radius: 8px !important;
228
- padding: 2px !important;
229
- }
230
-
231
- .stTabs [data-baseweb="tab"] {
232
- background-color: transparent !important;
233
- border-radius: 6px !important;
234
- padding: 8px 16px !important;
235
- border: none !important;
236
- color: var(--text-medium) !important;
237
- font-weight: 500 !important;
238
- transition: all 0.2s ease !important;
239
- }
240
-
241
- .stTabs [aria-selected="true"] {
242
- background-color: white !important;
243
- color: var(--primary-blue) !important;
244
- font-weight: 600 !important;
245
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
246
- }
247
-
248
- /* Info Boxes */
249
- .info-box {
250
- background-color: rgba(14, 165, 233, 0.1);
251
- border-left: 3px solid var(--accent-teal);
252
- border-radius: 6px;
253
- padding: 15px;
254
- margin: 15px 0;
255
- color: var(--text-dark);
256
- }
257
-
258
- .success-box {
259
- background-color: rgba(16, 185, 129, 0.1);
260
- border-left: 3px solid var(--success-green);
261
- border-radius: 6px;
262
- padding: 15px;
263
- margin: 15px 0;
264
- }
265
-
266
- .warning-box {
267
- background-color: rgba(251, 191, 36, 0.1);
268
- border-left: 3px solid var(--warning-yellow);
269
- border-radius: 6px;
270
- padding: 15px;
271
- margin: 15px 0;
272
- }
273
-
274
- .error-box {
275
- background-color: rgba(239, 68, 68, 0.1);
276
- border-left: 3px solid var(--error-red);
277
- border-radius: 6px;
278
- padding: 15px;
279
- margin: 15px 0;
280
- }
281
-
282
- /* Data Elements */
283
- .metric-card {
284
- background-color: white;
285
- border-radius: 10px;
286
- padding: 20px;
287
- display: flex;
288
- flex-direction: column;
289
- align-items: center;
290
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
291
- border-top: 3px solid var(--primary-blue);
292
- }
293
-
294
- .metric-value {
295
- font-size: 2rem;
296
- font-weight: 700;
297
- color: var(--primary-blue);
298
- }
299
-
300
- .metric-label {
301
- font-size: 0.9rem;
302
- color: var(--text-medium);
303
- margin-top: 5px;
304
- }
305
-
306
- /* Action Menu */
307
- .action-menu {
308
- position: relative;
309
- display: inline-block;
310
- }
311
-
312
- .action-menu-content {
313
- display: none;
314
- position: absolute;
315
- right: 0;
316
- background-color: white;
317
- min-width: 120px;
318
- box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
319
- z-index: 1;
320
- border-radius: 8px;
321
- overflow: hidden;
322
- }
323
-
324
- .action-menu-content a {
325
- color: var(--text-dark);
326
- padding: 12px 16px;
327
- text-decoration: none;
328
- display: block;
329
- transition: background-color 0.2s ease;
330
- }
331
-
332
- .action-menu-content a:hover {
333
- background-color: var(--primary-blue);
334
- color: white;
335
- }
336
-
337
- .action-menu:hover .action-menu-content {
338
- display: block;
339
- }
340
-
341
- .action-menu .three-dots {
342
- cursor: pointer;
343
- font-size: 1.5rem;
344
- color: var(--text-medium);
345
- }
346
-
347
- /* Task Content Styling */
348
- .task-content {
349
- flex: 1;
350
- padding-right: 20px;
351
- }
352
-
353
- .task-header {
354
- display: flex;
355
- justify-content: space-between;
356
- align-items: center;
357
- margin-bottom: 8px;
358
- }
359
-
360
- .task-title {
361
- font-weight: 600;
362
- color: var(--text-dark);
363
- font-size: 1rem;
364
- }
365
-
366
- .priority-score {
367
- background: var(--gradient-primary);
368
- color: white;
369
- padding: 4px 8px;
370
- border-radius: 4px;
371
- font-size: 0.85rem;
372
- font-weight: 600;
373
- }
374
-
375
- .task-details {
376
- display: flex;
377
- gap: 16px;
378
- }
379
-
380
- .task-stat {
381
- color: var(--text-medium);
382
- font-size: 0.9rem;
383
- }
384
-
385
- /* Priority Task List */
386
- .priority-task {
387
- display: flex;
388
- justify-content: space-between;
389
- align-items: center;
390
- padding: 15px;
391
- border-radius: 8px;
392
- margin-bottom: 8px;
393
- background-color: white;
394
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
395
- }
396
-
397
- .high-priority {
398
- border-left: 4px solid var(--error-red);
399
- }
400
-
401
- .medium-priority {
402
- border-left: 4px solid var(--warning-yellow);
403
- }
404
-
405
- /* Responsive Design */
406
- @media (max-width: 768px) {
407
- [data-testid="stAppViewContainer"] {
408
- padding: 1.2rem;
409
- border-radius: 12px;
410
- }
411
-
412
- .main-title {
413
- font-size: 1.8rem;
414
- }
415
-
416
- .emotion-analysis, .task-input {
417
- padding: 1.2rem;
418
- }
419
-
420
- .metric-value {
421
- font-size: 1.6rem;
422
- }
423
- }
424
-
425
- /* Loading Spinner */
426
- .loading-container {
427
- display: flex;
428
- flex-direction: column;
429
- align-items: center;
430
- justify-content: center;
431
- height: 60vh;
432
- }
433
-
434
- .loading-spinner {
435
- width: 50px;
436
- height: 50px;
437
- border: 5px solid #f3f3f3;
438
- border-top: 5px solid var(--primary-blue);
439
- border-radius: 50%;
440
- animation: spin 1s linear infinite;
441
- margin-bottom: 20px;
442
- }
443
-
444
- @keyframes spin {
445
- 0% { transform: rotate(0deg); }
446
- 100% { transform: rotate(360deg); }
447
- }
448
-
449
- /* Status Messages */
450
- .status-message {
451
- background: white;
452
- padding: 10px 15px;
453
- border-radius: 8px;
454
- margin: 5px 0;
455
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
456
- }
457
- </style>
458
- """