-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.css
More file actions
593 lines (452 loc) · 15.1 KB
/
index.css
File metadata and controls
593 lines (452 loc) · 15.1 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
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
@import "tailwindcss";
@theme {
--color-background: #fdfbf7;
--color-foreground: #1a1a1a;
--color-surface: #ffffff;
--color-surface-highlight: #f3f4f6;
--color-primary: #f97316;
--color-secondary: #3b82f6;
--color-accent: #8b5cf6;
--font-serif: "Instrument Serif", serif;
--font-sans: Inter, sans-serif;
--shadow-neobrutalism: 4px 4px 0px 0px rgba(0, 0, 0, 1);
}
@layer base {
html {
scroll-behavior: smooth;
}
body {
background-color: #fdfbf7;
color: #1a1a1a;
font-family: Inter, sans-serif;
-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Instrument Serif", serif;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #9ca3af;
}
}
@layer components {
.btn {
@apply inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-background disabled:opacity-50 disabled:cursor-not-allowed;
&.btn--primary {
@apply bg-primary text-white hover:bg-[#EA580C] shadow-sm;
}
&.btn--secondary {
@apply bg-white text-black border border-zinc-200 hover:bg-zinc-50 shadow-sm;
}
&.btn--ghost {
@apply text-zinc-600 hover:text-black hover:bg-black/5;
}
&.btn--outline {
@apply bg-transparent border border-zinc-300 text-zinc-900 hover:bg-zinc-100;
}
&.btn--sm {
@apply px-3 py-1.5 text-xs uppercase tracking-wide;
}
&.btn--md {
@apply px-5 py-2.5 text-sm;
}
&.btn--lg {
@apply px-8 py-3 text-sm uppercase tracking-wide font-bold;
}
&.btn--full {
@apply w-full;
}
}
.card {
@apply bg-surface border border-white/5 rounded-3xl p-6 shadow-xl;
.header {
@apply flex justify-between items-center mb-4;
h3 {
@apply text-lg font-semibold text-zinc-100;
}
}
}
.navbar {
@apply fixed top-0 w-full z-50 bg-background/90 backdrop-blur-sm border-b border-black/5;
.inner {
@apply max-w-7xl mx-auto px-6 h-16 flex items-center justify-between;
.left {
@apply flex items-center space-x-8;
.brand {
@apply flex items-center space-x-2 cursor-pointer;
.logo {
@apply w-6 h-6 text-black;
}
.name {
@apply text-xl font-serif font-bold text-black tracking-tight;
}
}
.links {
@apply hidden md:flex items-center space-x-6;
a {
@apply text-sm font-medium text-zinc-600 hover:text-black transition-colors;
}
}
}
.actions {
@apply flex items-center space-x-4;
.greeting {
@apply text-xs font-semibold uppercase tracking-wide text-zinc-500;
}
.btn {
@apply rounded-md;
}
.login {
@apply text-xs font-bold uppercase tracking-wide text-zinc-900 hover:text-primary transition-colors;
}
.cta {
@apply inline-flex items-center justify-center rounded-md font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-background disabled:opacity-50 disabled:cursor-not-allowed px-3 py-1.5 text-xs uppercase tracking-wide bg-primary text-white hover:bg-[#EA580C] shadow-sm;
}
}
}
}
.auth-modal {
@apply absolute inset-0 z-60 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4;
.panel {
@apply bg-white rounded-xl shadow-2xl max-w-md w-full p-6 text-center border border-zinc-200;
.icon {
@apply w-12 h-12 bg-orange-100 rounded-full flex items-center justify-center mx-auto mb-4;
.alert {
@apply text-primary w-6 h-6;
}
}
h3 {
@apply text-xl font-serif font-bold text-black mb-2;
}
p {
@apply text-zinc-600 text-sm mb-6 leading-relaxed;
}
.actions {
@apply flex flex-col space-y-3;
.confirm {
@apply bg-primary hover:bg-orange-600 text-white;
}
.cancel {
@apply text-xs text-zinc-400 hover:text-black mt-2;
}
}
}
}
.upload {
@apply w-full;
.dropzone {
@apply relative h-48 rounded-xl border-2 border-dashed transition-all duration-300 flex flex-col items-center justify-center cursor-pointer bg-zinc-50 border-zinc-200 hover:border-zinc-300 hover:bg-zinc-100;
&.is-dragging {
@apply border-primary bg-orange-50;
.drop-icon {
@apply bg-orange-100 text-primary;
}
}
.drop-input {
@apply absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10;
}
.drop-content {
@apply flex flex-col items-center pointer-events-none;
.drop-icon {
@apply w-12 h-12 rounded-full flex items-center justify-center mb-4 transition-colors bg-zinc-200 text-zinc-500;
}
p {
@apply text-zinc-900 font-bold text-sm mb-1;
}
.help {
@apply text-zinc-500 text-xs;
}
}
&:not(.is-dragging):hover .drop-icon {
@apply bg-zinc-300 text-black;
}
}
.upload-status {
@apply h-48 rounded-xl border border-zinc-200 bg-white p-6 flex flex-col justify-center relative overflow-hidden;
.status-content {
@apply relative z-10 flex flex-col items-center justify-center text-center;
.status-icon {
@apply w-12 h-12 rounded-lg bg-zinc-100 flex items-center justify-center text-black mb-3 border border-zinc-200;
.check {
@apply text-green-500;
}
}
h3 {
@apply text-black font-bold text-sm truncate max-w-full px-4;
}
.progress {
@apply w-full max-w-50 h-1.5 bg-zinc-100 rounded-full mt-3 overflow-hidden;
.bar {
@apply h-full bg-primary transition-all duration-300 ease-out;
}
}
.status-text {
@apply text-zinc-500 text-xs font-mono uppercase mt-2;
}
}
}
}
.visualizer {
@apply min-h-screen bg-background pt-6 pb-10 px-4 md:px-6 flex flex-col items-center font-sans relative;
.topbar {
@apply w-full max-w-6xl flex items-center justify-between mb-6 px-2;
.brand {
@apply flex items-center space-x-2 cursor-pointer;
.logo {
@apply w-6 h-6 text-black;
}
.name {
@apply text-xl font-serif font-bold text-black tracking-tight;
}
}
.exit {
@apply text-zinc-500 hover:text-black hover:bg-zinc-100;
.icon {
@apply w-5 h-5 mr-2;
}
}
}
.content {
@apply w-full max-w-6xl grid grid-cols-1 gap-6;
}
.panel {
@apply bg-white rounded-xl border border-zinc-200 shadow-2xl overflow-hidden;
.panel-header {
@apply flex flex-col md:flex-row md:items-center md:justify-between gap-4 p-5 border-b border-zinc-100;
.panel-meta {
p {
@apply text-xs font-mono uppercase tracking-widest text-zinc-400;
}
h2 {
@apply text-2xl font-serif font-bold text-black;
}
h3 {
@apply text-lg font-serif font-bold text-black;
}
.note {
@apply text-xs text-zinc-500 mt-1;
}
}
.panel-actions {
@apply flex flex-wrap items-center gap-3;
.export {
@apply bg-primary text-white hover:bg-orange-600 h-9 border-none shadow-sm;
}
.share {
@apply bg-black text-white h-9 shadow-sm hover:bg-zinc-800;
}
}
}
.render-area {
@apply relative bg-zinc-100 min-h-105;
.render-img {
@apply w-full h-full object-contain transition-all duration-700 opacity-100 scale-100;
}
&.is-processing {
.render-img {
@apply opacity-50 blur-sm scale-105;
}
}
.render-placeholder {
@apply w-full h-full flex items-center justify-center;
}
.render-fallback {
@apply w-full h-full object-contain opacity-50;
}
.render-overlay {
@apply absolute inset-0 flex flex-col items-center justify-center z-30 bg-white/60 backdrop-blur-sm transition-opacity duration-300;
.rendering-card {
@apply bg-white px-6 py-4 rounded-xl border border-zinc-200 flex flex-col items-center shadow-2xl;
.spinner {
@apply w-8 h-8 mb-3 animate-spin text-primary;
}
.title {
@apply text-sm font-bold text-black;
}
.subtitle {
@apply text-xs text-zinc-500 mt-1;
}
}
}
}
&.compare {
@apply shadow-xl;
.panel-header {
@apply flex items-center justify-between;
.hint {
@apply text-xs text-zinc-400;
}
}
.compare-stage {
@apply relative bg-zinc-100 overflow-hidden;
}
.compare-fallback {
@apply flex items-center justify-center;
}
.compare-img {
@apply w-full h-auto object-contain;
}
}
}
}
.home {
@apply min-h-screen bg-background relative overflow-x-hidden text-foreground;
.hero {
@apply pt-32 pb-20 px-6 max-w-7xl mx-auto flex flex-col items-center text-center;
.announce {
@apply mb-8 inline-flex items-center px-3 py-1 rounded-md bg-white border border-zinc-200 shadow-sm;
.dot {
@apply w-4 h-4 rounded bg-blue-100 flex items-center justify-center mr-2;
.pulse {
@apply w-2 h-2 rounded-full bg-blue-500 animate-pulse;
}
}
span {
@apply text-[10px] font-bold uppercase tracking-widest text-zinc-600;
}
}
h1 {
@apply text-6xl md:text-8xl font-serif leading-[0.95] text-black mb-8 max-w-5xl mx-auto;
}
.subtitle {
@apply max-w-2xl mx-auto text-xs md:text-sm font-mono uppercase tracking-widest text-zinc-500 mb-10 leading-relaxed;
}
.actions {
@apply flex flex-col sm:flex-row gap-4 justify-center mb-16;
.cta {
@apply inline-flex items-center justify-center rounded-md transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-background px-8 py-3 text-sm uppercase tracking-wide font-bold bg-primary text-white hover:bg-[#ea580c] shadow-md;
.icon {
@apply ml-2 w-4 h-4;
}
}
.demo {
@apply px-8 bg-white rounded-md hover:bg-zinc-50;
}
}
.upload-shell {
@apply w-full max-w-5xl mx-auto relative rounded-3xl overflow-hidden bg-linear-to-b from-blue-100/50 to-white/50 border border-blue-100 p-6 md:p-12 shadow-sm min-h-100 flex items-center justify-center;
.grid-overlay {
@apply absolute inset-0 opacity-40 pointer-events-none;
}
.upload-card {
@apply relative w-full max-w-xl bg-white rounded-2xl shadow-xl overflow-hidden border border-zinc-100 p-8 z-10 transition-transform hover:scale-[1.01] duration-500;
.upload-head {
@apply text-center mb-6;
.upload-icon {
@apply w-12 h-12 bg-orange-100 rounded-full flex items-center justify-center mx-auto mb-3;
.icon {
@apply text-orange-500 w-6 h-6;
}
}
h3 {
@apply text-xl font-serif font-bold text-black;
}
p {
@apply text-zinc-500 text-sm mt-1;
}
}
}
}
}
.projects {
@apply py-24 bg-white relative border-b border-zinc-100;
.section-inner {
@apply max-w-7xl mx-auto px-6;
.section-head {
@apply flex flex-col md:flex-row md:items-end justify-between mb-12 gap-6;
.copy {
@apply max-w-2xl;
h2 {
@apply text-4xl font-serif text-black mb-4;
}
p {
@apply text-zinc-500 text-lg;
}
}
}
.loading {
@apply flex items-center justify-center text-sm text-zinc-500;
}
.projects-grid {
@apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8;
.project-card {
@apply relative bg-white rounded-xl overflow-hidden border border-zinc-200 shadow-sm hover:shadow-xl transition-all duration-300 cursor-pointer flex flex-col h-full;
.preview {
@apply aspect-4/3 overflow-hidden bg-zinc-100 relative;
img {
@apply w-full h-full object-cover group-hover:scale-105 transition-transform duration-700;
}
.badge {
@apply absolute top-3 left-3 bg-white/90 backdrop-blur-md px-2 py-1 rounded-md border border-zinc-200 shadow-sm;
span {
@apply text-[10px] font-bold uppercase tracking-wider text-zinc-800;
}
}
}
.card-body {
@apply p-5 flex justify-between items-center bg-white border-t border-zinc-100 grow;
h3 {
@apply text-lg font-serif font-bold text-zinc-900 group-hover:text-primary transition-colors;
}
.meta {
@apply flex items-center text-zinc-400 text-xs mt-1 space-x-2;
span {
@apply font-mono uppercase;
}
span:last-child {
@apply text-zinc-400 text-[10px] uppercase tracking-wide;
}
}
.arrow {
@apply w-10 h-10 rounded-full bg-zinc-50 border border-zinc-200 flex items-center justify-center text-zinc-400 group-hover:bg-primary group-hover:text-white group-hover:border-primary transition-all duration-300;
}
}
}
.empty {
@apply col-span-full rounded-xl border border-dashed border-zinc-200 bg-zinc-50 p-10 text-center text-sm text-zinc-500;
}
}
}
}
.partners {
@apply border-t border-zinc-200 py-12 bg-white;
.section-inner {
@apply max-w-7xl mx-auto px-6;
.logos {
@apply grid grid-cols-2 md:grid-cols-5 gap-8 items-center opacity-60 grayscale hover:grayscale-0 transition-all duration-500;
}
.logo-item {
@apply flex items-center justify-center space-x-2 cursor-pointer;
div {
@apply text-zinc-800 group-hover:text-black transition-colors;
}
span {
@apply font-bold text-xl text-zinc-800 group-hover:text-black transition-colors tracking-tight;
}
}
}
}
}
.visualizer-route {
@apply min-h-screen flex items-center justify-center;
&.loading {
@apply text-sm text-zinc-500;
}
}
}