Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
825 lines (788 loc) · 53.1 KB
/
Copy pathindex.html
File metadata and controls
825 lines (788 loc) · 53.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
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
<!doctype html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Make Your Poster — Divida 1 imagem em até 6 folhas A4</title>
<meta
name="description"
content="Divida uma imagem JPG ou PNG em até 6 folhas para impressão, com ajuste de crop por página, margens em mm e exportação em JPG, PNG ou PDF compactado."
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect width='120' height='120' rx='24' fill='%237C3AED'/%3E%3Cpath d='M28 92V28h14l18 27 18-27h14v64H78V53L60 79 42 53v39H28z' fill='white'/%3E%3C/svg%3E"
type="image/svg+xml"
/>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
ink: "#070A14",
panel: "#0C1222",
neon: "#7C3AED",
cyanx: "#22D3EE",
rose: "#F43F5E",
},
fontFamily: {
display: ["Space Grotesk", "Inter", "system-ui", "sans-serif"],
mono: ["JetBrains Mono", "ui-monospace", "monospace"],
},
boxShadow: {
glow: "0 0 44px rgba(124,58,237,.28)",
card: "0 18px 50px rgba(2,8,23,.5)",
sheet: "0 30px 80px rgba(2,8,23,.6)",
},
animation: {
floaty: "floaty 7s ease-in-out infinite",
floatySlow: "floaty 9s ease-in-out infinite",
pulseDot: "pulseDot 2.2s ease-in-out infinite",
shimmer: "shimmer 2.8s linear infinite",
},
keyframes: {
floaty: {
"0%,100%": { transform: "translateY(0px)" },
"50%": { transform: "translateY(-10px)" },
},
pulseDot: {
"0%,100%": { opacity: ".45", transform: "scale(1)" },
"50%": { opacity: "1", transform: "scale(1.25)" },
},
shimmer: {
"0%": { backgroundPosition: "-200% 0" },
"100%": { backgroundPosition: "200% 0" },
},
},
},
},
};
</script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jspdf@2.5.1/dist/jspdf.umd.min.js"></script>
<style>
html { scroll-behavior: smooth; }
:root {
--bg-base: #070a14;
--text-primary: #eef2ff;
--text-muted: #94a3b8;
--surface-card: rgba(13, 19, 36, 0.78);
--surface-soft: rgba(2, 6, 23, 0.55);
--surface-strong: rgba(7, 10, 20, 0.86);
--border-color: rgba(255, 255, 255, 0.1);
--nav-link: #cbd5e1;
--panel-input-bg: rgba(2, 6, 23, 0.7);
--panel-input-text: #e2e8f0;
}
body {
font-family: "Inter", system-ui, -apple-system, sans-serif;
background: var(--bg-base);
color: var(--text-primary);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
.font-display { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; }
.font-mono2 { font-family: "JetBrains Mono", ui-monospace, monospace; }
.bg-hero {
background:
radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.22), transparent 32%),
radial-gradient(circle at 88% 4%, rgba(34, 211, 238, 0.16), transparent 30%),
radial-gradient(circle at 92% 92%, rgba(244, 63, 94, 0.12), transparent 28%),
linear-gradient(180deg, #05070d 0%, #070a14 45%, #0a1024 100%);
}
/* Aceternity-style beams canvas + spotlight */
#beams { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; pointer-events: none; }
#spotlight {
position: absolute; width: 560px; height: 560px; border-radius: 9999px;
background: radial-gradient(circle, rgba(124,58,237,.16) 0%, rgba(34,211,238,.08) 40%, transparent 70%);
filter: blur(10px); pointer-events: none; transform: translate(-50%, -50%);
transition: left .12s ease-out, top .12s ease-out;
}
.grid-noise::before {
content: ""; position: absolute; inset: 0;
background-image:
linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
background-size: 34px 34px;
mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 25%, transparent 78%);
pointer-events: none;
}
.orb { position: absolute; border-radius: 9999px; filter: blur(60px); pointer-events: none; opacity: 0.4; }
/* 3D poster stack */
.perspective-stage { perspective: 1400px; }
#tiltStage { transform-style: preserve-3d; transition: transform .18s ease-out; will-change: transform; }
.sheet {
transform-style: preserve-3d;
background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
border: 1px solid rgba(255,255,255,.5);
}
.sheet-inner {
background:
linear-gradient(135deg, #7c3aed 0%, #2563eb 45%, #06b6d4 100%);
}
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 9s ease-in-out infinite; animation-delay: -3s; }
/* shadcn-like primitives */
.card {
background: var(--surface-card);
border: 1px solid var(--border-color);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.card-hover { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.35); box-shadow: 0 18px 50px rgba(2,8,23,.5); }
.hairline { border-color: var(--border-color); }
.section-label {
font-size: 11px; font-weight: 700; letter-spacing: .14em;
text-transform: uppercase; color: var(--text-muted);
}
.badge {
display: inline-flex; align-items: center; gap: .45rem;
border: 1px solid var(--border-color);
background: rgba(255,255,255,.06);
border-radius: 9999px;
padding: .35rem .75rem;
font-size: 12px; font-weight: 600;
}
.btn-primary {
background: linear-gradient(92deg, #7c3aed 0%, #4f46e5 55%, #0891b2 130%);
box-shadow: 0 10px 30px rgba(124,58,237,.35), inset 0 1px 0 rgba(255,255,255,.25);
transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible, .btn-ghost:focus-visible, a:focus-visible, button:focus-visible {
outline: 2px solid rgba(34,211,238,.8); outline-offset: 2px;
}
.btn-ghost {
border: 1px solid var(--border-color);
background: rgba(255,255,255,.05);
transition: background .18s ease, transform .18s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
/* Segmented control (orientation) */
.segmented { border: 1px solid var(--border-color); background: rgba(2,6,23,.6); padding: 4px; border-radius: 14px; }
.orientation-btn {
border-radius: 10px; border: 1px solid transparent;
transition: background .18s ease, border-color .18s ease;
}
.orientation-btn.bg-neon\/30 {
background: rgba(124,58,237,.32) !important;
border-color: rgba(167,139,250,.5) !important;
box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
/* Premium range sliders */
.range { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 9999px;
background: linear-gradient(90deg, #7c3aed var(--fill,50%), rgba(255,255,255,.12) var(--fill,50%));
outline: none; cursor: pointer;
}
.range::-webkit-slider-thumb {
-webkit-appearance: none; appearance: none;
width: 18px; height: 18px; border-radius: 9999px;
background: #fff; border: 3px solid #7c3aed;
box-shadow: 0 2px 10px rgba(0,0,0,.5);
transition: transform .15s ease;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb {
width: 18px; height: 18px; border-radius: 9999px;
background: #fff; border: 3px solid #7c3aed;
}
.range::-moz-range-track { height: 6px; border-radius: 9999px; background: rgba(255,255,255,.12); }
.panel-input {
background: var(--panel-input-bg) !important;
color: var(--panel-input-text) !important;
border-color: var(--border-color) !important;
}
.app-header { background: var(--surface-strong) !important; border-color: var(--border-color) !important; }
.top-nav-link { color: var(--nav-link) !important; }
.theme-toggle-btn { border-color: var(--border-color) !important; background: rgba(255,255,255,.05) !important; color: var(--text-primary) !important; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.shimmer-line {
background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
background-size: 200% 100%;
animation: shimmer 2.8s linear infinite;
}
.marquee-mask { mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
canvas { display: block; }
.canvas-frame {
background: #020617;
border: 1px solid rgba(255,255,255,.1);
box-shadow: inset 0 0 0 1px rgba(0,0,0,.6);
}
details.faq { transition: border-color .2s ease, background .2s ease; }
details.faq[open] { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.06); }
details.faq summary::-webkit-details-marker { display: none; }
body.theme-light {
--bg-base: #f4f6fb;
--text-primary: #0f172a;
--text-muted: #3f4c63;
--surface-card: rgba(255, 255, 255, 0.94);
--surface-soft: rgba(255, 255, 255, 0.98);
--surface-strong: rgba(255, 255, 255, 0.94);
--border-color: rgba(15, 23, 42, 0.14);
--nav-link: #0f172a;
--panel-input-bg: #ffffff;
--panel-input-text: #0f172a;
background: var(--bg-base) !important;
color: var(--text-primary) !important;
}
body.theme-light .bg-hero {
background:
radial-gradient(circle at 12% 8%, rgba(124,58,237,.13), transparent 32%),
radial-gradient(circle at 88% 4%, rgba(6,182,212,.13), transparent 30%),
linear-gradient(180deg, #ffffff 0%, #eef2ff 55%, #e3e9f4 100%);
}
body.theme-light .grid-noise::before {
background-image:
linear-gradient(rgba(15,23,42,.055) 1px, transparent 1px),
linear-gradient(90deg, rgba(15,23,42,.055) 1px, transparent 1px);
}
body.theme-light .orb { opacity: .22; }
body.theme-light #beams { opacity: .45; }
body.theme-light #spotlight { opacity: .5; }
/* ---- Light-mode contrast system (WCAG AA: texto ≥ 4.5:1 sobre claro) ---- */
body.theme-light .text-slate-100 { color: #0f172a !important; }
body.theme-light .text-slate-200 { color: #1e293b !important; }
body.theme-light .text-slate-300 { color: #334155 !important; }
body.theme-light .text-slate-400 { color: #3f4c63 !important; }
body.theme-light .text-slate-500 { color: #475569 !important; }
body.theme-light #previewInfo { color: #3f4c63 !important; }
body.theme-light #processingInfo { color: #0e7490 !important; }
body.theme-light #pageEditorInfo { color: #0e7490 !important; }
body.theme-light .text-cyan-200, body.theme-light .text-cyan-100 { color: #0e7490 !important; }
body.theme-light .text-violet-200, body.theme-light .text-violet-100 { color: #6d28d9 !important; }
body.theme-light .text-emerald-200, body.theme-light .text-emerald-300 { color: #047857 !important; }
body.theme-light .text-rose-200 { color: #be123c !important; }
body.theme-light .text-amber-100 { color: #92400e !important; }
body.theme-light .hero-gradient {
background: linear-gradient(92deg, #6d28d9 0%, #0e7490 60%, #6d28d9 100%) !important;
-webkit-background-clip: text !important;
background-clip: text !important;
color: transparent !important;
}
/* Superfícies escuras translúcidas → versões claras */
body.theme-light .bg-white\/5 { background-color: rgba(15, 23, 42, 0.05) !important; }
body.theme-light .bg-white\/10 { background-color: rgba(15, 23, 42, 0.08) !important; }
body.theme-light .bg-white\/8, body.theme-light .bg-white\/\[\.04\],
body.theme-light .bg-white\/\[\.03\] { background-color: rgba(15, 23, 42, 0.05) !important; }
body.theme-light .bg-black\/25 { background-color: rgba(15, 23, 42, 0.04) !important; }
body.theme-light .bg-slate-950\/85 { background-color: rgba(255, 255, 255, 0.94) !important; }
body.theme-light .border-white\/10 { border-color: rgba(15, 23, 42, 0.14) !important; }
body.theme-light .border-white\/15 { border-color: rgba(15, 23, 42, 0.18) !important; }
body.theme-light .divide-white\/10 > * + * { border-color: rgba(15, 23, 42, 0.14) !important; }
body.theme-light hr.border-white\/10 { border-color: rgba(15, 23, 42, 0.14) !important; }
/* Componentes */
body.theme-light .card {
background: var(--surface-card) !important;
border-color: var(--border-color) !important;
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
}
body.theme-light .badge {
background: rgba(255, 255, 255, 0.9) !important;
border-color: rgba(15, 23, 42, 0.16) !important;
color: #1e293b !important;
}
body.theme-light .btn-ghost {
background: rgba(255, 255, 255, 0.9) !important;
border-color: rgba(15, 23, 42, 0.18) !important;
color: #0f172a !important;
}
body.theme-light .btn-ghost:hover { background: rgba(15, 23, 42, 0.06) !important; }
body.theme-light .btn-primary { color: #ffffff !important; }
body.theme-light .top-nav-link:hover,
body.theme-light .theme-toggle-btn:hover { background: rgba(15, 23, 42, 0.07) !important; }
body.theme-light .theme-toggle-btn { background: rgba(255, 255, 255, 0.9) !important; }
body.theme-light .segmented { background: rgba(15, 23, 42, 0.05) !important; border-color: rgba(15, 23, 42, 0.14) !important; }
body.theme-light .orientation-btn.bg-white\/5 { background-color: rgba(15, 23, 42, 0.05) !important; color: #334155 !important; }
body.theme-light .orientation-btn.bg-neon\/30,
body.theme-light .orientation-btn.bg-violet-500\/25 {
background: rgba(124, 58, 237, 0.14) !important;
border-color: rgba(109, 40, 217, 0.45) !important;
color: #4c1d95 !important;
}
body.theme-light .range { background: linear-gradient(90deg, #7c3aed var(--fill,50%), rgba(15,23,42,.16) var(--fill,50%)) !important; }
body.theme-light .range::-moz-range-track { background: rgba(15,23,42,.16) !important; }
body.theme-light .canvas-frame { border-color: rgba(15, 23, 42, 0.16) !important; box-shadow: 0 8px 24px rgba(15,23,42,.1) !important; }
body.theme-light #runtimeAlert {
background: rgba(245, 158, 11, 0.14) !important;
border-color: rgba(146, 64, 14, 0.4) !important;
color: #92400e !important;
}
body.theme-light details.faq { background: rgba(255,255,255,.85) !important; border-color: rgba(15,23,42,.14) !important; }
body.theme-light details.faq[open] { border-color: rgba(14,116,144,.45) !important; background: rgba(34,211,238,.1) !important; }
body.theme-light details.faq p { color: #3f4c63 !important; }
body.theme-light footer { border-color: rgba(15,23,42,.12) !important; }
/* Elementos dinâmicos gerados pelo app.js */
body.theme-light #pageSelector button:not([class*="cyan"]) {
background-color: rgba(15, 23, 42, 0.05) !important;
border-color: rgba(15, 23, 42, 0.16) !important;
color: #334155 !important;
}
body.theme-light #pageThumbs > button:not([class*="cyan"]) {
background-color: rgba(15, 23, 42, 0.03) !important;
border-color: rgba(15, 23, 42, 0.14) !important;
}
body.theme-light #pageThumbs .font-mono2 { color: #475569 !important; }
body.theme-light #pageSelector button[class*="cyan"],
body.theme-light #pageThumbs > button[class*="cyan"] {
background: rgba(34, 211, 238, 0.16) !important;
border-color: rgba(14, 116, 144, 0.5) !important;
color: #0e7490 !important;
box-shadow: none !important;
}
body.theme-light .text-cyan-200\/90 { color: #0e7490 !important; }
body.theme-light .bg-cyan-500\/15 { background-color: rgba(14, 116, 144, 0.12) !important; }
body.theme-light .bg-violet-500\/15 { background-color: rgba(109, 40, 217, 0.1) !important; }
body.theme-light .bg-rose-500\/15 { background-color: rgba(190, 18, 60, 0.08) !important; }
body.theme-light .bg-emerald-500\/15 { background-color: rgba(4, 120, 87, 0.1) !important; }
body.theme-light .bg-white\/8 { background-color: rgba(15, 23, 42, 0.06) !important; }
body.theme-light .theme-toggle-label-dark { display: none; }
body:not(.theme-light) .theme-toggle-label-light { display: none; }
@media (prefers-reduced-motion: reduce) {
.float-a, .float-b, .shimmer-line { animation: none !important; }
.reveal { opacity: 1; transform: none; }
html { scroll-behavior: auto; }
}
</style>
</head>
<body class="min-h-screen bg-[#070A14] text-slate-100 selection:bg-violet-500/40">
<!-- Header / holy-grail top bar -->
<header class="app-header sticky top-0 z-40 border-b backdrop-blur-md">
<div class="mx-auto flex h-16 max-w-7xl items-center justify-between gap-3 px-4 sm:px-6 lg:px-8">
<a href="#top" class="flex min-w-0 items-center gap-3">
<span class="grid size-9 shrink-0 place-items-center rounded-xl bg-gradient-to-br from-violet-600 to-cyan-500 shadow-glow">
<svg viewBox="0 0 24 24" class="size-5 text-white" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="9" y1="21" x2="9" y2="9"/></svg>
</span>
<span class="min-w-0 leading-tight">
<span class="font-display block truncate text-[15px] font-bold tracking-tight">Make Your Poster</span>
<span class="font-mono2 block text-[11px] text-slate-400">poster · 1 imagem → até 6 folhas</span>
</span>
</a>
<nav class="flex items-center gap-1 sm:gap-2" aria-label="Navegação principal">
<a href="#editor" class="top-nav-link hidden rounded-lg px-3 py-2 text-sm font-semibold transition hover:bg-white/10 md:block">Editor</a>
<a href="#sobre" class="top-nav-link hidden rounded-lg px-3 py-2 text-sm font-semibold transition hover:bg-white/10 sm:block">Sobre</a>
<a href="#faq" class="top-nav-link rounded-lg px-3 py-2 text-sm font-semibold transition hover:bg-white/10">FAQ</a>
<a href="https://github.com/HyperTechDevelopment/HyperTechDevelopment" target="_blank" rel="noopener noreferrer" class="btn-ghost hidden size-9 place-items-center rounded-xl sm:grid" aria-label="Abrir GitHub">
<svg viewBox="0 0 24 24" class="size-4" fill="currentColor" aria-hidden="true"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.44 9.8 8.2 11.38.6.1.82-.26.82-.58 0-.29-.01-1.24-.02-2.25-3.34.73-4.04-1.42-4.04-1.42-.55-1.38-1.33-1.75-1.33-1.75-1.09-.74.08-.73.08-.73 1.2.09 1.84 1.24 1.84 1.24 1.07 1.84 2.81 1.31 3.5 1 .11-.78.42-1.31.76-1.61-2.66-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.39 1.24-3.23-.12-.3-.54-1.53.12-3.18 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.66 1.65.24 2.88.12 3.18.77.84 1.24 1.92 1.24 3.23 0 4.61-2.81 5.62-5.49 5.92.43.37.82 1.1.82 2.22 0 1.61-.01 2.9-.01 3.3 0 .32.21.69.82.57A12 12 0 0 0 24 12c0-6.63-5.37-12-12-12z"/></svg>
</a>
<button id="themeToggleBtn" type="button" class="theme-toggle-btn inline-flex items-center gap-1.5 rounded-xl border px-2.5 py-2 text-xs font-semibold transition hover:bg-white/10" aria-label="Alternar modo claro e escuro">
<svg viewBox="0 0 24 24" class="size-4 theme-toggle-label-dark" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg>
<svg viewBox="0 0 24 24" class="size-4 theme-toggle-label-light" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></svg>
<span class="theme-toggle-label-dark hidden lg:inline">Escuro</span>
<span class="theme-toggle-label-light hidden lg:inline">Claro</span>
</button>
</nav>
</div>
</header>
<main id="top" class="bg-hero relative overflow-hidden">
<canvas id="beams" aria-hidden="true"></canvas>
<div id="spotlight" aria-hidden="true" class="hidden md:block"></div>
<div class="orb -left-20 -top-14 h-52 w-52 bg-violet-600/60"></div>
<div class="orb -right-16 top-1/3 h-64 w-64 bg-cyan-500/50"></div>
<div class="grid-noise absolute inset-0" aria-hidden="true"></div>
<div class="relative mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<!-- Hero: value prop + 3D stage -->
<section class="grid items-center gap-10 pb-12 pt-10 md:pt-14 lg:grid-cols-[1.02fr_.98fr] lg:gap-12 lg:pb-16">
<div class="reveal min-w-0">
<p class="badge text-slate-200">
<span class="size-2 rounded-full bg-emerald-400 animate-pulseDot" aria-hidden="true"></span>
<svg viewBox="0 0 24 24" class="size-3.5 text-emerald-300" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>
100% local no navegador · nenhum upload
</p>
<h1 class="font-display mt-5 max-w-xl text-balance text-4xl font-bold leading-[1.04] tracking-tight sm:text-5xl lg:text-[3.4rem]">
Do JPG ao pôster de parede <span class="hero-gradient bg-gradient-to-r from-violet-300 via-cyan-200 to-violet-300 bg-clip-text text-transparent">em minutos</span>.
</h1>
<p class="mt-4 max-w-xl text-pretty text-[15px] leading-relaxed text-slate-300 sm:text-base">
Envie 1 imagem, divida em até 6 folhas A4 com margem de cola em milímetros,
ajuste o recorte de cada página arrastando e exporte em JPG, PNG ou PDF dentro de um ZIP.
</p>
<div class="mt-6 flex flex-col gap-3 sm:flex-row sm:items-center">
<button id="heroUploadBtn" type="button" class="btn-primary inline-flex items-center justify-center gap-2 rounded-2xl px-6 py-3.5 text-sm font-bold text-white">
<svg viewBox="0 0 24 24" class="size-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
Enviar JPG ou PNG
</button>
<a href="#editor" class="btn-ghost inline-flex items-center justify-center gap-2 rounded-2xl px-6 py-3.5 text-sm font-semibold text-slate-100">
Abrir mesa de montagem
<svg viewBox="0 0 24 24" class="size-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
</a>
</div>
<dl class="mt-8 grid max-w-xl grid-cols-3 divide-x divide-white/10 rounded-2xl border border-white/10 bg-white/[.03]">
<div class="px-4 py-3">
<dt class="text-[11px] font-semibold uppercase tracking-wider text-slate-400">Páginas</dt>
<dd class="font-display text-lg font-bold">até 6</dd>
</div>
<div class="px-4 py-3">
<dt class="text-[11px] font-semibold uppercase tracking-wider text-slate-400">Saída</dt>
<dd class="font-display text-lg font-bold">PDF · ZIP</dd>
</div>
<div class="px-4 py-3">
<dt class="text-[11px] font-semibold uppercase tracking-wider text-slate-400">Limite</dt>
<dd class="font-display text-lg font-bold">25 MB</dd>
</div>
</dl>
</div>
<!-- 3D animated stage (Aceternity-style) -->
<div class="perspective-stage reveal relative mx-auto w-full max-w-[520px]" aria-hidden="true">
<div id="tiltStage" class="relative h-[380px] sm:h-[440px]">
<div class="sheet float-b absolute left-6 right-6 top-10 h-[300px] rotate-[5deg] rounded-2xl p-3 opacity-60 sm:h-[340px]" style="transform: translateZ(-90px) rotate(5deg);">
<div class="h-full w-full rounded-xl bg-slate-800/40"></div>
</div>
<div class="sheet float-a absolute left-3 right-3 top-5 h-[310px] -rotate-[4deg] rounded-2xl p-3 opacity-80 sm:h-[355px]" style="transform: translateZ(-45px) rotate(-4deg);">
<div class="grid h-full w-full grid-cols-2 gap-2 rounded-xl bg-slate-900 p-2">
<div class="rounded-lg bg-violet-500/30"></div>
<div class="rounded-lg bg-cyan-400/30"></div>
<div class="rounded-lg bg-rose-400/30"></div>
<div class="rounded-lg bg-slate-600/40"></div>
</div>
</div>
<div class="sheet absolute inset-x-0 top-0 h-[320px] rounded-2xl p-3 shadow-sheet sm:h-[370px]" style="transform: translateZ(40px);">
<div class="sheet-inner relative h-full w-full overflow-hidden rounded-xl">
<div class="absolute inset-0 opacity-90" style="background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 45%), linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);"></div>
<div class="absolute inset-x-4 top-1/2 h-px -translate-y-1/2 bg-white/70"></div>
<div class="absolute inset-y-4 left-1/2 w-px -translate-x-1/2 bg-white/70"></div>
<span class="absolute left-3 top-3 rounded-md bg-black/55 px-2 py-1 font-mono2 text-[10px] font-medium text-white">P1</span>
<span class="absolute right-3 top-3 rounded-md bg-black/55 px-2 py-1 font-mono2 text-[10px] font-medium text-white">P2</span>
<span class="absolute bottom-3 left-3 rounded-md bg-black/55 px-2 py-1 font-mono2 text-[10px] font-medium text-white">P3</span>
<span class="absolute bottom-3 right-3 rounded-md bg-black/55 px-2 py-1 font-mono2 text-[10px] font-medium text-white">P4</span>
<span class="absolute left-1/2 top-3 -translate-x-1/2 rounded-full bg-white/95 px-3 py-1 text-[11px] font-bold text-slate-900">2 × 2 · A4</span>
</div>
</div>
<div class="absolute -left-1 top-6 rounded-2xl border border-white/15 bg-slate-950/85 px-3 py-2 shadow-card backdrop-blur-md" style="transform: translateZ(80px);">
<p class="font-mono2 text-[10px] uppercase tracking-wider text-cyan-200">margem</p>
<p class="font-display text-sm font-bold">5 mm de cola</p>
</div>
<div class="absolute -right-1 bottom-8 rounded-2xl border border-white/15 bg-slate-950/85 px-3 py-2 shadow-card backdrop-blur-md" style="transform: translateZ(80px);">
<p class="font-mono2 text-[10px] uppercase tracking-wider text-violet-200">exportação</p>
<p class="font-display text-sm font-bold">ZIP · JPG/PNG/PDF</p>
</div>
</div>
</div>
</section>
<!-- Steps: auto-fit grid -->
<section class="reveal grid gap-4 pb-12 sm:grid-cols-3 lg:pb-14" aria-label="Etapas">
<div class="card card-hover rounded-2xl p-5">
<span class="grid size-10 place-items-center rounded-xl bg-violet-500/15 text-violet-200">
<svg viewBox="0 0 24 24" class="size-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
</span>
<h2 class="font-display mt-3 text-[15px] font-bold">1 · Envie com validação</h2>
<p class="mt-1.5 text-sm leading-relaxed text-slate-400">JPG ou PNG até 25 MB. Preview imediato com grade de corte 1–6 páginas.</p>
</div>
<div class="card card-hover rounded-2xl p-5">
<span class="grid size-10 place-items-center rounded-xl bg-cyan-500/15 text-cyan-200">
<svg viewBox="0 0 24 24" class="size-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg>
</span>
<h2 class="font-display mt-3 text-[15px] font-bold">2 · Ajuste por página</h2>
<p class="mt-1.5 text-sm leading-relaxed text-slate-400">Nitidez, contraste, saturação, margem e crop individual com arraste.</p>
</div>
<div class="card card-hover rounded-2xl p-5">
<span class="grid size-10 place-items-center rounded-xl bg-rose-500/15 text-rose-200">
<svg viewBox="0 0 24 24" class="size-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
</span>
<h2 class="font-display mt-3 text-[15px] font-bold">3 · Exporte compactado</h2>
<p class="mt-1.5 text-sm leading-relaxed text-slate-400">PDF A4 para impressão ou JPG/PNG por folha, tudo dentro de um ZIP.</p>
</div>
</section>
<!-- Editor: advanced responsive grid -->
<section id="editor" class="grid scroll-mt-24 items-start gap-5 pb-12 lg:grid-cols-[1.32fr_.92fr] lg:gap-6 lg:pb-16">
<!-- Preview / assembly -->
<article class="card reveal rounded-3xl p-4 shadow-card sm:p-6" aria-label="Mesa de montagem">
<div class="flex flex-wrap items-start justify-between gap-3">
<div class="flex items-center gap-3">
<span class="grid size-10 shrink-0 place-items-center rounded-xl bg-white/8 text-cyan-200">
<svg viewBox="0 0 24 24" class="size-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/></svg>
</span>
<div>
<h2 class="font-display text-lg font-bold tracking-tight">Mesa de montagem</h2>
<p class="text-[13px] text-slate-400">Preview com linhas de corte e editor de recorte por folha.</p>
</div>
</div>
<span class="badge font-mono2 text-[11px] text-slate-300"><span class="size-1.5 rounded-full bg-cyan-300"></span>canvas · tempo real</span>
</div>
<div class="canvas-frame mt-4 overflow-hidden rounded-2xl">
<canvas id="previewCanvas" class="aspect-[16/9] w-full"></canvas>
</div>
<div class="mt-2.5 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between">
<p id="previewInfo" class="font-mono2 text-[11.5px] text-slate-400">Faça upload para iniciar a pré-visualização.</p>
<p id="processingInfo" class="font-mono2 text-[11.5px] text-cyan-200/90">Filtros ativos: nenhum (padrão)</p>
</div>
<hr class="my-5 border-white/10" />
<div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
<h3 class="section-label">Ajuste individual por página</h3>
<p id="pageEditorInfo" class="font-mono2 text-[11px] text-cyan-200/90">Selecione uma página e arraste para reposicionar o crop.</p>
</div>
<div id="pageSelector" class="mt-3 flex flex-wrap gap-2" role="tablist" aria-label="Selecionar página"></div>
<div class="mt-3 flex justify-end">
<button id="undoPageCropBtn" type="button" class="btn-ghost inline-flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-semibold text-slate-200">
<svg viewBox="0 0 24 24" class="size-3.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 7v6h6"/><path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13"/></svg>
Desfazer ajuste da página
</button>
</div>
<div class="canvas-frame mt-3 overflow-hidden rounded-2xl">
<canvas id="pageEditorCanvas" class="aspect-[21/9] w-full touch-none"></canvas>
</div>
<div id="pageThumbs" class="mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3"></div>
</article>
<!-- Control panel -->
<aside class="card reveal rounded-3xl p-4 shadow-card sm:p-6 lg:sticky lg:top-24" aria-label="Painel de criação">
<div class="flex items-center gap-3">
<span class="grid size-10 shrink-0 place-items-center rounded-xl bg-violet-500/15 text-violet-200">
<svg viewBox="0 0 24 24" class="size-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg>
</span>
<div>
<h2 class="font-display text-lg font-bold tracking-tight">Painel de criação</h2>
<p class="text-[13px] text-slate-400">6 controles · aplicados na hora.</p>
</div>
</div>
<div id="runtimeAlert" class="mt-3 hidden rounded-xl border border-amber-300/40 bg-amber-500/10 px-3 py-2 text-xs text-amber-100" role="alert"></div>
<input id="fileInput" type="file" accept="image/jpeg,image/png" class="hidden" aria-label="Selecionar imagem" />
<div class="mt-5 space-y-5">
<div>
<label for="pagesInput" class="section-label">Páginas · máx 6</label>
<input id="pagesInput" type="number" min="1" max="6" value="4" class="panel-input mt-2 w-full rounded-xl border px-3 py-2.5 text-sm font-semibold outline-none focus:ring-2 focus:ring-cyan-400/60" />
</div>
<div>
<span class="section-label" id="orientationLabel">Orientação do pôster</span>
<div class="segmented mt-2 grid grid-cols-2 gap-1" role="group" aria-labelledby="orientationLabel">
<button data-orientation="vertical" type="button" class="orientation-btn inline-flex items-center justify-center gap-2 bg-violet-500/25 px-3 py-2.5 text-sm font-semibold">
<svg viewBox="0 0 24 24" class="size-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="7" y="2" width="10" height="20" rx="2"/></svg>
Vertical
</button>
<button data-orientation="horizontal" type="button" class="orientation-btn inline-flex items-center justify-center gap-2 bg-white/5 px-3 py-2.5 text-sm font-semibold">
<svg viewBox="0 0 24 24" class="size-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="7" width="20" height="10" rx="2"/></svg>
Horizontal
</button>
</div>
</div>
<div class="space-y-4 rounded-2xl border border-white/10 bg-black/25 p-4">
<div>
<div class="mb-1.5 flex items-center justify-between">
<label for="marginInput" class="text-xs font-semibold text-slate-300">Margem de cola</label>
<span class="rounded-md bg-white/8 px-2 py-0.5 font-mono2 text-[11px] text-cyan-200"><span id="marginValue">5</span> mm</span>
</div>
<input id="marginInput" class="range w-full" type="range" min="0" max="20" step="1" value="5" />
</div>
<div>
<div class="mb-1.5 flex items-center justify-between">
<label for="sharpnessInput" class="text-xs font-semibold text-slate-300">Nitidez</label>
<span id="sharpnessValue" class="rounded-md bg-white/8 px-2 py-0.5 font-mono2 text-[11px] text-cyan-200">0</span>
</div>
<input id="sharpnessInput" class="range w-full" type="range" min="0" max="100" step="1" value="0" />
</div>
<div>
<div class="mb-1.5 flex items-center justify-between">
<label for="contrastInput" class="text-xs font-semibold text-slate-300">Contraste</label>
<span id="contrastValue" class="rounded-md bg-white/8 px-2 py-0.5 font-mono2 text-[11px] text-cyan-200">100%</span>
</div>
<input id="contrastInput" class="range w-full" type="range" min="50" max="200" step="1" value="100" />
</div>
<div>
<div class="mb-1.5 flex items-center justify-between">
<label for="saturationInput" class="text-xs font-semibold text-slate-300">Saturação</label>
<span id="saturationValue" class="rounded-md bg-white/8 px-2 py-0.5 font-mono2 text-[11px] text-cyan-200">100%</span>
</div>
<input id="saturationInput" class="range w-full" type="range" min="0" max="200" step="1" value="100" />
</div>
<div>
<div class="mb-1.5 flex items-center justify-between">
<label for="resizeInput" class="text-xs font-semibold text-slate-300">Escala da imagem</label>
<span id="resizeValue" class="rounded-md bg-white/8 px-2 py-0.5 font-mono2 text-[11px] text-cyan-200">100%</span>
</div>
<input id="resizeInput" class="range w-full" type="range" min="25" max="200" step="1" value="100" />
<button id="resetResizeBtn" type="button" class="btn-ghost mt-2.5 w-full rounded-xl px-3 py-2 text-xs font-semibold text-slate-200">Voltar escala para 100%</button>
</div>
</div>
<div class="grid grid-cols-[1fr_auto] gap-2">
<button id="resetBtn" type="button" class="btn-ghost control-button inline-flex items-center justify-center gap-2 rounded-xl px-3 py-2.5 text-sm font-semibold">
<svg viewBox="0 0 24 24" class="size-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></svg>
Recomeçar
</button>
<span class="inline-flex items-center rounded-xl border border-white/10 bg-white/5 px-3 font-mono2 text-[11px] text-slate-400">A4 · 96dpi</span>
</div>
<button id="generateBtn" type="button" class="btn-primary inline-flex w-full items-center justify-center gap-2 rounded-2xl px-4 py-3.5 text-sm font-bold text-white">
<svg viewBox="0 0 24 24" class="size-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Gerar pôster e baixar ZIP
</button>
<p class="text-center text-[12px] leading-relaxed text-slate-500">Você escolhe o formato na próxima etapa: JPG leve, PNG máxima ou PDF A4.</p>
</div>
</aside>
</section>
<!-- Info grid: sobre + contato + faq -->
<section class="grid items-start gap-5 pb-16 lg:grid-cols-[1fr_1fr] lg:gap-6">
<div class="grid gap-5">
<div id="sobre" class="card reveal scroll-mt-24 rounded-3xl p-5 sm:p-6">
<div class="flex items-center gap-3">
<span class="grid size-10 place-items-center rounded-xl bg-emerald-500/15 text-emerald-200">
<svg viewBox="0 0 24 24" class="size-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
</span>
<h3 class="font-display text-lg font-bold tracking-tight">Por que este app existe</h3>
</div>
<p class="mt-3 text-sm leading-relaxed text-slate-300">
Sou Marcos Gabriel, desenvolvedor full stack. Queria imprimir meus próprios pôsteres sem
lidar com anúncios ou editores confusos, então construí uma mesa de montagem direta:
1 imagem, recorte visível por folha e exportação pronta para a gráfica ou impressora caseira.
</p>
<div class="marquee-mask mt-4 overflow-hidden">
<div class="flex gap-2 whitespace-nowrap text-[12px] font-semibold text-slate-400">
<span class="rounded-full border border-white/10 bg-white/5 px-3 py-1">Sem conta</span>
<span class="rounded-full border border-white/10 bg-white/5 px-3 py-1">Sem upload</span>
<span class="rounded-full border border-white/10 bg-white/5 px-3 py-1">Crop por folha</span>
<span class="rounded-full border border-white/10 bg-white/5 px-3 py-1">Margem em mm</span>
<span class="rounded-full border border-white/10 bg-white/5 px-3 py-1">PDF A4</span>
</div>
</div>
</div>
<div id="contato" class="card reveal scroll-mt-24 rounded-3xl p-5 sm:p-6">
<h3 class="font-display text-lg font-bold tracking-tight">Fale comigo</h3>
<p class="mt-1 text-sm text-slate-400">Parcerias, melhorias ou uma versão sob medida para seu estúdio.</p>
<div class="mt-4 grid gap-2 sm:grid-cols-2">
<a href="https://www.linkedin.com/in/marcos-gabriel-dev-fullstack" target="_blank" rel="noopener noreferrer" class="btn-ghost inline-flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-sm font-semibold">
<svg viewBox="0 0 24 24" class="size-4" fill="currentColor" aria-hidden="true"><path d="M4.983 3.5c0 1.38-1.11 2.5-2.483 2.5S.017 4.88.017 3.5 1.127 1 2.5 1s2.483 1.12 2.483 2.5zM.24 8h4.52v15H.24V8zm7.24 0h4.33v2.05h.06c.6-1.14 2.07-2.35 4.26-2.35 4.56 0 5.4 3 5.4 6.89V23H17v-7.42c0-1.77-.03-4.04-2.46-4.04-2.47 0-2.85 1.93-2.85 3.91V23H7.48V8z"/></svg>
LinkedIn
</a>
<a href="https://github.com/HyperTechDevelopment/HyperTechDevelopment" target="_blank" rel="noopener noreferrer" class="btn-ghost inline-flex items-center justify-center gap-2 rounded-xl px-4 py-3 text-sm font-semibold">
<svg viewBox="0 0 24 24" class="size-4" fill="currentColor" aria-hidden="true"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.44 9.8 8.2 11.38.6.1.82-.26.82-.58 0-.29-.01-1.24-.02-2.25-3.34.73-4.04-1.42-4.04-1.42-.55-1.38-1.33-1.75-1.33-1.75-1.09-.74.08-.73.08-.73 1.2.09 1.84 1.24 1.84 1.24 1.07 1.84 2.81 1.31 3.5 1 .11-.78.42-1.31.76-1.61-2.66-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.39 1.24-3.23-.12-.3-.54-1.53.12-3.18 0 0 1.01-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.66 1.65.24 2.88.12 3.18.77.84 1.24 1.92 1.24 3.23 0 4.61-2.81 5.62-5.49 5.92.43.37.82 1.1.82 2.22 0 1.61-.01 2.9-.01 3.3 0 .32.21.69.82.57A12 12 0 0 0 24 12c0-6.63-5.37-12-12-12z"/></svg>
GitHub
</a>
</div>
</div>
</div>
<div id="faq" class="card reveal scroll-mt-24 rounded-3xl p-5 sm:p-6">
<div class="flex items-center gap-3">
<span class="grid size-10 place-items-center rounded-xl bg-cyan-500/15 text-cyan-200">
<svg viewBox="0 0 24 24" class="size-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/></svg>
</span>
<h3 class="font-display text-lg font-bold tracking-tight">Perguntas diretas</h3>
</div>
<div class="mt-4 space-y-2.5 text-sm">
<details class="faq rounded-2xl border border-white/10 bg-white/[.04] p-4" open>
<summary class="flex cursor-pointer items-center justify-between gap-3 font-semibold">Minha imagem sai do meu computador?<span class="text-cyan-200">−</span></summary>
<p class="mt-2 leading-relaxed text-slate-400">Não. Todo o recorte, filtro e montagem do PDF acontecem via Canvas no seu navegador.</p>
</details>
<details class="faq rounded-2xl border border-white/10 bg-white/[.04] p-4">
<summary class="flex cursor-pointer items-center justify-between gap-3 font-semibold">Quantas folhas consigo montar?<span class="text-cyan-200">+</span></summary>
<p class="mt-2 leading-relaxed text-slate-400">De 1 a 6. O app sugere a grade (ex.: 2×2, 3×2) conforme a orientação vertical ou horizontal.</p>
</details>
<details class="faq rounded-2xl border border-white/10 bg-white/[.04] p-4">
<summary class="flex cursor-pointer items-center justify-between gap-3 font-semibold">Como corrijo só uma folha torta?<span class="text-cyan-200">+</span></summary>
<p class="mt-2 leading-relaxed text-slate-400">Selecione P1–P6, arraste o recorte no editor e use “Desfazer ajuste da página” se precisar voltar.</p>
</details>
<details class="faq rounded-2xl border border-white/10 bg-white/[.04] p-4">
<summary class="flex cursor-pointer items-center justify-between gap-3 font-semibold">Qual formato devo baixar?<span class="text-cyan-200">+</span></summary>
<p class="mt-2 leading-relaxed text-slate-400">PDF A4 para imprimir direto; JPG para arquivo leve; PNG para máxima fidelidade de cor.</p>
</details>
</div>
</div>
</section>
</div>
<footer class="relative border-t border-white/10">
<div class="mx-auto flex max-w-7xl flex-col gap-2 px-4 py-6 text-[13px] text-slate-500 sm:flex-row sm:items-center sm:justify-between sm:px-6 lg:px-8">
<p><span class="font-semibold text-slate-300">Make Your Poster</span> · montagem local, sem servidor.</p>
<p class="font-mono2 text-[11.5px]">JPG / PNG → 6 folhas · margem mm · ZIP</p>
</div>
</footer>
</main>
<script src="./src/js/app.js"></script>
<script>
(function premiumFx() {
var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
/* Slider fill */
function paintRange(input) {
if (!input) return;
var min = Number(input.min || 0), max = Number(input.max || 100), v = Number(input.value || 0);
var pct = max > min ? ((v - min) / (max - min)) * 100 : 50;
input.style.setProperty("--fill", pct + "%");
}
document.querySelectorAll(".range").forEach(function (r) {
paintRange(r);
r.addEventListener("input", function () { paintRange(r); });
});
/* Spotlight follows cursor (desktop) */
var spot = document.getElementById("spotlight");
var main = document.querySelector("main");
if (spot && main && !reduce && window.matchMedia("(pointer: fine)").matches) {
main.addEventListener("pointermove", function (e) {
var rect = main.getBoundingClientRect();
spot.style.left = (e.clientX - rect.left) + "px";
spot.style.top = (e.clientY - rect.top) + "px";
});
}
/* 3D tilt on poster stage */
var stage = document.getElementById("tiltStage");
var zone = stage ? stage.parentElement : null;
if (stage && zone && !reduce && window.matchMedia("(pointer: fine)").matches) {
zone.addEventListener("pointermove", function (e) {
var r = zone.getBoundingClientRect();
var px = (e.clientX - r.left) / r.width - 0.5;
var py = (e.clientY - r.top) / r.height - 0.5;
stage.style.transform = "rotateY(" + (px * 14) + "deg) rotateX(" + (-py * 12) + "deg)";
});
zone.addEventListener("pointerleave", function () { stage.style.transform = "rotateY(0deg) rotateX(0deg)"; });
}
/* Aceternity-style beams */
var beams = document.getElementById("beams");
if (beams && !reduce) {
var ctx = beams.getContext("2d");
var W = 0, H = 0, t = 0;
var lines = [
{ x: 0.12, speed: 0.0035, hue: 265, width: 1.6 },
{ x: 0.38, speed: 0.0026, hue: 190, width: 1.2 },
{ x: 0.62, speed: 0.0031, hue: 265, width: 1.4 },
{ x: 0.85, speed: 0.0022, hue: 330, width: 1.1 }
];
function resize() {
var r = beams.parentElement.getBoundingClientRect();
W = beams.width = Math.floor(r.width);
H = beams.height = Math.floor(Math.min(r.height, 1100));
beams.style.height = H + "px";
}
resize();
window.addEventListener("resize", resize);
(function draw() {
t += 1;
ctx.clearRect(0, 0, W, H);
lines.forEach(function (L, i) {
var bx = W * L.x + Math.sin(t * L.speed + i * 1.7) * 40;
var grad = ctx.createLinearGradient(0, 0, 0, H);
grad.addColorStop(0, "hsla(" + L.hue + ",90%,65%,0)");
grad.addColorStop(0.35, "hsla(" + L.hue + ",90%,65%,.55)");
grad.addColorStop(1, "hsla(" + L.hue + ",90%,65%,0)");
ctx.strokeStyle = grad;
ctx.lineWidth = L.width;
ctx.beginPath();
ctx.moveTo(bx, -20);
ctx.bezierCurveTo(bx - 60, H * 0.3, bx + 60, H * 0.65, bx - 20, H + 20);
ctx.stroke();
var py = (t * (0.9 + i * 0.25)) % (H + 80) - 40;
ctx.fillStyle = "hsla(" + L.hue + ",95%,72%,.9)";
ctx.beginPath();
ctx.arc(bx + Math.sin(py * 0.01) * 18, py, 2.2, 0, Math.PI * 2);
ctx.fill();
});
requestAnimationFrame(draw);
})();
}
/* Reveal on scroll */
var items = document.querySelectorAll(".reveal");
if ("IntersectionObserver" in window && !reduce) {
var io = new IntersectionObserver(function (entries) {
entries.forEach(function (en) {
if (en.isIntersecting) { en.target.classList.add("visible"); io.unobserve(en.target); }
});
}, { threshold: 0.12 });
items.forEach(function (el) { io.observe(el); });
} else {
items.forEach(function (el) { el.classList.add("visible"); });
}
})();
</script>
</body>
</html>