@nuvler/cli 0.5.18 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/theme/create.js +1 -1
- package/dist/nuvler.js +1 -1
- package/dist/nuvler.js.map +1 -1
- package/dist/templates/nuvler-default/nuvler.theme.json +1 -1
- package/dist/templates/nuvler-default/package.json +2 -2
- package/dist/templates/nuvler-default/src/not-found.tsx +288 -21
- package/dist/templates/nuvler-default/src/theme-component.tsx +42 -4
- package/dist/templates/nuvler-default/src/theme.css +295 -209
- package/dist/templates/starter/package.json +2 -2
- package/package.json +2 -2
- package/preview-host/vendor/theme-runtime/default-theme.tsx +15 -6
|
@@ -291,299 +291,385 @@ html {
|
|
|
291
291
|
margin-top: 30px;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
/*
|
|
294
|
+
/*
|
|
295
|
+
* 404 do tema. Dois layouts: genérico (página, blog, serviço, case) e
|
|
296
|
+
* catálogo (produto/categoria, com busca e sugestões). Cores vêm dos tokens
|
|
297
|
+
* da loja; [data-not-found-resource] permite ajustes por tipo.
|
|
298
|
+
*/
|
|
295
299
|
.nuvler-not-found {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
300
|
+
--nf-ink: var(--store-text);
|
|
301
|
+
--nf-accent: var(--color-primary);
|
|
302
|
+
--nf-cheek: #f9b8c6;
|
|
303
|
+
position: relative;
|
|
304
|
+
isolation: isolate;
|
|
299
305
|
overflow: hidden;
|
|
300
|
-
padding: clamp(44px, 7vw, 88px) 20px;
|
|
301
306
|
background:
|
|
302
307
|
radial-gradient(
|
|
303
|
-
|
|
308
|
+
ellipse at 50% 30%,
|
|
304
309
|
color-mix(in srgb, var(--color-primary), transparent 92%),
|
|
305
|
-
transparent
|
|
306
|
-
),
|
|
307
|
-
radial-gradient(
|
|
308
|
-
circle at 88% 76%,
|
|
309
|
-
color-mix(in srgb, var(--color-secondary), transparent 91%),
|
|
310
|
-
transparent 26%
|
|
310
|
+
transparent 55%
|
|
311
311
|
),
|
|
312
312
|
var(--store-background);
|
|
313
|
+
color: var(--store-text);
|
|
313
314
|
}
|
|
314
315
|
|
|
315
|
-
.nuvler-not-found-
|
|
316
|
-
|
|
317
|
-
width:
|
|
318
|
-
|
|
319
|
-
|
|
316
|
+
.nuvler-not-found-sr {
|
|
317
|
+
position: absolute;
|
|
318
|
+
width: 1px;
|
|
319
|
+
height: 1px;
|
|
320
|
+
overflow: hidden;
|
|
321
|
+
clip: rect(0 0 0 0);
|
|
322
|
+
white-space: nowrap;
|
|
320
323
|
}
|
|
321
324
|
|
|
322
|
-
.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
filter: drop-shadow(
|
|
329
|
-
0 20px 28px color-mix(in srgb, var(--color-primary), transparent 82%)
|
|
330
|
-
);
|
|
325
|
+
/* Ilustração: nuvem com contorno, rosto e acento (? ou lupa). */
|
|
326
|
+
.nuvler-not-found-illustration {
|
|
327
|
+
display: block;
|
|
328
|
+
width: min(62vw, 240px);
|
|
329
|
+
height: auto;
|
|
330
|
+
overflow: visible;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
.nuvler-not-found-cloud
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
background: linear-gradient(
|
|
339
|
-
145deg,
|
|
340
|
-
var(--store-surface),
|
|
341
|
-
color-mix(in srgb, var(--store-surface-alt), var(--color-primary) 10%)
|
|
342
|
-
);
|
|
343
|
-
box-shadow:
|
|
344
|
-
inset 12px 12px 20px
|
|
345
|
-
color-mix(in srgb, var(--store-surface), transparent 45%),
|
|
346
|
-
inset -12px -12px 22px
|
|
347
|
-
color-mix(in srgb, var(--color-primary), transparent 92%);
|
|
348
|
-
content: "";
|
|
333
|
+
.nuvler-not-found-illustration .nf-cloud {
|
|
334
|
+
fill: var(--store-surface);
|
|
335
|
+
stroke: var(--nf-ink);
|
|
336
|
+
stroke-width: 7;
|
|
337
|
+
stroke-linejoin: round;
|
|
349
338
|
}
|
|
350
339
|
|
|
351
|
-
.nuvler-not-found-
|
|
352
|
-
|
|
353
|
-
right: 5%;
|
|
354
|
-
bottom: 3%;
|
|
355
|
-
left: 5%;
|
|
356
|
-
height: 48%;
|
|
357
|
-
border-radius: 48% 48% 42% 42%;
|
|
340
|
+
.nuvler-not-found-illustration .nf-eye {
|
|
341
|
+
fill: var(--nf-ink);
|
|
358
342
|
}
|
|
359
343
|
|
|
360
|
-
.nuvler-not-found-
|
|
361
|
-
|
|
362
|
-
border-radius: 50%;
|
|
344
|
+
.nuvler-not-found-illustration .nf-eye-shine {
|
|
345
|
+
fill: var(--store-surface);
|
|
363
346
|
}
|
|
364
347
|
|
|
365
|
-
.nuvler-not-found-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
width: 43%;
|
|
369
|
-
aspect-ratio: 1;
|
|
348
|
+
.nuvler-not-found-illustration .nf-cheek {
|
|
349
|
+
fill: var(--nf-cheek);
|
|
350
|
+
opacity: 0.85;
|
|
370
351
|
}
|
|
371
352
|
|
|
372
|
-
.nuvler-not-found-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
width:
|
|
376
|
-
|
|
353
|
+
.nuvler-not-found-illustration .nf-mouth {
|
|
354
|
+
fill: none;
|
|
355
|
+
stroke: var(--nf-ink);
|
|
356
|
+
stroke-width: 5;
|
|
357
|
+
stroke-linecap: round;
|
|
377
358
|
}
|
|
378
359
|
|
|
379
|
-
.nuvler-not-found-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
width:
|
|
383
|
-
|
|
360
|
+
.nuvler-not-found-illustration .nf-accent-stroke {
|
|
361
|
+
fill: none;
|
|
362
|
+
stroke: var(--nf-accent);
|
|
363
|
+
stroke-width: 9;
|
|
364
|
+
stroke-linecap: round;
|
|
365
|
+
stroke-linejoin: round;
|
|
384
366
|
}
|
|
385
367
|
|
|
386
|
-
.nuvler-not-found-
|
|
387
|
-
|
|
388
|
-
bottom: 0;
|
|
389
|
-
width: 30%;
|
|
390
|
-
aspect-ratio: 1;
|
|
368
|
+
.nuvler-not-found-illustration .nf-accent-fill {
|
|
369
|
+
fill: var(--nf-accent);
|
|
391
370
|
}
|
|
392
371
|
|
|
393
|
-
.nuvler-not-found-
|
|
394
|
-
|
|
372
|
+
.nuvler-not-found-illustration .nf-lens {
|
|
373
|
+
fill: color-mix(in srgb, var(--nf-accent), var(--store-surface) 88%);
|
|
374
|
+
stroke: var(--nf-accent);
|
|
375
|
+
stroke-width: 8;
|
|
395
376
|
}
|
|
396
|
-
|
|
397
|
-
|
|
377
|
+
|
|
378
|
+
.nuvler-not-found-illustration .nf-lens-shine {
|
|
379
|
+
fill: none;
|
|
380
|
+
stroke: color-mix(in srgb, var(--nf-accent), var(--store-surface) 45%);
|
|
381
|
+
stroke-width: 4;
|
|
382
|
+
stroke-linecap: round;
|
|
398
383
|
}
|
|
399
384
|
|
|
400
|
-
.nuvler-not-found-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
transform: translateX(-50%);
|
|
385
|
+
.nuvler-not-found-eyebrow {
|
|
386
|
+
display: block;
|
|
387
|
+
color: var(--nf-accent);
|
|
388
|
+
font-size: 13px;
|
|
389
|
+
font-weight: 800;
|
|
390
|
+
letter-spacing: 0.12em;
|
|
391
|
+
text-transform: uppercase;
|
|
408
392
|
}
|
|
409
393
|
|
|
410
|
-
.nuvler-not-found
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
box-shadow: inset -3px -4px 6px
|
|
418
|
-
color-mix(in srgb, var(--color-primary), transparent 60%);
|
|
394
|
+
.nuvler-not-found h1 {
|
|
395
|
+
margin: 10px 0 0;
|
|
396
|
+
color: var(--store-text);
|
|
397
|
+
font-size: clamp(30px, 4.6vw, 50px);
|
|
398
|
+
letter-spacing: -0.04em;
|
|
399
|
+
line-height: 1.06;
|
|
400
|
+
text-wrap: balance;
|
|
419
401
|
}
|
|
420
402
|
|
|
421
|
-
.nuvler-not-found
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
border-radius: 50%;
|
|
428
|
-
background: var(--store-surface);
|
|
429
|
-
content: "";
|
|
403
|
+
.nuvler-not-found p {
|
|
404
|
+
margin: 14px 0 0;
|
|
405
|
+
color: var(--store-muted);
|
|
406
|
+
font-size: clamp(15px, 1.8vw, 17px);
|
|
407
|
+
line-height: 1.6;
|
|
408
|
+
text-wrap: pretty;
|
|
430
409
|
}
|
|
431
410
|
|
|
432
|
-
.nuvler-not-found
|
|
433
|
-
|
|
434
|
-
|
|
411
|
+
.nuvler-not-found .button svg,
|
|
412
|
+
.nuvler-not-found-search svg {
|
|
413
|
+
width: 18px;
|
|
414
|
+
height: 18px;
|
|
415
|
+
flex: none;
|
|
416
|
+
fill: none;
|
|
417
|
+
stroke: currentColor;
|
|
418
|
+
stroke-width: 2;
|
|
419
|
+
stroke-linecap: round;
|
|
420
|
+
stroke-linejoin: round;
|
|
435
421
|
}
|
|
436
422
|
|
|
437
|
-
|
|
438
|
-
|
|
423
|
+
/* Layout genérico */
|
|
424
|
+
.nuvler-not-found-page {
|
|
425
|
+
display: grid;
|
|
426
|
+
place-items: center;
|
|
427
|
+
padding: clamp(40px, 7vw, 88px) 20px clamp(48px, 8vw, 96px);
|
|
439
428
|
}
|
|
440
429
|
|
|
441
|
-
.nuvler-not-found-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
height: 19%;
|
|
447
|
-
transform: translateX(-50%);
|
|
448
|
-
border: 3px solid var(--store-text);
|
|
449
|
-
border-bottom: 0;
|
|
450
|
-
border-radius: 50% 50% 0 0;
|
|
430
|
+
.nuvler-not-found-page .nuvler-not-found-content {
|
|
431
|
+
display: grid;
|
|
432
|
+
width: min(100%, 660px);
|
|
433
|
+
justify-items: center;
|
|
434
|
+
text-align: center;
|
|
451
435
|
}
|
|
452
436
|
|
|
453
|
-
.nuvler-not-found-
|
|
454
|
-
|
|
455
|
-
font-size: clamp(72px, 13vw, 132px);
|
|
456
|
-
font-weight: 950;
|
|
457
|
-
letter-spacing: -0.1em;
|
|
458
|
-
line-height: 0.84;
|
|
437
|
+
.nuvler-not-found-page .nuvler-not-found-illustration {
|
|
438
|
+
margin-bottom: 28px;
|
|
459
439
|
}
|
|
460
440
|
|
|
461
|
-
.nuvler-not-found-
|
|
462
|
-
|
|
463
|
-
color: var(--color-primary);
|
|
464
|
-
font-size: 14px;
|
|
465
|
-
font-weight: 900;
|
|
466
|
-
letter-spacing: 0.12em;
|
|
467
|
-
text-transform: uppercase;
|
|
441
|
+
.nuvler-not-found-page p {
|
|
442
|
+
max-width: 500px;
|
|
468
443
|
}
|
|
469
444
|
|
|
470
|
-
.nuvler-not-found
|
|
471
|
-
|
|
445
|
+
.nuvler-not-found-actions {
|
|
446
|
+
display: flex;
|
|
447
|
+
flex-wrap: wrap;
|
|
448
|
+
justify-content: center;
|
|
449
|
+
gap: 12px;
|
|
450
|
+
margin-top: 28px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.nuvler-not-found-actions .button {
|
|
454
|
+
gap: 8px;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.nuvler-not-found-ghost {
|
|
458
|
+
border-color: var(--store-line);
|
|
459
|
+
background: var(--store-surface);
|
|
472
460
|
color: var(--store-text);
|
|
473
|
-
font-size: clamp(32px, 5vw, 54px);
|
|
474
|
-
letter-spacing: -0.055em;
|
|
475
|
-
line-height: 1.03;
|
|
476
461
|
}
|
|
477
462
|
|
|
478
|
-
.nuvler-not-found
|
|
479
|
-
|
|
480
|
-
|
|
463
|
+
.nuvler-not-found-ghost:hover {
|
|
464
|
+
border-color: color-mix(in srgb, var(--nf-accent), var(--store-line) 55%);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.nuvler-not-found-shortcuts {
|
|
468
|
+
display: grid;
|
|
469
|
+
justify-items: center;
|
|
470
|
+
gap: 12px;
|
|
471
|
+
margin-top: 44px;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.nuvler-not-found-shortcuts > span {
|
|
481
475
|
color: var(--store-muted);
|
|
482
|
-
font-size:
|
|
483
|
-
line-height: 1.65;
|
|
476
|
+
font-size: 14px;
|
|
484
477
|
}
|
|
485
478
|
|
|
486
|
-
.nuvler-not-found-
|
|
479
|
+
.nuvler-not-found-shortcuts ul {
|
|
487
480
|
display: flex;
|
|
488
481
|
flex-wrap: wrap;
|
|
489
482
|
justify-content: center;
|
|
490
483
|
gap: 10px;
|
|
491
|
-
margin
|
|
484
|
+
margin: 0;
|
|
485
|
+
padding: 0;
|
|
486
|
+
list-style: none;
|
|
492
487
|
}
|
|
493
488
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
min-height:
|
|
497
|
-
align-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
color-mix(in srgb, var(--color-secondary), transparent 91%),
|
|
508
|
-
transparent 42%
|
|
509
|
-
),
|
|
510
|
-
var(--store-background);
|
|
489
|
+
.nuvler-not-found-shortcuts a {
|
|
490
|
+
display: inline-flex;
|
|
491
|
+
min-height: 42px;
|
|
492
|
+
align-items: center;
|
|
493
|
+
border: 1px solid var(--store-line);
|
|
494
|
+
border-radius: 999px;
|
|
495
|
+
background: var(--store-surface);
|
|
496
|
+
padding: 8px 18px;
|
|
497
|
+
font-size: 14px;
|
|
498
|
+
font-weight: 600;
|
|
499
|
+
transition:
|
|
500
|
+
border-color 160ms ease,
|
|
501
|
+
color 160ms ease;
|
|
511
502
|
}
|
|
512
503
|
|
|
513
|
-
.nuvler-not-found-
|
|
514
|
-
color: var(--
|
|
504
|
+
.nuvler-not-found-shortcuts a:hover {
|
|
505
|
+
border-color: var(--nf-accent);
|
|
506
|
+
color: var(--nf-accent);
|
|
515
507
|
}
|
|
516
508
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
509
|
+
/* Nuvens decorativas ao fundo */
|
|
510
|
+
.nuvler-not-found-puff {
|
|
511
|
+
position: absolute;
|
|
512
|
+
z-index: -1;
|
|
513
|
+
border-radius: 999px;
|
|
514
|
+
background: var(--store-surface);
|
|
515
|
+
opacity: 0.85;
|
|
516
|
+
pointer-events: none;
|
|
524
517
|
}
|
|
525
518
|
|
|
526
|
-
.nuvler-not-found-
|
|
527
|
-
|
|
519
|
+
.nuvler-not-found-puff.puff-a {
|
|
520
|
+
top: 9%;
|
|
521
|
+
left: 8%;
|
|
522
|
+
width: 140px;
|
|
523
|
+
height: 44px;
|
|
528
524
|
}
|
|
529
525
|
|
|
530
|
-
.nuvler-not-found-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
left: 50%;
|
|
536
|
-
width: 82%;
|
|
537
|
-
height: auto;
|
|
538
|
-
aspect-ratio: 640 / 420;
|
|
539
|
-
transform: translateX(-50%);
|
|
540
|
-
color: var(--color-primary);
|
|
526
|
+
.nuvler-not-found-puff.puff-b {
|
|
527
|
+
top: 24%;
|
|
528
|
+
right: 9%;
|
|
529
|
+
width: 190px;
|
|
530
|
+
height: 56px;
|
|
541
531
|
}
|
|
542
532
|
|
|
543
|
-
.nuvler-not-found-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
color: var(--color-primary);
|
|
550
|
-
font-size: clamp(118px, 23vw, 190px);
|
|
551
|
-
font-weight: 950;
|
|
552
|
-
letter-spacing: -0.13em;
|
|
553
|
-
line-height: 0.66;
|
|
554
|
-
text-align: center;
|
|
533
|
+
.nuvler-not-found-puff.puff-c {
|
|
534
|
+
bottom: 14%;
|
|
535
|
+
left: 14%;
|
|
536
|
+
width: 100px;
|
|
537
|
+
height: 32px;
|
|
538
|
+
opacity: 0.6;
|
|
555
539
|
}
|
|
556
540
|
|
|
557
|
-
|
|
541
|
+
/* Layout de catálogo (produto/categoria) */
|
|
542
|
+
.nuvler-not-found-catalog {
|
|
543
|
+
padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.nuvler-not-found-card {
|
|
547
|
+
display: grid;
|
|
548
|
+
grid-template-columns: minmax(180px, 0.75fr) 1.6fr;
|
|
549
|
+
align-items: center;
|
|
550
|
+
gap: clamp(24px, 4vw, 48px);
|
|
551
|
+
border: 1px solid var(--store-line);
|
|
552
|
+
border-radius: max(16px, var(--radius-lg));
|
|
553
|
+
background: var(--store-surface);
|
|
554
|
+
padding: clamp(24px, 4vw, 48px);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.nuvler-not-found-art {
|
|
558
|
+
display: grid;
|
|
559
|
+
place-items: center;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.nuvler-not-found-catalog h1 {
|
|
563
|
+
font-size: clamp(28px, 3.6vw, 42px);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.nuvler-not-found-search {
|
|
567
|
+
display: flex;
|
|
568
|
+
gap: 10px;
|
|
569
|
+
margin-top: 24px;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.nuvler-not-found-search label {
|
|
573
|
+
display: flex;
|
|
574
|
+
min-height: 50px;
|
|
575
|
+
flex: 1;
|
|
576
|
+
align-items: center;
|
|
577
|
+
gap: 10px;
|
|
578
|
+
border: 1px solid var(--store-line);
|
|
579
|
+
border-radius: var(--radius-sm);
|
|
580
|
+
background: var(--store-background);
|
|
581
|
+
padding: 0 14px;
|
|
582
|
+
color: var(--store-muted);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.nuvler-not-found-search label:focus-within {
|
|
586
|
+
border-color: var(--nf-accent);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.nuvler-not-found-search input {
|
|
590
|
+
width: 100%;
|
|
591
|
+
min-width: 0;
|
|
592
|
+
border: 0;
|
|
593
|
+
outline: 0;
|
|
594
|
+
background: transparent;
|
|
558
595
|
color: var(--store-text);
|
|
559
596
|
}
|
|
560
597
|
|
|
561
|
-
.nuvler-not-found
|
|
598
|
+
.nuvler-not-found-search .button {
|
|
599
|
+
min-height: 50px;
|
|
600
|
+
padding-inline: 22px;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.nuvler-not-found-links {
|
|
604
|
+
display: flex;
|
|
605
|
+
flex-wrap: wrap;
|
|
606
|
+
gap: 8px 20px;
|
|
607
|
+
margin-top: 16px;
|
|
608
|
+
font-size: 14px;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.nuvler-not-found-links a {
|
|
562
612
|
color: var(--store-muted);
|
|
613
|
+
text-decoration: underline;
|
|
614
|
+
text-underline-offset: 3px;
|
|
563
615
|
}
|
|
564
616
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
margin-bottom: -10px;
|
|
569
|
-
}
|
|
617
|
+
.nuvler-not-found-links a.is-primary {
|
|
618
|
+
color: var(--nf-accent);
|
|
619
|
+
font-weight: 700;
|
|
570
620
|
}
|
|
571
621
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
622
|
+
.nuvler-not-found-suggestions {
|
|
623
|
+
margin-top: clamp(36px, 5vw, 56px);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.nuvler-not-found-suggestions header {
|
|
627
|
+
display: flex;
|
|
628
|
+
align-items: baseline;
|
|
629
|
+
justify-content: space-between;
|
|
630
|
+
gap: 16px;
|
|
631
|
+
margin-bottom: 20px;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.nuvler-not-found-suggestions h2 {
|
|
635
|
+
margin: 0;
|
|
636
|
+
font-size: clamp(20px, 2.4vw, 26px);
|
|
637
|
+
letter-spacing: -0.03em;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.nuvler-not-found-suggestions header a {
|
|
641
|
+
color: var(--nf-accent);
|
|
642
|
+
font-size: 14px;
|
|
643
|
+
font-weight: 700;
|
|
644
|
+
text-decoration: underline;
|
|
645
|
+
text-underline-offset: 3px;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
@media (max-width: 760px) {
|
|
649
|
+
.nuvler-not-found-card {
|
|
650
|
+
grid-template-columns: 1fr;
|
|
651
|
+
text-align: center;
|
|
576
652
|
}
|
|
577
653
|
|
|
578
|
-
.nuvler-not-found-
|
|
579
|
-
width: min(
|
|
580
|
-
height: min(61vw, 218px);
|
|
654
|
+
.nuvler-not-found-art .nuvler-not-found-illustration {
|
|
655
|
+
width: min(56vw, 200px);
|
|
581
656
|
}
|
|
582
657
|
|
|
583
|
-
.nuvler-not-found-
|
|
584
|
-
|
|
658
|
+
.nuvler-not-found-links {
|
|
659
|
+
justify-content: center;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.nuvler-not-found-puff {
|
|
663
|
+
display: none;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
@media (max-width: 520px) {
|
|
668
|
+
.nuvler-not-found-search {
|
|
669
|
+
flex-direction: column;
|
|
585
670
|
}
|
|
586
671
|
|
|
672
|
+
.nuvler-not-found-actions,
|
|
587
673
|
.nuvler-not-found-actions .button {
|
|
588
674
|
width: 100%;
|
|
589
675
|
}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@nuvler/theme-sdk": "^1.4.
|
|
16
|
+
"@nuvler/theme-sdk": "^1.4.9"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": "^19.0.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@nuvler/cli": "^0.5.
|
|
22
|
+
"@nuvler/cli": "^0.5.19",
|
|
23
23
|
"@types/react": "^19.0.0",
|
|
24
24
|
"react": "^19.0.0",
|
|
25
25
|
"typescript": "^5.9.0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvler/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19",
|
|
4
4
|
"description": "CLI oficial para criação, validação, preview e empacotamento de temas Nuvler",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@nuvler/theme-schema": "^1.4.6",
|
|
24
|
-
"@nuvler/theme-sdk": "^1.4.
|
|
24
|
+
"@nuvler/theme-sdk": "^1.4.9",
|
|
25
25
|
"@vitejs/plugin-react": "^6.0.5",
|
|
26
26
|
"commander": "^15.0.0",
|
|
27
27
|
"react": "19.2.8",
|
|
@@ -20,7 +20,7 @@ import type {
|
|
|
20
20
|
ThemeRuntimeSdk,
|
|
21
21
|
ThemeSiteColors,
|
|
22
22
|
} from "@nuvler/theme-sdk";
|
|
23
|
-
import { htmlToPlainText, productUrl } from "@nuvler/theme-sdk";
|
|
23
|
+
import { htmlToPlainText, notFoundCopy, productUrl } from "@nuvler/theme-sdk";
|
|
24
24
|
import type { DefaultThemeProps, ThemeRuntimeAdapters } from "./index.js";
|
|
25
25
|
import type { ThemeRoute } from "./index.js";
|
|
26
26
|
|
|
@@ -1969,14 +1969,16 @@ function ProductPage({
|
|
|
1969
1969
|
}
|
|
1970
1970
|
|
|
1971
1971
|
/** Fallback seguro para consumidores que usam um tema sem componente NotFound. */
|
|
1972
|
-
export function DefaultNotFound({ homeHref = "/" }: NotFoundProps) {
|
|
1972
|
+
export function DefaultNotFound({ homeHref = "/", resource }: NotFoundProps) {
|
|
1973
|
+
const copy = notFoundCopy(resource, homeHref);
|
|
1973
1974
|
return (
|
|
1974
1975
|
<main className="not-found-page">
|
|
1975
1976
|
<div className="not-found-card">
|
|
1976
1977
|
<span>404</span>
|
|
1977
|
-
<h1>
|
|
1978
|
-
<
|
|
1979
|
-
|
|
1978
|
+
<h1>{copy.title}</h1>
|
|
1979
|
+
<p>{copy.description}</p>
|
|
1980
|
+
<a className="button button-primary" href={copy.action.href}>
|
|
1981
|
+
{copy.action.label}
|
|
1980
1982
|
</a>
|
|
1981
1983
|
</div>
|
|
1982
1984
|
</main>
|
|
@@ -2006,7 +2008,14 @@ function RouteContent({
|
|
|
2006
2008
|
</div>
|
|
2007
2009
|
</main>
|
|
2008
2010
|
);
|
|
2009
|
-
if (route.type === "not-found")
|
|
2011
|
+
if (route.type === "not-found")
|
|
2012
|
+
return (
|
|
2013
|
+
<DefaultNotFound
|
|
2014
|
+
homeHref="/"
|
|
2015
|
+
resource={route.resource}
|
|
2016
|
+
pathname={route.pathname}
|
|
2017
|
+
/>
|
|
2018
|
+
);
|
|
2010
2019
|
if (route.type === "catalog")
|
|
2011
2020
|
return <CatalogPage adapters={adapters} context={context} route={route} />;
|
|
2012
2021
|
if (route.type === "product")
|