-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
249 lines (223 loc) · 8.77 KB
/
Copy pathindex.html
File metadata and controls
249 lines (223 loc) · 8.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>INFOCRAFT</title>
<script src="https://cdn.tailwindcss.com"></script>
<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@300;400;500;600;700&family=Syne:wght@700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/driver.js@1.3.1/dist/driver.css"/>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
indigo: {
500: '#6366F1',
600: '#4F46E5',
},
obsidian: '#050505',
paper: '#FAFAFA'
}
}
}
}
</script>
<style>
body {
font-family: 'Inter', sans-serif;
margin: 0;
overflow: hidden;
background-color: #FAFAFA;
color: #050505;
transform: none !important;
filter: none !important;
touch-action: manipulation;
transition: background-color 0.5s ease, color 0.5s ease;
}
body.dark {
background-color: #050505;
color: #FAFAFA;
}
body.white-glitters {
background-color: #ffffff;
color: #000000;
}
h1, h2, h3, .heading-font {
font-family: 'Syne', sans-serif;
letter-spacing: -0.04em;
text-transform: uppercase;
}
.grain::after {
content: "";
position: fixed;
top: -150%;
left: -150%;
width: 300%;
height: 300%;
pointer-events: none;
z-index: 9997;
opacity: 0.04;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
animation: noise 2s steps(2) infinite;
}
.white-glitters::before {
content: "";
position: fixed;
inset: 0;
z-index: 9998;
pointer-events: none;
background-image:
radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
mix-blend-mode: soft-light;
}
.glitter-sparkle {
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
display: none;
background-image: radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
radial-gradient(1.5px 1.5px at 50px 160px, #ddd, rgba(0,0,0,0)),
radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
radial-gradient(1.5px 1.5px at 130px 80px, #fff, rgba(0,0,0,0)),
radial-gradient(1px 1px at 160px 120px, #ddd, rgba(0,0,0,0));
background-repeat: repeat;
background-size: 200px 200px;
opacity: 0.6;
animation: sparkle-move 4s infinite linear;
}
.white-glitters .glitter-sparkle {
display: block;
}
@keyframes sparkle-move {
0% { background-position: 0 0; opacity: 0.4; }
50% { opacity: 0.8; }
100% { background-position: 100px 100px; opacity: 0.4; }
}
.dark .grain::after {
opacity: 0.04;
}
@keyframes noise {
0% { transform: translate(0, 0); }
100% { transform: translate(5%, 0); }
}
.glass-bento {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
border-radius: 24px;
transition: background 0.5s ease, border 0.5s ease;
}
.dark .glass-bento {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.white-glitters .glass-bento {
background: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}
@media (max-width: 768px) {
.glass-bento {
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
}
.glass-bento-mobile {
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 32px 32px 0 0;
box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
transition: background 0.5s ease, border-top 0.5s ease;
}
.dark .glass-bento-mobile {
background: rgba(10, 10, 10, 0.95);
border-top: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
}
.ui-panel { overflow: visible !important; }
.canvas-3d {
box-shadow: 0 40px 100px -20px rgba(0,0,0,0.1);
transform-style: preserve-3d;
perspective: 1200px;
transition: box-shadow 0.5s ease;
}
.dark .canvas-3d {
box-shadow: 0 80px 140px -30px rgba(0,0,0,0.8);
}
.white-glitters .canvas-3d {
box-shadow: 0 40px 80px rgba(0, 0, 0, 0.04);
}
@keyframes selection-pulse {
0% { box-shadow: 0 0 0 0px rgba(99, 102, 241, 0.4); }
50% { box-shadow: 0 0 20px 4px rgba(99, 102, 241, 0.2); }
100% { box-shadow: 0 0 0 0px rgba(99, 102, 241, 0.4); }
}
.selected-pulse {
animation: selection-pulse 2s infinite ease-in-out;
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.05); border-radius: 10px; }
.dark ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.05); }
.report-bug-btn {
position: relative;
z-index: 999999;
pointer-events: all !important;
display: block;
cursor: pointer !important;
}
</style>
<script type="importmap">
{
"imports": {
"react-dom": "https://esm.sh/react-dom@^19.2.3",
"react-dom/": "https://esm.sh/react-dom@^19.2.3/",
"react": "https://esm.sh/react@^19.2.3",
"react/": "https://esm.sh/react@^19.2.3/",
"recharts": "https://esm.sh/recharts@^3.6.0",
"lucide-react": "https://esm.sh/lucide-react@^0.562.0",
"fabric": "https://esm.sh/fabric@6.5.4",
"jspdf": "https://esm.sh/jspdf@2.5.1",
"framer-motion": "https://esm.sh/framer-motion@^11.11.11",
"@google/genai": "https://esm.sh/@google/genai@^1.34.0",
"driver.js": "https://esm.sh/driver.js@^1.3.1",
"chroma-js": "https://esm.sh/chroma-js@^3.1.2",
"papaparse": "https://esm.sh/papaparse@^5.4.1",
"@vitejs/plugin-react": "https://esm.sh/@vitejs/plugin-react@^5.1.2",
"vite": "https://esm.sh/vite@^7.3.0"
}
}
</script>
<link rel="stylesheet" href="/index.css">
</head>
<body class="grain">
<div id="root"></div>
<div class="glitter-sparkle"></div>
<!-- Vision Simulation SVG Filters -->
<svg style="display: none;">
<defs>
<filter id="protanopia">
<feColorMatrix type="matrix" values="0.567, 0.433, 0, 0, 0, 0.558, 0.442, 0, 0, 0, 0, 0.242, 0.758, 0, 0, 0, 0, 0, 1, 0" />
</filter>
<filter id="deuteranopia">
<feColorMatrix type="matrix" values="0.625, 0.375, 0, 0, 0, 0.7, 0.3, 0, 0, 0, 0, 0.3, 0.7, 0, 0, 0, 0, 0, 1, 0" />
</filter>
<filter id="achromatopsia">
<feColorMatrix type="matrix" values="0.299, 0.587, 0.114, 0, 0, 0.299, 0.587, 0.114, 0, 0, 0.299, 0.587, 0.114, 0, 0, 0, 0, 0, 1, 0" />
</filter>
</defs>
</svg>
<script type="module" src="/index.tsx"></script>
</body>
</html>