-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage2.html
More file actions
255 lines (244 loc) · 9.11 KB
/
page2.html
File metadata and controls
255 lines (244 loc) · 9.11 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
250
251
252
253
254
255
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Звуки космосу</title>
<style>
* { margin:0; padding:0; box-sizing:border-box; }
body {
background:#000;
color:#e0f0ff;
font-family:'Segoe UI', system-ui, sans-serif;
min-height:100vh;
overflow-x:hidden;
}
.stars {
position:fixed;
inset:0;
pointer-events:none;
background:
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="10" r="1" fill="white" opacity="0.7"/></svg>') repeat,
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="30" cy="40" r="0.8" fill="white" opacity="0.4"/></svg>') repeat;
animation:drift 240s linear infinite;
opacity:0.85;
}
@keyframes drift { from {background-position:0 0, 0 0;} to {background-position:120px 120px, 200px 200px;} }
header {
text-align:center;
padding:60px 20px 20px;
position:relative;
z-index:2;
}
h1 {
font-size:3.6rem;
background:linear-gradient(90deg, #a0d8ff, #ffffff, #d4aaff);
-webkit-background-clip:text;
background-clip:text;
color:transparent;
text-shadow:0 0 40px rgba(160,220,255,0.5);
margin-bottom:8px;
}
.subtitle { font-size:1.2rem; opacity:0.75; margin-bottom:30px; }
.tabs {
display: flex;
justify-content: center;
gap: 20px;
margin: 0 auto 50px;
max-width: 600px;
}
.tab {
flex: 1;
padding: 18px 30px;
font-size: 1.4rem;
font-weight: 600;
text-align: center;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
background: rgba(20, 40, 80, 0.5);
border: 1px solid rgba(100, 160, 255, 0.3);
color: #a0d8ff;
}
.tab.planets {
background: linear-gradient(135deg, rgba(0, 120, 255, 0.25), rgba(0, 80, 180, 0.15));
}
.tab.blackholes {
background: linear-gradient(135deg, rgba(180, 80, 255, 0.25), rgba(120, 40, 180, 0.15));
border-color: rgba(200, 100, 255, 0.4);
color: #d0a0ff;
}
.tab.sounds {
background: linear-gradient(135deg, rgba(0, 200, 180, 0.25), rgba(0, 120, 100, 0.15));
border-color: rgba(0, 220, 200, 0.4);
color: #80fff0;
}
.tab:hover {
transform: translateY(-4px);
box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.section { padding:40px 20px; }
.section h2 { text-align:center; font-size:2.8rem; margin-bottom:40px; color:#a0d8ff; }
.content-text {
max-width: 900px;
margin: 0 auto 40px;
font-size: 1.15rem;
line-height: 1.7;
opacity: 0.92;
text-align: center;
}
.video-container {
max-width: 960px;
margin: 0 auto 50px;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0, 140, 255, 0.3);
border: 1px solid rgba(100, 180, 255, 0.4);
}
.video-container iframe {
width: 100%;
height: 540px;
border: none;
}
.audio-section {
max-width: 900px;
margin: 0 auto 60px;
background: rgba(10, 20, 50, 0.6);
padding: 25px;
border-radius: 16px;
border: 1px solid rgba(80, 160, 255, 0.3);
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.audio-item {
margin-bottom: 50px;
}
.audio-item:last-child { margin-bottom: 0; }
.audio-controls {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
align-items: center;
margin: 20px 0;
}
button.audio-btn {
padding: 14px 32px;
font-size: 1.15rem;
background: linear-gradient(135deg, #0066cc, #003366);
color: #ffffff;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 100, 255, 0.3);
}
button.audio-btn:hover {
background: linear-gradient(135deg, #0088ff, #0055cc);
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(0, 120, 255, 0.5);
}
button.audio-btn:active {
transform: translateY(1px);
}
audio {
width: 100%;
margin-top: 15px;
filter: brightness(1.15) contrast(1.1);
}
.back-link {
display: block;
text-align: center;
margin: 50px auto;
font-size: 1.3rem;
color: #80d0ff;
text-decoration: none;
transition: all 0.3s;
}
.back-link:hover {
color: #ffffff;
transform: scale(1.08);
}
@media (max-width:800px) {
.video-container iframe { height: 360px; }
h1 { font-size:2.8rem; }
.tabs { flex-direction:column; gap:16px; }
.audio-section { padding: 20px; }
}
</style>
</head>
<body>
<div class="stars"></div>
<header>
<h1>Звуки космосу</h1>
<div class="subtitle">Що «чує» людство з глибин Всесвіту</div>
</header>
<div class="tabs">
<a href="index.html" class="tab planets">Планети</a>
<a href="page1.html" class="tab blackholes">Чорні діри</a>
<div class="tab sounds">Звуки космосу</div>
</div>
<div class="section">
<h2>Вчені перетворили космічні хвилі на звук</h2>
<div class="content-text">
У космосі немає повітря, тому звуку в звичному розумінні там не існує. Але вчені використовують <strong>соніфікацію</strong> — перетворюють радіохвилі, плазмові коливання та рентгенівські дані на звук, який ми можемо почути. Ось найвідоміші та наймоторошніші приклади.
</div>
<div class="video-container">
<iframe src="https://www.youtube.com/embed/_tXhBLg3Wng"
title="NASA — звук чорної діри в скупченні Персея"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
<div class="audio-section">
<div class="audio-item">
<h3 style="text-align:center; color:#80d0ff; margin-bottom:15px;">Звук надмасивної чорної діри (скупчення Персея)</h3>
<p class="content-text" style="margin:0 0 20px 0;">
Хвилі тиску в гарячому газі перетворені на звук. Оригінальна частота — на 57–58 октав нижче, ніж чує людина. Дуже низький, моторошний гул...
</p>
<div class="audio-controls">
<button class="audio-btn" onclick="playPauseAudio('audio-perseus')">Відтворити / Пауза</button>
</div>
<audio id="audio-perseus" controls>
<source src="https://assets.science.nasa.gov/dynamicimage/assets/science/missions/chandra/multimedia/sonifications/perseus-sonification.mp3?w=1600&h=900&fit=clip&crop=faces%2Cfocalpoint" type="audio/mpeg">
Ваш браузер не підтримує аудіо елемент.
</audio>
</div>
<div class="audio-item">
<h3 style="text-align:center; color:#80d0ff; margin-bottom:15px;">Звуки міжзоряного простору (Voyager 1)</h3>
<p class="content-text" style="margin:0 0 20px 0;">
Плазмові хвилі в щільному міжзоряному газі за межами Сонячної системи. Запис 2012–2013 років — шепіт космічного «вітру».
</p>
<div class="audio-controls">
<button class="audio-btn" onclick="playPauseAudio('audio-voyager')">Відтворити / Пауза</button>
</div>
<audio id="audio-voyager" controls>
<source src="https://space.physics.uiowa.edu/voyager/V1PWS_Interstellar_2012-2013.mp3" type="audio/mpeg">
Ваш браузер не підтримує аудіо елемент.
</audio>
</div>
</div>
<div class="video-container">
<iframe src="https://www.youtube.com/embed/LIAZWb9_si4"
title="Voyager 1 — звуки міжзоряного простору"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
<a href="index.html" class="back-link">← Повернутися до планет</a>
</div>
<script>
function playPauseAudio(id) {
const audio = document.getElementById(id);
if (audio.paused) {
// Зупиняємо інші аудіо, щоб не накладалися
document.querySelectorAll('audio').forEach(a => {
if (a !== audio) a.pause();
});
audio.play().catch(() => {
alert('Браузер заблокував автовідтворення. Натисніть ще раз або скористайтеся контролерами нижче.');
});
} else {
audio.pause();
}
}
</script>
</body>
</html>