File size: 17,603 Bytes
1797af9
 
 
 
 
 
 
 
 
7820c79
 
 
 
 
 
 
 
 
 
 
1797af9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
de608f0
 
 
 
1797af9
 
 
 
077e211
 
 
 
de608f0
1797af9
077e211
1797af9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7820c79
 
 
 
 
d6fe2b7
1797af9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7820c79
1797af9
 
7820c79
1797af9
 
 
 
 
 
7820c79
 
 
 
 
 
 
 
 
 
 
 
 
1797af9
 
 
 
7820c79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1797af9
d6fe2b7
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Keep Track of Space | OrbitAI</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <link rel="stylesheet" href="style.css">
    <script src="https://cesium.com/downloads/cesiumjs/releases/1.100/Build/Cesium/Cesium.js"></script>
    <link href="https://cesium.com/downloads/cesiumjs/releases/1.100/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
    <style>
        #cesiumContainer {
            width: 100%;
            height: 500px;
            margin-top: 20px;
            border-radius: 8px;
            overflow: hidden;
        }
    </style>
</head>
<body class="bg-gray-900 text-white">
    <div class="flex h-screen">
        <!-- Sidebar -->
        <div class="w-64 bg-gray-800 p-4">
            <div class="mb-8">
                <h1 class="text-2xl font-bold text-blue-400">OrbitAI</h1>
            </div>
            
            <nav class="space-y-2">
                <a href="dashboard.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-tachometer-alt"></i>
                    <span>Dashboard</span>
                </a>
                <a href="feeds.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-satellite-dish"></i>
                    <span>Satellite Feeds</span>
                </a>
                <a href="alerts.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-bell"></i>
                    <span>Event Alerts</span>
                </a>
                <a href="analytics.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-chart-line"></i>
                    <span>Analytics</span>
                </a>
                <a href="marketplace.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-store"></i>
                    <span>Marketplace</span>
                </a>
                <a href="compliance.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-gavel"></i>
                    <span>Compliance</span>
                </a>
                <a href="keeptrackspace.html" class="flex items-center space-x-2 text-blue-400 bg-gray-700 p-3 rounded-lg">
                    <i class="fas fa-satellite"></i>
                    <span>Keep Track of Space</span>
                </a>
                <a href="api.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-code"></i>
                    <span>API Gateway</span>
                </a>
                <a href="settings.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-cog"></i>
                    <span>Settings</span>
                </a>
                <a href="deepsite.html" class="flex items-center space-x-2 text-gray-300 hover:text-white p-3 rounded-lg hover:bg-gray-700">
                    <i class="fas fa-code"></i>
                    <span>DeepSite</span>
                </a>
</nav>
        </div>
<!-- Main Content -->
        <div class="flex-1 p-8 overflow-y-auto">
            <div class="flex justify-between items-center mb-8">
                <h2 class="text-3xl font-bold">Keep Track of Space</h2>
                <div class="flex space-x-4">
                    <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg">
                        <i class="fas fa-sync-alt mr-2"></i>Refresh Data
                    </button>
                    <button class="bg-gray-700 hover:bg-gray-600 px-4 py-2 rounded-lg">
                        <i class="fas fa-filter mr-2"></i>Filter Objects
                    </button>
                </div>
            </div>

            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
                <div class="bg-gray-800 p-6 rounded-lg">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-400">Active Satellites</p>
                            <h3 class="text-2xl font-bold">5,872</h3>
                        </div>
                        <i class="fas fa-satellite text-blue-400 text-2xl"></i>
                    </div>
                    <p class="text-green-400 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i>42 new this month</p>
                </div>

                <div class="bg-gray-800 p-6 rounded-lg">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-400">Space Debris</p>
                            <h3 class="text-2xl font-bold">27,451</h3>
                        </div>
                        <i class="fas fa-trash-alt text-yellow-400 text-2xl"></i>
                    </div>
                    <p class="text-red-400 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i>127 new this month</p>
                </div>

                <div class="bg-gray-800 p-6 rounded-lg">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-400">Collision Risk</p>
                            <h3 class="text-2xl font-bold">12</h3>
                        </div>
                        <i class="fas fa-exclamation-triangle text-red-400 text-2xl"></i>
                    </div>
                    <p class="text-yellow-400 text-sm mt-2">3 high priority</p>
                </div>

                <div class="bg-gray-800 p-6 rounded-lg">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-400">Tracking Accuracy</p>
                            <h3 class="text-2xl font-bold">99.7%</h3>
                        </div>
                        <i class="fas fa-bullseye text-green-400 text-2xl"></i>
                    </div>
                    <p class="text-green-400 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i>0.2% improvement</p>
                </div>
            </div>

            <!-- Cesium 3D Visualization -->
            <div class="bg-gray-800 rounded-lg p-6 mb-8">
                <h3 class="text-xl font-bold mb-4">3D Orbital Visualization</h3>
                <div id="cesiumContainer"></div>
            </div>
<!-- Space Objects Table -->
            <div class="bg-gray-800 rounded-lg p-6 mb-8">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-bold">Space Objects Tracking</h3>
                    <div class="relative">
                        <input type="text" placeholder="Search objects..." class="bg-gray-700 border border-gray-600 rounded-lg pl-10 pr-4 py-2 w-64">
                        <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                    </div>
                </div>
                
                <div class="overflow-x-auto">
                    <table class="min-w-full">
                        <thead>
                            <tr class="border-b border-gray-700">
                                <th class="py-3 px-4 text-left">Object</th>
                                <th class="py-3 px-4 text-left">Type</th>
                                <th class="py-3 px-4 text-left">Orbit</th>
                                <th class="py-3 px-4 text-left">Velocity</th>
                                <th class="py-3 px-4 text-left">Risk Level</th>
                                <th class="py-3 px-4 text-left">Last Updated</th>
                                <th class="py-3 px-4 text-left">Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="border-b border-gray-700 hover:bg-gray-750">
                                <td class="py-3 px-4">
                                    <div class="flex items-center">
                                        <i class="fas fa-satellite text-blue-400 mr-2"></i>
                                        <span>Starlink-4521</span>
                                    </div>
                                </td>
                                <td class="py-3 px-4">Communications</td>
                                <td class="py-3 px-4">LEO</td>
                                <td class="py-3 px-4">7.8 km/s</td>
                                <td class="py-3 px-4">
                                    <span class="bg-green-500 text-green-900 text-xs px-2 py-1 rounded">Low</span>
                                </td>
                                <td class="py-3 px-4">2 min ago</td>
                                <td class="py-3 px-4">
                                    <button class="text-blue-400 hover:text-blue-300 mr-2">
                                        <i class="fas fa-eye"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-gray-300">
                                        <i class="fas fa-bell"></i>
                                    </button>
                                </td>
                            </tr>
                            <tr class="border-b border-gray-700 hover:bg-gray-750">
                                <td class="py-3 px-4">
                                    <div class="flex items-center">
                                        <i class="fas fa-trash-alt text-yellow-400 mr-2"></i>
                                        <span>Debris-8873</span>
                                    </div>
                                </td>
                                <td class="py-3 px-4">Debris</td>
                                <td class="py-3 px-4">LEO</td>
                                <td class="py-3 px-4">7.6 km/s</td>
                                <td class="py-3 px-4">
                                    <span class="bg-red-500 text-red-900 text-xs px-2 py-1 rounded">High</span>
                                </td>
                                <td class="py-3 px-4">5 min ago</td>
                                <td class="py-3 px-4">
                                    <button class="text-blue-400 hover:text-blue-300 mr-2">
                                        <i class="fas fa-eye"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-gray-300">
                                        <i class="fas fa-bell"></i>
                                    </button>
                                </td>
                            </tr>
                            <tr class="border-b border-gray-700 hover:bg-gray-750">
                                <td class="py-3 px-4">
                                    <div class="flex items-center">
                                        <i class="fas fa-satellite text-green-400 mr-2"></i>
                                        <span>Hubble Telescope</span>
                                    </div>
                                </td>
                                <td class="py-3 px-4">Observatory</td>
                                <td class="py-3 px-4">LEO</td>
                                <td class="py-3 px-4">7.5 km/s</td>
                                <td class="py-3 px-4">
                                    <span class="bg-yellow-500 text-yellow-900 text-xs px-2 py-1 rounded">Medium</span>
                                </td>
                                <td class="py-3 px-4">10 min ago</td>
                                <td class="py-3 px-4">
                                    <button class="text-blue-400 hover:text-blue-300 mr-2">
                                        <i class="fas fa-eye"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-gray-300">
                                        <i class="fas fa-bell"></i>
                                    </button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <!-- Orbital Visualization Controls -->
            <div class="bg-gray-800 rounded-lg p-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-xl font-bold">Visualization Controls</h3>
                    <div class="flex space-x-2">
                        <button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded text-sm">2D View</button>
                        <button class="bg-blue-600 hover:bg-blue-700 px-3 py-1 rounded text-sm">3D View</button>
                        <button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded text-sm">Trajectory</button>
                    </div>
                </div>
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                    <div>
                        <label class="block text-sm font-medium text-gray-300 mb-2">Time Speed</label>
                        <input type="range" min="1" max="100" value="50" class="w-full">
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-gray-300 mb-2">Satellite Size</label>
                        <input type="range" min="1" max="10" value="5" class="w-full">
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-gray-300 mb-2">Trail Length</label>
                        <input type="range" min="1" max="100" value="30" class="w-full">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Initialize Cesium Viewer
        Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI0MzI2YjQ5NS00Y2YwLTRhZjQtYjI1YS00ZjQ5ZmE2YzM3ODgiLCJpZCI6MTU5NTk1LCJpYXQiOjE3MDk3MjQ0MzV9.3n3GxJhj0nZ0u3n3GxJhj0nZ0u3n3GxJhj0nZ0u3n3G';
        const viewer = new Cesium.Viewer('cesiumContainer', {
            terrainProvider: Cesium.createWorldTerrain(),
            shouldAnimate: true
        });

        // Add sample satellite entities
        const satellite1 = viewer.entities.add({
            name: 'Starlink-4521',
            position: Cesium.Cartesian3.fromDegrees(-75.0, 40.0, 500000.0),
            point: {
                pixelSize: 10,
                color: Cesium.Color.BLUE
            },
            label: {
                text: 'Starlink-4521',
                font: '14px sans-serif',
                fillColor: Cesium.Color.WHITE,
                outlineColor: Cesium.Color.BLACK,
                outlineWidth: 2,
                style: Cesium.LabelStyle.FILL_AND_OUTLINE,
                verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
                pixelOffset: new Cesium.Cartesian2(0, -9)
            }
        });

        const satellite2 = viewer.entities.add({
            name: 'Debris-8873',
            position: Cesium.Cartesian3.fromDegrees(-74.0, 41.0, 450000.0),
            point: {
                pixelSize: 8,
                color: Cesium.Color.RED
            },
            label: {
                text: 'Debris-8873',
                font: '14px sans-serif',
                fillColor: Cesium.Color.WHITE,
                outlineColor: Cesium.Color.BLACK,
                outlineWidth: 2,
                style: Cesium.LabelStyle.FILL_AND_OUTLINE,
                verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
                pixelOffset: new Cesium.Cartesian2(0, -9)
            }
        });

        // Add orbital paths
        const orbitPath = new Cesium.SampledPositionProperty();
        const now = Cesium.JulianDate.now();
        
        for (let i = 0; i < 360; i += 10) {
            const time = Cesium.JulianDate.addSeconds(now, i * 60, new Cesium.JulianDate());
            const position = Cesium.Cartesian3.fromDegrees(-75.0 + i/10, 40.0 + Math.sin(Cesium.Math.toRadians(i)) * 5, 500000.0);
            orbitPath.addSample(time, position);
        }

        const orbitEntity = viewer.entities.add({
            name: 'Orbit Path',
            position: orbitPath,
            path: {
                show: true,
                width: 3,
                material: new Cesium.PolylineGlowMaterialProperty({
                    glowPower: 0.1,
                    color: Cesium.Color.BLUE
                }),
                leadTime: 0,
                trailTime: 3600
            }
        });

        // Set initial camera view
        viewer.camera.flyTo({
            destination: Cesium.Cartesian3.fromDegrees(-75.0, 40.0, 1000000.0),
            duration: 3.0
        });
    </script>
</body>
</html>