@jjlmoya/utils-astronomy 1.11.0 → 1.13.0

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,332 @@
1
+ .tscope-wrapper {
2
+ width: 100%;
3
+ max-width: 56rem;
4
+ margin: 0 auto;
5
+ padding: 2.5rem;
6
+ background: var(--bg-surface);
7
+ border: 1px solid var(--border-base);
8
+ border-radius: 2rem;
9
+ box-shadow: 0 40px 80px -20px var(--shadow-base);
10
+ position: relative;
11
+ overflow: hidden;
12
+ }
13
+
14
+ .tscope-grid {
15
+ display: grid;
16
+ grid-template-columns: 1fr;
17
+ gap: 2.5rem;
18
+ position: relative;
19
+ z-index: 1;
20
+ }
21
+
22
+ @media (min-width: 850px) {
23
+ .tscope-grid {
24
+ grid-template-columns: 1.1fr 1fr;
25
+ gap: 3.5rem;
26
+ }
27
+ }
28
+
29
+ .tscope-controls {
30
+ display: flex;
31
+ flex-direction: column;
32
+ gap: 2rem;
33
+ }
34
+
35
+ .tscope-control-group {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: 0.85rem;
39
+ }
40
+
41
+ .tscope-control-label {
42
+ font-size: 0.85rem;
43
+ font-weight: 700;
44
+ color: var(--text-muted, #94a3b8);
45
+ text-transform: uppercase;
46
+ letter-spacing: 0.05em;
47
+ display: flex;
48
+ justify-content: space-between;
49
+ }
50
+
51
+ .tscope-stepper {
52
+ display: flex;
53
+ align-items: center;
54
+ background: var(--bg-muted);
55
+ border: 1px solid var(--border-base);
56
+ border-radius: 1rem;
57
+ overflow: hidden;
58
+ transition: border-color 0.3s ease;
59
+ }
60
+
61
+ .tscope-stepper:focus-within {
62
+ border-color: var(--color-purple, #a855f7);
63
+ }
64
+
65
+ .tscope-step-btn {
66
+ width: 4rem;
67
+ height: 4rem;
68
+ border: none;
69
+ background: var(--bg-muted);
70
+ color: var(--color-purple, #a855f7);
71
+ font-size: 1.8rem;
72
+ cursor: pointer;
73
+ transition: all 0.2s ease;
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ }
78
+
79
+ .tscope-step-btn:hover {
80
+ background: var(--bg-page);
81
+ color: var(--color-purple, #a855f7);
82
+ }
83
+
84
+ .tscope-stepper-input {
85
+ flex: 1;
86
+ background: transparent;
87
+ border: none;
88
+ color: var(--text-base);
89
+ text-align: center;
90
+ font-size: 1.5rem;
91
+ font-weight: 700;
92
+ outline: none;
93
+ width: 100%;
94
+ }
95
+
96
+ .tscope-select-wrapper {
97
+ position: relative;
98
+ width: 100%;
99
+ }
100
+
101
+ .tscope-select-arrow {
102
+ position: absolute;
103
+ right: 0.875rem;
104
+ top: 50%;
105
+ transform: translateY(-50%);
106
+ width: 1rem;
107
+ height: 1rem;
108
+ color: var(--color-purple, #a855f7);
109
+ pointer-events: none;
110
+ }
111
+
112
+ .tscope-select {
113
+ appearance: none;
114
+ -webkit-appearance: none;
115
+ width: 100%;
116
+ background: var(--bg-muted);
117
+ border: 1px solid var(--border-base);
118
+ color: var(--text-base);
119
+ padding: 1rem 3rem 1rem 1.25rem;
120
+ border-radius: 1rem;
121
+ font-size: 0.95rem;
122
+ font-weight: 600;
123
+ outline: none;
124
+ cursor: pointer;
125
+ transition: border-color 0.3s ease;
126
+ }
127
+
128
+ .tscope-select:hover {
129
+ border-color: var(--color-purple, #a855f7);
130
+ }
131
+
132
+ .tscope-select:focus {
133
+ border-color: var(--color-purple, #a855f7);
134
+ }
135
+
136
+ .tscope-select option {
137
+ background: var(--bg-surface);
138
+ color: var(--text-base);
139
+ }
140
+
141
+ .tscope-range {
142
+ width: 100%;
143
+ appearance: none;
144
+ background: var(--bg-muted);
145
+ height: 10px;
146
+ border-radius: 20px;
147
+ outline: none;
148
+ cursor: pointer;
149
+ border: 1px solid var(--border-base);
150
+ accent-color: var(--color-purple, #a855f7);
151
+ }
152
+
153
+ .tscope-results {
154
+ display: flex;
155
+ flex-direction: column;
156
+ gap: 2.5rem;
157
+ padding: 0.5rem;
158
+ }
159
+
160
+ .tscope-main-result {
161
+ text-align: center;
162
+ background: var(--bg-muted);
163
+ padding: 3rem 2rem;
164
+ border-radius: 2rem;
165
+ border: 1px solid var(--border-base);
166
+ }
167
+
168
+ .tscope-result-title {
169
+ font-size: 0.9rem;
170
+ color: var(--color-purple, #a855f7);
171
+ text-transform: uppercase;
172
+ letter-spacing: 0.2em;
173
+ margin: 0 0 2rem;
174
+ }
175
+
176
+ .tscope-resolution-value {
177
+ display: flex;
178
+ flex-direction: column;
179
+ align-items: center;
180
+ gap: 0.5rem;
181
+ }
182
+
183
+ .tscope-resolution-number {
184
+ font-size: 6rem;
185
+ font-weight: 900;
186
+ line-height: 0.9;
187
+ background: linear-gradient(to bottom, var(--text-base), var(--color-purple, #a855f7));
188
+ -webkit-background-clip: text;
189
+ -webkit-text-fill-color: transparent;
190
+ background-clip: text;
191
+ filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.4));
192
+ }
193
+
194
+ .tscope-resolution-unit {
195
+ font-size: 1.15rem;
196
+ color: var(--text-muted, #94a3b8);
197
+ font-weight: 600;
198
+ text-transform: lowercase;
199
+ opacity: 0.8;
200
+ }
201
+
202
+ .tscope-comp-grid {
203
+ display: grid;
204
+ grid-template-columns: 1fr 1fr;
205
+ gap: 1.5rem;
206
+ }
207
+
208
+ .tscope-comp-card {
209
+ background: var(--bg-muted);
210
+ padding: 1.25rem;
211
+ border-radius: 1.25rem;
212
+ text-align: center;
213
+ border: 1px solid var(--border-base);
214
+ transition: transform 0.3s ease, border-color 0.2s ease;
215
+ }
216
+
217
+ .tscope-comp-card:hover {
218
+ transform: translateY(-5px);
219
+ border-color: var(--color-purple, #a855f7);
220
+ }
221
+
222
+ .tscope-comp-title {
223
+ font-size: 0.75rem;
224
+ color: var(--text-muted, #64748b);
225
+ margin: 0 0 0.75rem;
226
+ text-transform: uppercase;
227
+ letter-spacing: 0.1em;
228
+ }
229
+
230
+ .tscope-comp-value {
231
+ font-size: 1.75rem;
232
+ font-weight: 800;
233
+ color: var(--color-pink, #ec4899);
234
+ }
235
+
236
+ .tscope-seeing-alert {
237
+ padding: 1.25rem;
238
+ background: var(--bg-muted);
239
+ border-left: 4px solid var(--color-warning, #f59e0b);
240
+ border-radius: 0.75rem;
241
+ font-size: 0.85rem;
242
+ color: var(--text-muted);
243
+ line-height: 1.6;
244
+ display: block;
245
+ }
246
+
247
+ .tscope-seeing-alert.visible {
248
+ animation: tscope-slide-in 0.4s ease-out;
249
+ }
250
+
251
+ @keyframes tscope-slide-in {
252
+ from {
253
+ opacity: 0;
254
+ transform: translateX(-10px);
255
+ }
256
+ to {
257
+ opacity: 1;
258
+ transform: translateX(0);
259
+ }
260
+ }
261
+
262
+ .tscope-visualization {
263
+ background: var(--bg-muted);
264
+ padding: 2rem;
265
+ border-radius: 1.5rem;
266
+ border: 1px solid var(--border-base);
267
+ }
268
+
269
+ .tscope-vis-label {
270
+ display: block;
271
+ font-size: 0.75rem;
272
+ font-weight: 800;
273
+ color: var(--text-muted, #475569);
274
+ text-transform: uppercase;
275
+ letter-spacing: 0.15em;
276
+ margin-bottom: 2rem;
277
+ text-align: center;
278
+ }
279
+
280
+ .tscope-sim-container {
281
+ height: 140px;
282
+ background: radial-gradient(circle at center, #0f172a 0%, #000 100%);
283
+ border-radius: 1rem;
284
+ display: flex;
285
+ align-items: center;
286
+ justify-content: center;
287
+ position: relative;
288
+ border: 1px solid rgba(168, 85, 247, 0.1);
289
+ }
290
+
291
+ .tscope-binary-system {
292
+ display: flex;
293
+ align-items: center;
294
+ position: relative;
295
+ padding: 2rem;
296
+ }
297
+
298
+ .tscope-star {
299
+ width: 8px;
300
+ height: 8px;
301
+ background: white;
302
+ border-radius: 50%;
303
+ filter: blur(var(--star-blur, 0)) drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px var(--color-purple, #a855f7));
304
+ transition: all 0.5s ease;
305
+ position: relative;
306
+ z-index: 2;
307
+ }
308
+
309
+ .tscope-star::after {
310
+ content: '';
311
+ position: absolute;
312
+ top: 50%;
313
+ left: 50%;
314
+ transform: translate(-50%, -50%);
315
+ width: 200%;
316
+ height: 200%;
317
+ background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
318
+ pointer-events: none;
319
+ }
320
+
321
+ .tscope-sim-explanation {
322
+ margin-top: 1.5rem;
323
+ font-size: 0.8rem;
324
+ color: var(--text-muted);
325
+ text-align: center;
326
+ line-height: 1.6;
327
+ letter-spacing: 0.02em;
328
+ padding: 1rem;
329
+ background: var(--bg-page);
330
+ border-radius: 0.75rem;
331
+ border: 1px dashed var(--border-base);
332
+ }
package/src/tools.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { ALL_ENTRIES } from './entries';
1
2
  import { BORTLE_VISUALIZER_TOOL } from './tool/bortleVisualizer';
2
3
  import { DEEP_SPACE_SCOPE_TOOL } from './tool/deepSpaceScope';
3
4
  import { STAR_EXPOSURE_CALCULATOR_TOOL } from './tool/starExposureCalculator';
@@ -18,4 +19,3 @@ export {
18
19
  TELESCOPE_RESOLUTION_TOOL,
19
20
  };
20
21
 
21
- export const ALL_ENTRIES = ALL_TOOLS.map(t => t.entry);