Spaces:
Running
Running
Update index.html
Browse files- index.html +85 -18
index.html
CHANGED
@@ -1,19 +1,86 @@
|
|
1 |
-
<!
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
<html>
|
3 |
+
<head>
|
4 |
+
<style>
|
5 |
+
body {
|
6 |
+
margin: 0;
|
7 |
+
height: 100vh;
|
8 |
+
display: flex;
|
9 |
+
align-items: center;
|
10 |
+
justify-content: center;
|
11 |
+
background-color: black;
|
12 |
+
overflow: hidden;
|
13 |
+
}
|
14 |
+
.container {
|
15 |
+
font-size: 10px;
|
16 |
+
width: 40em;
|
17 |
+
height: 40em;
|
18 |
+
position: relative;
|
19 |
+
}
|
20 |
+
.sun {
|
21 |
+
position: absolute;
|
22 |
+
top: 15em;
|
23 |
+
left: 15em;
|
24 |
+
width: 10em;
|
25 |
+
height: 10em;
|
26 |
+
background-color: yellow;
|
27 |
+
border-radius: 50%;
|
28 |
+
box-shadow: 0 0 3em white;
|
29 |
+
}
|
30 |
+
.earth,.moon {
|
31 |
+
position: absolute;
|
32 |
+
border-style: solid;
|
33 |
+
border-color: white transparent transparent transparent;
|
34 |
+
border-width: 0.1em 0.1em 0 0;
|
35 |
+
border-radius: 50%;
|
36 |
+
}
|
37 |
+
.earth {
|
38 |
+
top: 5em;
|
39 |
+
left: 5em;
|
40 |
+
width: 30em;
|
41 |
+
height: 30em;
|
42 |
+
animation: orbit 36.5s linear infinite;
|
43 |
+
}
|
44 |
+
.moon {
|
45 |
+
top: 0;
|
46 |
+
right: 0;
|
47 |
+
width: 8em;
|
48 |
+
height: 8em;
|
49 |
+
animation: orbit 2.7s linear infinite;
|
50 |
+
}
|
51 |
+
.earth::before,
|
52 |
+
.moon::before {
|
53 |
+
content: '';
|
54 |
+
position: absolute;
|
55 |
+
border-radius: 50%;
|
56 |
+
}
|
57 |
+
.earth::before {
|
58 |
+
top: 2.8em;
|
59 |
+
right: 2.8em;
|
60 |
+
width: 3em;
|
61 |
+
height: 3em;
|
62 |
+
background-color: aqua;
|
63 |
+
}
|
64 |
+
.moon::before {
|
65 |
+
top: 0.8em;
|
66 |
+
right: 0.2em;
|
67 |
+
width: 1.2em;
|
68 |
+
height: 1.2em;
|
69 |
+
background-color: silver;
|
70 |
+
}
|
71 |
+
@keyframes orbit {
|
72 |
+
to {
|
73 |
+
transform: rotate(360deg);
|
74 |
+
}
|
75 |
+
}
|
76 |
+
</style>
|
77 |
+
</head>
|
78 |
+
<body>
|
79 |
+
<div class="container">
|
80 |
+
<div class="sun"></div>
|
81 |
+
<div class="earth">
|
82 |
+
<div class="moon"></div>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
</body>
|
86 |
+
</html>
|