@almadar/ui 1.0.30 → 1.0.31

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.
@@ -0,0 +1,315 @@
1
+ /* components/organisms/game/three/components/Canvas3DLoadingState.css */
2
+ .canvas-3d-loading {
3
+ position: absolute;
4
+ inset: 0;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ background:
9
+ linear-gradient(
10
+ 135deg,
11
+ #1a1a2e 0%,
12
+ #16213e 50%,
13
+ #0f3460 100%);
14
+ overflow: hidden;
15
+ z-index: 100;
16
+ }
17
+ .canvas-3d-loading__content {
18
+ position: relative;
19
+ z-index: 2;
20
+ display: flex;
21
+ flex-direction: column;
22
+ align-items: center;
23
+ gap: 20px;
24
+ padding: 40px;
25
+ background: rgba(255, 255, 255, 0.05);
26
+ backdrop-filter: blur(10px);
27
+ border-radius: 16px;
28
+ border: 1px solid rgba(255, 255, 255, 0.1);
29
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
30
+ }
31
+ .canvas-3d-loading__spinner {
32
+ position: relative;
33
+ width: 80px;
34
+ height: 80px;
35
+ }
36
+ .spinner__ring {
37
+ position: absolute;
38
+ inset: 0;
39
+ border: 4px solid transparent;
40
+ border-top-color: #4488ff;
41
+ border-radius: 50%;
42
+ animation: spin 1s linear infinite;
43
+ }
44
+ .spinner__ring--secondary {
45
+ inset: 10px;
46
+ border-top-color: #ff6b6b;
47
+ animation-duration: 1.5s;
48
+ animation-direction: reverse;
49
+ }
50
+ @keyframes spin {
51
+ from {
52
+ transform: rotate(0deg);
53
+ }
54
+ to {
55
+ transform: rotate(360deg);
56
+ }
57
+ }
58
+ .canvas-3d-loading__message {
59
+ font-size: 20px;
60
+ font-weight: 600;
61
+ color: #ffffff;
62
+ text-align: center;
63
+ letter-spacing: 0.5px;
64
+ }
65
+ .canvas-3d-loading__details {
66
+ font-size: 14px;
67
+ color: rgba(255, 255, 255, 0.6);
68
+ text-align: center;
69
+ font-family: monospace;
70
+ max-width: 300px;
71
+ overflow: hidden;
72
+ text-overflow: ellipsis;
73
+ white-space: nowrap;
74
+ }
75
+ .canvas-3d-loading__progress {
76
+ width: 100%;
77
+ max-width: 280px;
78
+ display: flex;
79
+ flex-direction: column;
80
+ gap: 8px;
81
+ }
82
+ .progress__bar {
83
+ height: 6px;
84
+ background: rgba(255, 255, 255, 0.1);
85
+ border-radius: 3px;
86
+ overflow: hidden;
87
+ }
88
+ .progress__fill {
89
+ height: 100%;
90
+ background:
91
+ linear-gradient(
92
+ 90deg,
93
+ #4488ff,
94
+ #ff6b6b);
95
+ border-radius: 3px;
96
+ transition: width 0.3s ease;
97
+ }
98
+ .progress__text {
99
+ display: flex;
100
+ justify-content: space-between;
101
+ font-size: 12px;
102
+ color: rgba(255, 255, 255, 0.7);
103
+ }
104
+ .progress__percentage {
105
+ font-weight: 600;
106
+ color: #4488ff;
107
+ }
108
+ .progress__count {
109
+ font-family: monospace;
110
+ }
111
+ .canvas-3d-loading__background {
112
+ position: absolute;
113
+ inset: 0;
114
+ z-index: 1;
115
+ opacity: 0.3;
116
+ }
117
+ .bg__grid {
118
+ position: absolute;
119
+ inset: -50%;
120
+ background-image:
121
+ linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
122
+ linear-gradient(
123
+ 90deg,
124
+ rgba(255, 255, 255, 0.03) 1px,
125
+ transparent 1px);
126
+ background-size: 50px 50px;
127
+ animation: gridMove 20s linear infinite;
128
+ }
129
+ @keyframes gridMove {
130
+ 0% {
131
+ transform: perspective(500px) rotateX(60deg) translateY(0);
132
+ }
133
+ 100% {
134
+ transform: perspective(500px) rotateX(60deg) translateY(50px);
135
+ }
136
+ }
137
+ @media (max-width: 480px) {
138
+ .canvas-3d-loading__content {
139
+ padding: 30px 20px;
140
+ margin: 20px;
141
+ }
142
+ .canvas-3d-loading__spinner {
143
+ width: 60px;
144
+ height: 60px;
145
+ }
146
+ .canvas-3d-loading__message {
147
+ font-size: 16px;
148
+ }
149
+ .canvas-3d-loading__details {
150
+ font-size: 12px;
151
+ }
152
+ }
153
+
154
+ /* components/organisms/game/three/components/Canvas3DErrorBoundary.css */
155
+ .canvas-3d-error {
156
+ position: absolute;
157
+ inset: 0;
158
+ display: flex;
159
+ align-items: center;
160
+ justify-content: center;
161
+ background:
162
+ linear-gradient(
163
+ 135deg,
164
+ #2e1a1a 0%,
165
+ #3e1616 50%,
166
+ #4a1a1a 100%);
167
+ padding: 20px;
168
+ z-index: 100;
169
+ }
170
+ .canvas-3d-error__content {
171
+ max-width: 600px;
172
+ width: 100%;
173
+ padding: 40px;
174
+ background: rgba(0, 0, 0, 0.4);
175
+ backdrop-filter: blur(10px);
176
+ border-radius: 16px;
177
+ border: 1px solid rgba(255, 100, 100, 0.2);
178
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
179
+ text-align: center;
180
+ }
181
+ .canvas-3d-error__icon {
182
+ font-size: 64px;
183
+ margin-bottom: 20px;
184
+ animation: shake 0.5s ease-in-out;
185
+ }
186
+ @keyframes shake {
187
+ 0%, 100% {
188
+ transform: translateX(0);
189
+ }
190
+ 25% {
191
+ transform: translateX(-10px);
192
+ }
193
+ 75% {
194
+ transform: translateX(10px);
195
+ }
196
+ }
197
+ .canvas-3d-error__title {
198
+ font-size: 28px;
199
+ font-weight: 700;
200
+ color: #ff6b6b;
201
+ margin: 0 0 16px;
202
+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
203
+ }
204
+ .canvas-3d-error__message {
205
+ font-size: 16px;
206
+ color: rgba(255, 255, 255, 0.8);
207
+ margin: 0 0 24px;
208
+ line-height: 1.5;
209
+ }
210
+ .canvas-3d-error__details {
211
+ margin: 24px 0;
212
+ text-align: left;
213
+ background: rgba(0, 0, 0, 0.3);
214
+ border-radius: 8px;
215
+ overflow: hidden;
216
+ }
217
+ .canvas-3d-error__details summary {
218
+ padding: 12px 16px;
219
+ cursor: pointer;
220
+ color: #ff9999;
221
+ font-weight: 600;
222
+ -webkit-user-select: none;
223
+ -moz-user-select: none;
224
+ user-select: none;
225
+ transition: background 0.2s ease;
226
+ }
227
+ .canvas-3d-error__details summary:hover {
228
+ background: rgba(255, 100, 100, 0.1);
229
+ }
230
+ .error__stack,
231
+ .error__component-stack {
232
+ padding: 16px;
233
+ margin: 0;
234
+ font-family:
235
+ "Fira Code",
236
+ "Monaco",
237
+ "Consolas",
238
+ monospace;
239
+ font-size: 12px;
240
+ line-height: 1.6;
241
+ color: #ffaaaa;
242
+ background: rgba(0, 0, 0, 0.5);
243
+ overflow-x: auto;
244
+ white-space: pre-wrap;
245
+ word-break: break-all;
246
+ }
247
+ .error__component-stack {
248
+ border-top: 1px solid rgba(255, 100, 100, 0.2);
249
+ color: #ff8888;
250
+ }
251
+ .canvas-3d-error__actions {
252
+ display: flex;
253
+ gap: 12px;
254
+ justify-content: center;
255
+ margin-top: 24px;
256
+ flex-wrap: wrap;
257
+ }
258
+ .error__button {
259
+ padding: 12px 24px;
260
+ font-size: 14px;
261
+ font-weight: 600;
262
+ border-radius: 8px;
263
+ border: none;
264
+ cursor: pointer;
265
+ transition: all 0.2s ease;
266
+ }
267
+ .error__button--primary {
268
+ background:
269
+ linear-gradient(
270
+ 135deg,
271
+ #ff6b6b,
272
+ #ff4444);
273
+ color: white;
274
+ }
275
+ .error__button--primary:hover {
276
+ background:
277
+ linear-gradient(
278
+ 135deg,
279
+ #ff8888,
280
+ #ff6666);
281
+ transform: translateY(-2px);
282
+ box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
283
+ }
284
+ .error__button--secondary {
285
+ background: rgba(255, 255, 255, 0.1);
286
+ color: rgba(255, 255, 255, 0.9);
287
+ border: 1px solid rgba(255, 255, 255, 0.2);
288
+ }
289
+ .error__button--secondary:hover {
290
+ background: rgba(255, 255, 255, 0.15);
291
+ transform: translateY(-2px);
292
+ }
293
+ .error__button:active {
294
+ transform: translateY(0);
295
+ }
296
+ @media (max-width: 480px) {
297
+ .canvas-3d-error__content {
298
+ padding: 30px 20px;
299
+ }
300
+ .canvas-3d-error__icon {
301
+ font-size: 48px;
302
+ }
303
+ .canvas-3d-error__title {
304
+ font-size: 22px;
305
+ }
306
+ .canvas-3d-error__message {
307
+ font-size: 14px;
308
+ }
309
+ .canvas-3d-error__actions {
310
+ flex-direction: column;
311
+ }
312
+ .error__button {
313
+ width: 100%;
314
+ }
315
+ }