-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1.html
More file actions
626 lines (560 loc) · 25.2 KB
/
1.html
File metadata and controls
626 lines (560 loc) · 25.2 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
<!DOCTYPE html>
<html class="dark" lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>CHANGEMEPLS - Design at the speed of AI</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"tertiary-fixed-dim": "#c6c6c7",
"tertiary": "#ffffff",
"surface": "#121318",
"on-tertiary-fixed-variant": "#454747",
"error": "#ffb4ab",
"secondary": "#c7c6cd",
"on-tertiary-container": "#636565",
"surface-container-highest": "#34343a",
"on-surface-variant": "#c4c7c8",
"surface-container": "#1e1f24",
"inverse-surface": "#e3e2e9",
"on-background": "#e3e2e9",
"primary-fixed-dim": "#c6c6c7",
"secondary-fixed": "#e3e2e9",
"outline": "#8e9192",
"on-secondary-fixed": "#1a1b20",
"on-secondary-fixed-variant": "#46464c",
"error-container": "#93000a",
"inverse-on-surface": "#2f3035",
"surface-container-lowest": "#0d0e13",
"on-secondary": "#2f3035",
"primary": "#ffffff",
"on-primary-fixed-variant": "#454747",
"on-error-container": "#ffdad6",
"secondary-fixed-dim": "#c7c6cd",
"on-primary": "#2f3131",
"surface-dim": "#121318",
"primary-fixed": "#e2e2e2",
"surface-container-low": "#1a1b20",
"on-tertiary": "#2f3131",
"on-primary-container": "#636565",
"background": "#121318",
"inverse-primary": "#5d5f5f",
"on-surface": "#e3e2e9",
"tertiary-container": "#e2e2e2",
"secondary-container": "#46464c",
"surface-variant": "#34343a",
"primary-container": "#e2e2e2",
"surface-container-high": "#292a2f",
"on-error": "#690005",
"surface-tint": "#c6c6c7",
"surface-bright": "#38393e",
"tertiary-fixed": "#e2e2e2",
"outline-variant": "#444748",
"on-secondary-container": "#b5b4bb",
"on-tertiary-fixed": "#1a1c1c",
"on-primary-fixed": "#1a1c1c"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"gutter": "24px",
"container-max": "1200px",
"unit": "8px",
"margin": "64px"
},
"fontFamily": {
"headline-lg": ["Inter"],
"label-md": ["Inter"],
"headline-md": ["Inter"],
"body-lg": ["Inter"],
"headline-xl": ["Inter"],
"code": ["Inter"],
"body-md": ["Inter"]
},
"fontSize": {
"headline-lg": ["48px", { "lineHeight": "1.2", "letterSpacing": "-0.01em", "fontWeight": "500" }],
"label-md": ["14px", { "lineHeight": "1", "letterSpacing": "0.05em", "fontWeight": "600" }],
"headline-md": ["32px", { "lineHeight": "1.3", "fontWeight": "500" }],
"body-lg": ["18px", { "lineHeight": "1.6", "fontWeight": "400" }],
"headline-xl": ["72px", { "lineHeight": "1.1", "letterSpacing": "-0.02em", "fontWeight": "600" }],
"code": ["14px", { "lineHeight": "1.5", "fontWeight": "400" }],
"body-md": ["16px", { "lineHeight": "1.6", "fontWeight": "400" }]
}
}
}
}
</script>
<style>
*, *::before, *::after {
box-sizing: border-box;
letter-spacing: 0 !important;
}
button,
input {
font: inherit;
}
button {
border: 0;
cursor: pointer;
}
html,
body {
width: 100%;
min-height: 100%;
margin: 0;
}
.dot-grid {
background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
background-size: 32px 32px;
}
.site-header {
position: fixed;
inset: 0 0 auto 0;
z-index: 50;
width: 100%;
height: 64px;
background: rgba(0, 0, 0, 0.82);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
}
.site-shell {
width: 100%;
height: 100%;
margin: 0 auto;
padding: 0 32px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.site-main {
width: 100%;
max-width: none !important;
min-height: calc(100svh - 160px);
padding: clamp(128px, 22vh, 192px) 24px clamp(80px, 12vh, 128px);
}
.hero-copy {
width: min(100%, 760px);
}
.hero-title {
font-size: clamp(44px, 6vw, 72px) !important;
line-height: 1.08 !important;
overflow-wrap: anywhere;
}
.hero-subtitle {
font-size: clamp(15px, 1.4vw, 18px) !important;
}
.prompt-card {
width: min(100%, 680px);
}
.ambient-glow {
width: min(800px, calc(100vw - 48px)) !important;
height: min(400px, 54vw) !important;
}
.prompt-row,
.prompt-input {
min-width: 0;
}
.prompt-row > .material-symbols-outlined {
flex: 0 0 auto;
}
.prompt-submit {
width: 40px;
height: 40px;
flex: 0 0 40px;
}
.suggestion-list {
min-width: 0;
}
.suggestion-button {
min-height: 32px;
max-width: 100%;
white-space: nowrap;
}
.site-footer {
width: 100%;
margin-top: auto;
background: #000;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.site-footer .site-shell {
min-height: 96px;
color: rgba(255, 255, 255, 0.4);
font-size: 12px;
text-transform: uppercase;
}
.footer-links {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 16px 24px;
}
.footer-link {
min-height: 32px;
white-space: nowrap;
}
.captcha-modal {
position: fixed;
inset: 0;
z-index: 100;
display: none;
align-items: center;
justify-content: center;
padding: 24px;
background: rgba(0, 0, 0, 0.68);
-webkit-backdrop-filter: blur(18px);
backdrop-filter: blur(18px);
}
.captcha-modal.is-open {
display: flex;
}
.captcha-panel {
position: relative;
width: min(100%, 420px);
max-height: calc(100svh - 48px);
overflow: auto;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
background: #191a1f;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.captcha-close {
position: absolute;
z-index: 2;
top: 16px;
right: 16px;
width: 36px;
height: 36px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
font-size: 22px;
line-height: 1;
}
.captcha-header {
margin: 16px 16px 12px;
padding: 16px 56px 16px 16px;
background: #2563eb;
color: #fff;
}
.captcha-header span {
display: block;
opacity: 0.8;
font-size: 14px;
}
.captcha-header strong {
display: block;
margin-top: 4px;
font-size: 20px;
line-height: 1.2;
font-weight: 600;
}
.captcha-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 4px;
padding: 0 16px 16px;
}
.captcha-tile {
position: relative;
aspect-ratio: 1;
overflow: hidden;
border: 2px solid transparent;
background:
linear-gradient(135deg, rgba(255,255,255,0.2), transparent 40%),
var(--tile-bg, #24262d);
}
.captcha-tile:nth-child(1) { --tile-bg: radial-gradient(circle at 70% 25%, #9ca3af, #111827 58%); }
.captcha-tile:nth-child(2) { --tile-bg: conic-gradient(from 45deg, #1d4ed8, #111827, #7c3aed, #1d4ed8); }
.captcha-tile:nth-child(3) { --tile-bg: linear-gradient(45deg, #27272a, #0f172a 45%, #f8fafc 46%, #111827 54%); }
.captcha-tile:nth-child(4) { --tile-bg: repeating-linear-gradient(60deg, #334155 0 8px, #020617 8px 16px); }
.captcha-tile:nth-child(5) { --tile-bg: radial-gradient(circle at 50% 50%, #c084fc, #1e1b4b 42%, #030712 70%); }
.captcha-tile:nth-child(6) { --tile-bg: linear-gradient(120deg, #0f766e, #111827 46%, #475569); }
.captcha-tile:nth-child(7) { --tile-bg: conic-gradient(from 90deg, #111827, #64748b, #020617, #94a3b8, #111827); }
.captcha-tile:nth-child(8) { --tile-bg: radial-gradient(circle at 20% 80%, #f8fafc, #1f2937 34%, #020617); }
.captcha-tile:nth-child(9) { --tile-bg: repeating-conic-gradient(from 18deg, #1f2937 0 10deg, #4b5563 10deg 20deg); }
.captcha-tile.is-selected {
border-color: #60a5fa;
box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.45);
}
.captcha-tile.is-selected::after {
content: "check";
position: absolute;
top: 6px;
right: 6px;
width: 22px;
height: 22px;
border-radius: 999px;
display: grid;
place-items: center;
background: #2563eb;
color: #fff;
font-family: "Material Symbols Outlined";
font-size: 16px;
}
.captcha-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin: 0 16px;
padding: 14px 0 16px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.captcha-tools {
display: flex;
gap: 10px;
color: #c4c7c8;
}
.captcha-tool {
width: 32px;
height: 32px;
display: grid;
place-items: center;
border-radius: 6px;
}
.captcha-tool:hover,
.captcha-close:hover {
background: rgba(255, 255, 255, 0.14);
}
.captcha-verify {
min-width: 96px;
min-height: 36px;
padding: 0 20px;
border-radius: 4px;
background: #2563eb;
color: #fff;
font-weight: 600;
}
.captcha-verify:hover {
background: #1d4ed8;
}
.captcha-error {
min-height: 28px;
padding: 0 16px 18px;
color: #ffb4ab;
font-size: 14px;
text-align: center;
visibility: hidden;
}
.captcha-error.is-visible {
visibility: visible;
}
@media (max-width: 640px) {
.site-shell {
padding: 0 16px;
}
.site-main {
min-height: calc(100svh - 160px);
padding: 112px 16px 64px;
}
.hero-copy {
margin-bottom: 40px !important;
}
.hero-title {
font-size: clamp(38px, 11vw, 48px) !important;
}
.prompt-row {
gap: 10px !important;
padding-left: 12px !important;
padding-right: 10px !important;
}
.prompt-input {
font-size: 15px !important;
}
.prompt-row > .material-symbols-outlined {
display: none;
}
.suggestion-list {
flex-direction: column;
}
.suggestion-button {
width: 100%;
justify-content: center;
}
.site-footer .site-shell {
height: auto;
min-height: 132px;
padding-top: 24px;
padding-bottom: 24px;
flex-direction: column;
justify-content: center;
text-align: center;
}
.footer-links {
justify-content: center;
gap: 8px 16px;
}
.captcha-modal {
padding: 16px;
}
.captcha-panel {
width: 100%;
}
}
</style>
</head>
<body class="bg-background text-on-background min-h-screen font-body-md flex flex-col relative overflow-x-hidden">
<!-- Background Dot Grid -->
<div class="fixed inset-0 pointer-events-none dot-grid z-0"></div>
<!-- TopNavBar -->
<header class="site-header font-inter antialiased">
<div class="site-shell">
<div class="text-xl font-medium text-white">CHANGEMEPLS</div>
<button class="captcha-trigger bg-primary text-on-primary font-label-md text-label-md px-4 py-2 rounded-full hover:bg-white hover:text-black transition-all duration-300" type="button">Try now</button>
</div>
</header>
<!-- Main Content Canvas -->
<main class="site-main flex-grow flex flex-col items-center justify-center relative z-10">
<div class="hero-copy text-center mx-auto space-y-6 mb-16">
<h1 class="hero-title font-headline-xl text-headline-xl text-primary drop-shadow-md">Design at the speed of AI</h1>
<p class="hero-subtitle font-body-lg text-body-lg text-on-surface-variant max-w-xl mx-auto">Transform ideas into UI designs for mobile and web applications</p>
</div>
<!-- Prompt Input Card (Fake) -->
<div class="prompt-card bg-surface-container border border-outline-variant rounded-xl p-2 shadow-2xl backdrop-blur-sm group hover:border-outline transition-colors duration-300 relative">
<div class="prompt-row flex items-center gap-4 px-4 py-3 bg-surface-container-low rounded-lg relative overflow-hidden">
<span class="material-symbols-outlined text-on-surface-variant text-2xl group-focus-within:text-primary transition-colors">auto_awesome</span>
<input class="prompt-input flex-grow bg-transparent border-none focus:ring-0 font-body-lg text-body-lg text-primary placeholder:text-on-surface-variant/50 outline-none w-full" placeholder="What native mobile app shall we design?" readonly="" type="text"/>
<button class="captcha-trigger prompt-submit bg-primary text-on-primary p-2 rounded-full flex items-center justify-center hover:bg-white hover:scale-105 transition-all duration-300 active:scale-95 shadow-lg shadow-primary/20" type="button" aria-label="Submit prompt">
<span class="material-symbols-outlined text-xl">arrow_upward</span>
</button>
</div>
<div class="suggestion-list flex flex-wrap gap-2 mt-4 px-2 pb-2">
<button class="captcha-trigger suggestion-button px-3 py-1.5 rounded-full border border-outline-variant bg-surface-container-low text-on-surface-variant font-code text-code hover:bg-surface-container-high hover:text-primary transition-colors flex items-center gap-2" type="button">
<span class="material-symbols-outlined text-[16px]">shopping_cart</span>
E-commerce Store
</button>
<button class="captcha-trigger suggestion-button px-3 py-1.5 rounded-full border border-outline-variant bg-surface-container-low text-on-surface-variant font-code text-code hover:bg-surface-container-high hover:text-primary transition-colors flex items-center gap-2" type="button">
<span class="material-symbols-outlined text-[16px]">fitness_center</span>
Workout Tracker
</button>
<button class="captcha-trigger suggestion-button px-3 py-1.5 rounded-full border border-outline-variant bg-surface-container-low text-on-surface-variant font-code text-code hover:bg-surface-container-high hover:text-primary transition-colors flex items-center gap-2" type="button">
<span class="material-symbols-outlined text-[16px]">receipt_long</span>
Expense Manager
</button>
</div>
</div>
<!-- Decorative Elements behind card -->
<div class="ambient-glow absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[400px] bg-primary/5 blur-[120px] rounded-full pointer-events-none -z-10"></div>
</main>
<!-- Footer -->
<footer class="site-footer font-inter relative z-10">
<div class="site-shell">
<div>© 2024 Google Laboratory Experiment</div>
<div class="footer-links">
<button class="captcha-trigger footer-link hover:text-white transition-colors" type="button">Privacy</button>
<button class="captcha-trigger footer-link hover:text-white transition-colors" type="button">Terms</button>
<button class="captcha-trigger footer-link hover:text-white transition-colors" type="button">Research</button>
<button class="captcha-trigger footer-link hover:text-white transition-colors" type="button">Documentation</button>
</div>
</div>
</footer>
<div class="captcha-modal" id="captchaModal" role="dialog" aria-modal="true" aria-hidden="true" aria-labelledby="captchaTitle">
<div class="captcha-panel relative" role="document">
<button class="captcha-close" id="captchaClose" type="button" aria-label="Close">×</button>
<div class="captcha-header">
<span>Select all images with</span>
<strong id="captchaTitle">a 4-dimensional object</strong>
</div>
<div class="captcha-grid" id="captchaGrid">
<button class="captcha-tile" type="button" aria-label="Captcha tile 1"></button>
<button class="captcha-tile" type="button" aria-label="Captcha tile 2"></button>
<button class="captcha-tile" type="button" aria-label="Captcha tile 3"></button>
<button class="captcha-tile" type="button" aria-label="Captcha tile 4"></button>
<button class="captcha-tile" type="button" aria-label="Captcha tile 5"></button>
<button class="captcha-tile" type="button" aria-label="Captcha tile 6"></button>
<button class="captcha-tile" type="button" aria-label="Captcha tile 7"></button>
<button class="captcha-tile" type="button" aria-label="Captcha tile 8"></button>
<button class="captcha-tile" type="button" aria-label="Captcha tile 9"></button>
</div>
<div class="captcha-actions">
<div class="captcha-tools">
<button class="captcha-tool" id="captchaRefresh" type="button" aria-label="Refresh challenge">
<span class="material-symbols-outlined text-lg">refresh</span>
</button>
<button class="captcha-tool" type="button" aria-label="Play audio challenge">
<span class="material-symbols-outlined text-lg">volume_up</span>
</button>
<button class="captcha-tool" type="button" aria-label="Captcha information">
<span class="material-symbols-outlined text-lg">info</span>
</button>
</div>
<button class="captcha-verify" id="captchaVerify" type="button">Verify</button>
</div>
<div class="captcha-error" id="captchaError" aria-live="polite">Verification failed. Please select every impossible object and try again.</div>
</div>
</div>
<script>
(() => {
const modal = document.getElementById("captchaModal");
const closeButton = document.getElementById("captchaClose");
const refreshButton = document.getElementById("captchaRefresh");
const verifyButton = document.getElementById("captchaVerify");
const error = document.getElementById("captchaError");
const promptInput = document.querySelector(".prompt-input");
const tiles = [...document.querySelectorAll(".captcha-tile")];
const triggers = [...document.querySelectorAll("header button, main button, footer button")];
const compactPrompt = window.matchMedia("(max-width: 520px)");
const syncPromptPlaceholder = () => {
promptInput.placeholder = compactPrompt.matches
? "What shall we design?"
: "What native mobile app shall we design?";
};
const resetChallenge = (hideError = true) => {
tiles.forEach((tile) => tile.classList.remove("is-selected"));
if (hideError) {
error.classList.remove("is-visible");
}
};
const openCaptcha = () => {
resetChallenge();
modal.classList.add("is-open");
modal.setAttribute("aria-hidden", "false");
verifyButton.focus({ preventScroll: true });
};
const closeCaptcha = () => {
modal.classList.remove("is-open");
modal.setAttribute("aria-hidden", "true");
};
triggers.forEach((button) => {
button.addEventListener("click", openCaptcha);
});
tiles.forEach((tile) => {
tile.addEventListener("click", () => {
tile.classList.toggle("is-selected");
});
});
refreshButton.addEventListener("click", resetChallenge);
closeButton.addEventListener("click", closeCaptcha);
verifyButton.addEventListener("click", () => {
error.classList.add("is-visible");
window.setTimeout(() => resetChallenge(false), 900);
});
modal.addEventListener("click", (event) => {
if (event.target === modal) {
closeCaptcha();
}
});
document.addEventListener("keydown", (event) => {
if (event.key === "Escape" && modal.classList.contains("is-open")) {
closeCaptcha();
}
});
syncPromptPlaceholder();
compactPrompt.addEventListener("change", syncPromptPlaceholder);
})();
</script>
</body></html>