-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex6.html
More file actions
222 lines (191 loc) · 8.34 KB
/
Copy pathindex6.html
File metadata and controls
222 lines (191 loc) · 8.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AIV - Multi-Satellite HAM Network</title>
<style>
:root {
--bg: #010103;
--primary: #00f2ff;
--land: #2d5a27;
--water: #0b2545;
}
body, html {
margin: 0; padding: 0;
width: 100%; height: 100%;
background-color: var(--bg);
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Segoe UI', sans-serif;
}
#star-layer {
position: absolute;
top: -10%; left: -10%;
width: 120%; height: 120%;
z-index: 1;
pointer-events: none;
}
.viewport {
position: relative;
width: 100vw; height: 100vh;
display: flex;
justify-content: center;
align-items: center;
z-index: 2;
}
/* EARTH */
.earth-container {
position: relative;
width: 420px; height: 420px;
border-radius: 50%;
background: var(--water);
box-shadow: inset -30px -30px 60px rgba(0,0,0,0.9), 0 0 50px rgba(0, 242, 255, 0.2);
overflow: hidden;
z-index: 5;
border: 1px solid rgba(255,255,255,0.1);
}
.map-layer, .cloud-layer {
position: absolute;
width: 200%; height: 100%;
animation: spin 25s linear infinite;
}
.map-layer {
background-image:
radial-gradient(circle at 15% 45%, var(--land) 12%, transparent 13%),
radial-gradient(circle at 45% 25%, var(--land) 18%, transparent 19%),
radial-gradient(circle at 75% 65%, var(--land) 22%, transparent 23%);
}
.cloud-layer {
opacity: 0.3; filter: blur(8px);
background-image: radial-gradient(ellipse at 40% 50%, #fff 15%, transparent 30%);
animation-duration: 40s; animation-direction: reverse;
}
@keyframes spin { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tower { fill: #000; stroke: var(--primary); stroke-width: 1.5; transition: stroke 0.3s; }
/* AIV LOGO */
.logo-wrap {
position: absolute;
z-index: 20;
pointer-events: none;
filter: drop-shadow(0 0 15px var(--primary));
}
.letter {
fill: none; stroke: var(--primary);
stroke-width: 8; stroke-linecap: round;
transition: stroke 0.3s;
}
/* SATELLITES */
.orbit {
position: absolute;
border-radius: 50%;
border: 1px solid rgba(255,255,255,0.05);
animation: rotate linear infinite;
}
/* Different Satellite Sizes/Speeds */
.orbit-main { width: 700px; height: 700px; animation-duration: 15s; z-index: 30; }
.orbit-small { width: 550px; height: 550px; animation-duration: 8s; animation-direction: reverse; }
.orbit-far { width: 850px; height: 850px; animation-duration: 25s; }
.sat-icon { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* BEAM & PULSE */
#beam-svg { position: absolute; width: 100%; height: 100%; pointer-events: none; z-index: 25; }
#beam-path { stroke: var(--primary); stroke-width: 1; stroke-dasharray: 4; opacity: 0.5; }
#pulse-dot { fill: var(--primary); filter: blur(1px); }
</style>
</head>
<body>
<svg id="star-layer" xmlns="http://www.w3.org/2000/svg"></svg>
<div class="viewport">
<div class="earth-container">
<div class="map-layer"></div>
<div class="cloud-layer"></div>
<div style="position: absolute; bottom: 42%; width: 100%; display: flex; justify-content: center;">
<svg width="60" height="40">
<rect class="tower" x="25" y="10" width="10" height="30" />
<circle id="ground-station" cx="30" cy="10" r="2" fill="red" />
</svg>
</div>
</div>
<div class="logo-wrap">
<svg width="400" height="120" viewBox="0 0 400 120">
<path class="letter" d="M 80,100 L 130,20 L 180,100 M 105,75 L 155,75" />
<path class="letter" d="M 200,20 L 200,100" />
<path class="letter" d="M 230,20 L 270,100 L 310,20" />
</svg>
</div>
<div class="orbit orbit-main">
<svg class="sat-icon" width="50" height="50" viewBox="0 0 100 100">
<rect x="30" y="30" width="40" height="40" fill="#111" stroke="white" />
<rect x="0" y="45" width="30" height="10" fill="#333" stroke="var(--primary)" />
<rect x="70" y="45" width="30" height="10" fill="#333" stroke="var(--primary)" />
<circle id="sat-antenna" cx="50" cy="50" r="3" fill="red" />
</svg>
</div>
<div class="orbit orbit-small">
<svg class="sat-icon" width="20" height="20" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="30" fill="#222" stroke="white" />
<line x1="50" y1="20" x2="50" y2="0" stroke="white" />
</svg>
</div>
<div class="orbit orbit-far">
<svg class="sat-icon" width="80" height="40" viewBox="0 0 200 100">
<rect x="80" y="40" width="40" height="20" fill="#111" stroke="white" />
<rect x="20" y="20" width="40" height="60" fill="#333" stroke="var(--primary)" />
<rect x="140" y="20" width="40" height="60" fill="#333" stroke="var(--primary)" />
</svg>
</div>
<svg id="beam-svg">
<line id="beam-path" x1="0" y1="0" x2="0" y2="0" />
<circle id="pulse-dot" r="4" cx="0" cy="0" />
</svg>
</div>
<script>
const stars = document.getElementById('star-layer');
const beam = document.getElementById('beam-path');
const pulse = document.getElementById('pulse-dot');
const satAntenna = document.getElementById('sat-antenna');
const groundStation = document.getElementById('ground-station');
let pulseProgress = 0;
for (let i = 0; i < 150; i++) {
const c = document.createElementNS("http://www.w3.org/2000/svg", "circle");
c.setAttribute("cx", Math.random() * 100 + "%");
c.setAttribute("cy", Math.random() * 100 + "%");
c.setAttribute("r", Math.random() * 1.5);
c.setAttribute("fill", "white");
c.setAttribute("opacity", Math.random());
stars.appendChild(c);
}
window.addEventListener('mousemove', (e) => {
const xP = e.clientX / window.innerWidth;
const yP = e.clientY / window.innerHeight;
stars.style.transform = `translate(${(xP-0.5)*40}px, ${(yP-0.5)*40}px)`;
const color = `hsl(${xP * 360}, 100%, 65%)`;
document.documentElement.style.setProperty('--primary', color);
document.querySelectorAll('.letter, .tower, #beam-path, #pulse-dot').forEach(el => {
el.style.stroke = color;
if(el.id === 'pulse-dot') el.style.fill = color;
});
});
function updateScene() {
const sR = satAntenna.getBoundingClientRect();
const gR = groundStation.getBoundingClientRect();
const x1 = sR.left + sR.width/2;
const y1 = sR.top + sR.height/2;
const x2 = gR.left + gR.width/2;
const y2 = gR.top + gR.height/2;
beam.setAttribute('x1', x1); beam.setAttribute('y1', y1);
beam.setAttribute('x2', x2); beam.setAttribute('y2', y2);
// Animate Pulse
pulseProgress += 0.02;
if (pulseProgress > 1) pulseProgress = 0;
pulse.setAttribute('cx', x1 + (x2 - x1) * pulseProgress);
pulse.setAttribute('cy', y1 + (y2 - y1) * pulseProgress);
requestAnimationFrame(updateScene);
}
updateScene();
</script>
</body>
</html>