-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (110 loc) · 2.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<link href="moonicon.png" rel="icon">
<link href="moonicon.png" rel="apple-touch-icon">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Today's Moon</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-size: cover;
background-repeat: no-repeat;
background: url(space2.jpg)repeat center center/cover;
font-family: Arial, sans-serif;
}
button {
padding: 15px 30px;
font-size: 18px;
background-color: #434343af;
color: #fffae4;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
button:hover {
background: linear-gradient();
background-color: rgba(19, 19, 19, 0.633);
box-shadow:0 0 8px #fffae4;
}
@media only screen and (max-width: 768px) {
.background::before {
background-color: rgba(255, 255, 255, 0.9);
}
#moon-phase {
font-size: 20px;
}
#illumination {
font-size: 16px;
}
#moon-icon {
width: 80px;
height: 80px;
}
.footer-content {
font-size: 12px;
}
}
@media only screen and (max-width: 480px) {
.background::before {
background-color: rgba(255, 255, 255, 1);
}
#moon-phase {
font-size: 18px;
}
#illumination {
font-size: 14px;
}
#moon-icon {
width: 60px;
height: 60px;
}
.footer-content {
font-size: 10px;
}
}
.button{
box-sizing: content-box;
}
footer {
text-align: center;
text-justify:center;
position: fixed;
font-size: 10px;
bottom: 0;
background-color: #00000000;
padding: 50px 30px 10px;
font-size: 14px;
color: #fffae4;
}
footer a{
color:inherit;
text-decoration: none;
}
</style>
</head>
<body >
<div class="container">
<div class="moon-info">
<a href="home.html">
<button >Today's Moon </button>
</a>
</div>
<footer class="footer" >
Designed by <a href="https://abhiyendru.netlify.app">Rahul.R</a>
</footer>
</a>
</a>
</div>
<script src="suncalc.js"></script>
<script src="script.js"></script>
</body>
</html>
<!--made by rahul(https://github.com/abhiyendru01)-->