-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathindex.css
More file actions
423 lines (364 loc) · 9.63 KB
/
index.css
File metadata and controls
423 lines (364 loc) · 9.63 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
/* SkillHub — 浅色主题 (indigo-violet brand) */
--background: 210 20% 98%;
--foreground: 220 26% 14%;
--card: 0 0% 100%;
--card-foreground: 220 26% 14%;
--popover: 0 0% 100%;
--popover-foreground: 220 26% 14%;
/* Indigo primary (#6A6DFF) */
--primary: 239 100% 71%;
--primary-foreground: 0 0% 100%;
/* Surface tones */
--secondary: 210 30% 96%;
--secondary-foreground: 220 26% 14%;
--muted: 210 25% 95%;
--muted-foreground: 215 14% 46%;
/* Violet accent (#B85EFF) */
--accent: 271 100% 68%;
--accent-foreground: 0 0% 100%;
--destructive: 0 72% 55%;
--destructive-foreground: 0 0% 100%;
--border: 214 32% 91%;
--input: 214 32% 91%;
--ring: 239 100% 71%;
--radius: 0.75rem;
/* Extended palette */
--surface-glass: 210 30% 97%;
--glow-primary: 239 100% 71%;
--glow-accent: 271 100% 68%;
--success: 160 60% 45%;
--warning: 38 92% 58%;
/* Brand */
--brand-start: #6A6DFF;
--brand-end: #B85EFF;
--brand-gradient: linear-gradient(135deg, #6A6DFF 0%, #B85EFF 100%);
/* Text semantic */
--text-secondary: 215 19% 35%;
--text-muted: 215 14% 46%;
--text-placeholder: 213 12% 63%;
/* Border semantic */
--border-card: 220 26% 94%;
}
.dark {
/* Dark theme (preserved, not default) */
--background: 222 47% 6%;
--foreground: 210 40% 96%;
--card: 222 40% 9%;
--card-foreground: 210 40% 96%;
--popover: 222 40% 9%;
--popover-foreground: 210 40% 96%;
--primary: 239 100% 75%;
--primary-foreground: 222 47% 6%;
--secondary: 222 30% 13%;
--secondary-foreground: 210 30% 85%;
--muted: 222 25% 15%;
--muted-foreground: 215 20% 55%;
--accent: 271 100% 72%;
--accent-foreground: 0 0% 100%;
--destructive: 0 72% 55%;
--destructive-foreground: 0 0% 100%;
--border: 222 20% 18%;
--input: 222 20% 18%;
--ring: 239 100% 75%;
--surface-glass: 222 35% 11%;
--glow-primary: 239 100% 75%;
--glow-accent: 271 100% 72%;
}
}
@layer base {
* {
@apply border-border;
}
html {
scroll-behavior: smooth;
}
body {
@apply bg-background text-foreground antialiased;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Syne', 'IBM Plex Sans', system-ui, sans-serif;
}
code, pre, kbd {
font-family: 'JetBrains Mono', ui-monospace, monospace;
}
/* Hide browser-native password reveal button (conflicts with custom toggle) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button {
display: none;
}
}
/* ─── Dot-grid background texture ─── */
.bg-dots {
background-image: radial-gradient(circle, hsl(var(--muted-foreground) / 0.12) 1px, transparent 1px);
background-size: 24px 24px;
}
/* ─── Gradient glow orbs ─── */
.glow-orb-primary {
position: fixed;
width: 600px;
height: 600px;
border-radius: 50%;
background: radial-gradient(circle, hsl(var(--glow-primary) / 0.08) 0%, transparent 70%);
pointer-events: none;
z-index: 0;
}
.glow-orb-accent {
position: fixed;
width: 500px;
height: 500px;
border-radius: 50%;
background: radial-gradient(circle, hsl(var(--glow-accent) / 0.06) 0%, transparent 70%);
pointer-events: none;
z-index: 0;
}
/* ─── Glass morphism ─── */
.glass {
background: hsl(var(--surface-glass) / 0.7);
backdrop-filter: blur(16px) saturate(1.4);
-webkit-backdrop-filter: blur(16px) saturate(1.4);
border: 1px solid hsl(var(--border) / 0.5);
}
.glass-strong {
background: hsl(var(--surface-glass) / 0.85);
backdrop-filter: blur(24px) saturate(1.6);
-webkit-backdrop-filter: blur(24px) saturate(1.6);
border: 1px solid hsl(var(--border) / 0.6);
}
/* ─── Animations ─── */
@keyframes fade-up {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slide-in-right {
from {
opacity: 0;
transform: translateX(16px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
.animate-fade-up {
animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.scroll-fade-up {
opacity: 0;
transform: translateY(32px);
transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-fade-up.in-view {
opacity: 1;
transform: translateY(0);
}
.animate-fade-in {
animation: fade-in 0.5s ease both;
}
.animate-slide-in-right {
animation: slide-in-right 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.animate-shimmer {
background: linear-gradient(
90deg,
hsl(var(--muted)) 25%,
hsl(var(--muted-foreground) / 0.08) 50%,
hsl(var(--muted)) 75%
);
background-size: 200% 100%;
animation: shimmer 1.8s ease-in-out infinite;
}
.animate-float {
animation: float 6s ease-in-out infinite;
}
/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
/* ─── Gradient text ─── */
.text-gradient-primary {
background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.text-gradient-hero {
background: var(--brand-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.dark .text-gradient-hero {
background: linear-gradient(135deg, #8183FF, #C77EFF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ─── Card hover lift ─── */
.card-hover {
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
border-color 0.3s ease;
}
.card-hover:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px -12px hsl(var(--primary) / 0.1),
0 8px 16px -8px hsl(0 0% 0% / 0.2);
border-color: hsl(var(--primary) / 0.3);
}
/* ─── Scrollbar ─── */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
background: hsl(var(--muted-foreground) / 0.3);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: hsl(var(--muted-foreground) / 0.5);
}
/* ─── Selection ─── */
::selection {
background: hsl(var(--primary) / 0.3);
color: hsl(var(--foreground));
}
/* ─── Focus ring ─── */
.focus-ring {
@apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background;
}
/* ─── Brand gradient utilities ─── */
.text-brand-gradient {
background: var(--brand-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.bg-brand-gradient {
background: var(--brand-gradient);
}
/* ─── Handle tag (namespace @ pill) ─── */
.handle-tag {
display: inline-flex;
align-items: center;
padding: 4px 10px;
font-size: 12px;
font-weight: 500;
color: #0369a1;
background: #e0f2fe;
border: 1px solid #7dd3fc;
border-radius: 9999px;
}
/* ─── Status pills ─── */
.status-pill {
display: inline-flex;
align-items: center;
margin-left: 5px;
padding: 4px 18px;
font-size: 12px;
font-weight: 500;
border-radius: 9999px;
color: white;
}
.status-pill--published { background: #16a34a; }
.status-pill--review { background: #ea580c; }
.status-pill--archived { background: #6b7280; }
.status-pill--rejected { background: #dc2626; }
/* ─── Role pill ─── */
.role-pill {
display: inline-flex;
align-items: center;
padding: 4px 10px;
font-size: 12px;
font-weight: 500;
border-radius: 9999px;
border: 1px solid hsl(var(--border));
color: hsl(var(--text-secondary));
}
/* ─── Soft badges ─── */
.badge-soft {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 9999px;
font-size: 12px;
font-weight: 500;
}
.badge-soft-green {
background: #dcfce7;
color: #166534;
}
.badge-soft-blue {
background: #dbeafe;
color: #1d4ed8;
}
/* ─── Tab active ─── */
.tab-active {
border-bottom: 2px solid #3b82f6;
color: #1d4ed8;
}
/* ─── Code block ─── */
.code-block {
background: #1A202C;
color: #e5e7eb;
border-radius: 12px;
}
/* ─── Upload zone ─── */
.upload-zone {
border: 2px dashed hsl(var(--border));
background: hsl(var(--background));
transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-zone:hover {
border-color: var(--brand-start);
background: rgba(106, 109, 255, 0.04);
}
.upload-zone .upload-zone-icon {
color: hsl(var(--muted-foreground));
transition: color 0.2s ease;
}
.upload-zone:hover .upload-zone-icon {
color: var(--brand-start);
}
/* ─── Feature icon shadow ─── */
.feature-icon {
box-shadow: 0 14px 30px rgba(106, 109, 255, 0.45);
}
/* ─── Hero input placeholder ─── */
.hero-input::placeholder {
color: hsl(var(--text-placeholder));
}