-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
242 lines (234 loc) · 10.3 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="style.css" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<title>SpaceX</title>
</head>
<body>
<header id="header">
<nav class="flex header-flex-left" id="navbarr">
<ul class="flex D-Din upper-case links">
<li>
<a href="index.html"><svg version="1.1" x="0px" y="0px" viewBox="0 0 400 50">
<title>SpaceX Logo</title>
<g class="letter_s">
<path class="fill-white" d="M37.5,30.5H10.9v-6.6h34.3c-0.9-2.8-3.8-5.4-8.9-5.4H11.4c-5.7,0-9,2.1-9,6.7v4.9c0,4,3.4,6.3,8.4,6.3h26.9v7H1.5
c0.9,3.8,3.8,5.8,9,5.8h27.1c5.7,0,8.5-2.2,8.5-6.9v-4.9C46.1,33.1,42.8,30.8,37.5,30.5z"></path>
</g>
<g class="letter_p">
<path class="fill-white" d="M91.8,18.6H59v30.7h9.3V37.5h24.2c6.7,0,10.4-2.3,10.4-7.7v-3.4C102.8,21.4,98.6,18.6,91.8,18.6z M94.8,28.4
c0,2.2-0.4,3.4-4,3.4H68.3l0.1-8h22c4,0,4.5,1.2,4.5,3.3V28.4z"></path>
</g>
<g class="letter_a">
<polygon class="fill-white"
points="129.9,17.3 124.3,24.2 133.8,37.3 114,37.3 109.1,42.5 137.7,42.5 142.6,49.3 153.6,49.3 ">
</polygon>
</g>
<g class="letter_c">
<path class="fill-white" d="M171.4,23.9h34.8c-0.9-3.6-4.4-5.4-9.4-5.4h-26c-4.5,0-8.8,1.8-8.8,6.7v17.2c0,4.9,4.3,6.7,8.8,6.7h26.3
c6,0,8.1-1.7,9.1-5.8h-34.8V23.9z"></path>
</g>
<g class="letter_e">
<polygon class="fill-white"
points="228.3,43.5 228.3,34.1 247,34.1 247,28.9 218.9,28.9 218.9,49.3 260.4,49.3 260.4,43.5 ">
</polygon>
<rect class="fill-white" x="219.9" y="18.6" width="41.9" height="5.4"></rect>
</g>
<g class="letter_x">
<path class="fill-white" d="M287.6,18.6H273l17.2,12.6c2.5-1.7,5.4-3.5,8-5L287.6,18.6z"></path>
<path class="fill-white" d="M308.8,34.3c-2.5,1.7-5,3.6-7.4,5.4l13,9.5h14.7L308.8,34.3z"></path>
</g>
<g class="letter_swoosh">
<path class="fill-white"
d="M399,0.7c-80,4.6-117,38.8-125.3,46.9l-1.7,1.6h14.8C326.8,9.1,384.3,2,399,0.7L399,0.7z"></path>
</g>
</svg></a>
</li>
<li class="display-none">
<a href="https://www.spacex.com/vehicles/falcon-9/" class="animation">Falcon 9</a>
</li>
<li class="display-none">
<a href="https://www.spacex.com/vehicles/falcon-heavy/" class="animation">Falcon Heavy</a>
</li>
<li class="display-none">
<a href="https://www.spacex.com/vehicles/dragon/" class="animation">Dragon</a>
</li>
<li class="display-none">
<a href="https://www.spacex.com/vehicles/starship/" class="animation">starship</a>
</li>
<li class="display-none">
<a href="Human Spaceflight.html" class="animation">Human Spaceflight</a>
</li>
<li class="display-none">
<a href="https://www.spacex.com/rideshare/" class="animation">Rideshare</a>
</li>
<li class="display-none">
<a href="https://www.starlink.com/" class="animation">Starlink</a>
</li>
</ul>
<nav>
<ul class="flex header-flex-right">
<li class="display-none">
<a href="https://shop.spacex.com/" class="upper-case D-Din animation shop-text">Shop</a>
</li>
<li>
<div id="mySidenav" class="sidenav">
<nav>
<ul>
<li><a href="javascript:void(0)" class="closebtn" id="close" onclick="closeNav()">×</a></li>
<li><a href="https://www.spacex.com/vehicles/falcon-9/"
class="myLinks D-Din-Regular upper-case display-visible" id="none">Falcon 9</a></li>
<li><a href="https://www.spacex.com/vehicles/falcon-heavy/"
class="myLinks D-Din-Regular upper-case display-visible" id="none">Falcon Heavy</a></li>
<li><a href="https://www.spacex.com/vehicles/dragon/"
class="myLinks D-Din-Regular upper-case display-visible" id="none">Dragon</a></li>
<li><a href="https://www.spacex.com/vehicles/starship/"
class="myLinks D-Din-Regular upper-case display-visible" id="none">starship</a></li>
<li><a href="Human Spaceflight.html"
class="myLinks D-Din-Regular upper-case display-visible" id="none">Human Spaceflight</a></li>
<li><a href="https://www.spacex.com/rideshare/"
class="myLinks D-Din-Regular upper-case display-visible" id="none">Rideshare</a></li>
<li><a href="https://www.starlink.com/" class="myLinks D-Din-Regular upper-case display-visible"
id="none">Starlink</a></li>
<li id="mission"><a href="https://www.spacex.com/mission/"
class="myLinks D-Din-Regular upper-case">mission</a></li>
<li><a href="https://www.spacex.com/launches/" class="myLinks D-Din-Regular upper-case">launches</a>
</li>
<li><a href="https://www.spacex.com/careers/" class="myLinks D-Din-Regular upper-case">careers</a>
</li>
<li><a href="https://www.spacex.com/updates/" class="myLinks D-Din-Regular upper-case">updates</a>
</li>
<li><a href="https://shop.spacex.com/" class="myLinks D-Din-Regular upper-case">shop</a></li>
</ul>
</nav>
</div>
<span style="font-size:30px" onclick="openNav()">
<div class="menu-icon">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
</span>
</li>
</a>
</ul>
</nav>
</nav>
</header>
<section class="first-section background-image">
<div class="section1-text">
<h2 class="rocket-launch upper-case D-Din">recent launch</h2>
<h3 class="rocket-font D-Din upper-case">crs-25 mission</h3>
<a href="#" class="D-Din upper-case btn">rewatch</a>
</div>
</section>
<section class="second-section background-image">
<div class="section1-text">
<h2 class="rocket-launch upper-case D-Din">recent launch</h2>
<h3 class="rocket-font D-Din upper-case">starlink mission</h3>
<a href="#" class="D-Din upper-case btn">rewatch</a>
</div>
</section>
<section class="third-section background-image">
<div class="section1-text">
<h3 class="rocket-font D-Din upper-case">starship update</h3>
<a href="#" class="D-Din upper-case btn">Learn more</a>
</div>
</section>
<section class="forth-section background-image">
<div class="section1-text last-section-margin">
<h3 class="rocket-font D-Din upper-case text-wrap">
starship to land nasa astronauts on the moon
</h3>
<a href="#" class="D-Din upper-case btn">Learn more</a>
</div>
</section>
<footer>
<nav>
<ul class="footer-ul">
<li class="copyright"><span class="upper-case D-Din-Regular">spacex © 2022</span></li>
<li class="link1">
<a class="D-Din upper-case link-footer" href="twitter.com">twitter</a>
</li>
<li class="link2">
<a class="D-Din upper-case link-footer" href="youtube.com">youtube</a>
</li>
<li class="link3">
<a class="D-Din upper-case link-footer" href="instagram.com">instagram</a>
</li>
<li class="link4">
<a class="D-Din upper-case link-footer" href="flicker.com">flicker</a>
</li>
<li class="link5">
<a class="D-Din upper-case link-footer" href="linkedin.com">linkedin</a>
</li>
<li class="link6">
<a class="D-Din upper-case link-footer" href="index.html">privacy policy</a>
</li>
<li class="link7"><a class="D-Din upper-case link-footer" href="index.html">suppliers</a></li>
</ul>
</nav>
</footer>
</body>
<script>
//left-nav bar
function openNav() {
document.getElementById("mySidenav").style.width = "50rem";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
//ends here
//generating random number
// function generateRandomIntegerInRange(min, max) {
// return Math.floor(Math.random() * (max - min + 1)) + min;
// }
// let value = generateRandomIntegerInRange(100, 90000);
// //ends here
// //this is the seires of question that we wil gonna ask
// function quiz() {
// let text="Answer"
// const obj = {
// question1: Number(prompt('How many Stars are there in our solar system?', text)),
// question2: Number(prompt('How many Moon does Mars have?', text)),
// question3: Number(prompt('How many Moons do we have?', text)),
// question4:Number(prompt("How many planets do our solar system have?", text))
// };
// if ( (obj.question2===2) && (obj.question3===1) && (obj.question1===1) && (obj.question4===8)){
// var oldVal = 'Name';
// var name = prompt("Write your name:", oldVal)
// if (name === "") { }
// else if (name == oldVal) { }
// else if (name) {
// alert("Congrats " + name + "!!! You just won " + value + "$ 🎉 🥳")
// }
// else {
// alert("You just missed the golden chance to become a billionaire 😮")
// }
// }
// else{
// alert("Sorry but either one of your answer was incorrect 😕")
// }
// }
</script>
<script type="text/javascript">
var lastScrollTop = 0;
navbar = document.getElementById("header");
window.addEventListener("scroll", function () {
var scrollTop = window.pageYOffset || document
.documentElement.scrollTop;
if (scrollTop > lastScrollTop) {
navbar.style.top = "-20%";
}
else {
navbar.style.top = "0";
}
lastScrollTop = scrollTop;
})
</script>
</html>