-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinal-project-basic.html
More file actions
168 lines (168 loc) · 4.35 KB
/
final-project-basic.html
File metadata and controls
168 lines (168 loc) · 4.35 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
<!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" />
<title>Document</title>
</head>
<style>
body {
text-align: center;
background: linear-gradient(
109.6deg,
rgb(20, 30, 48) 11.2%,
rgb(36, 59, 85) 91.1%
);
}
h1 {
margin: 5px 20px auto;
font-size: 60px;
color: #2893c1;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
h2 {
color: ivory;
font-size: 20px;
font-weight: lighter;
}
ul {
display: inline;
list-style: none;
padding: 90px;
text-align: center;
padding-inline-start: 0px;
}
li {
display: inline;
margin: 50px 0 auto;
}
.star-map {
margin-right: 100px;
padding: 80px;
}
.art {
margin-left: 100px;
padding: 80px;
}
.events {
margin: 20px auto;
padding: 150px;
}
a {
text-decoration: none;
color: #a3e3ff;
font-style: italic;
}
a:hover {
transition: all 200ms ease-in-out;
opacity: 0.9;
}
p {
color: ivory;
line-height: 25px;
font-family: monospace;
}
img {
display: block;
margin: 20px auto;
border: 1px solid white;
border-radius: 12px 30px;
width: 600px;
}
button {
display: block;
margin: 20px auto;
padding: 10px 10px;
background: transparent;
color: aliceblue;
font-size: 15px;
border: 2px solid #a3e3ff;
border-radius: 40px;
box-shadow: 3px 3px 4px rgba(255, 255, 255, 0.3);
}
button:hover {
transition: all 400ms ease-in-out;
background-color: rgb(163, 227, 255);
color: rgb(36, 59, 85);
padding: 12px 15px;
cursor: pointer;
}
div {
color: white;
font-family: monospace;
font-size: 15px;
}
span {
color: ivory;
font-style: italic;
text-decoration: underline;
}
</style>
<body>
<h1><strong>Night Sky</strong></h1>
<h2>
“I have loved the stars too fondly to be fearful of the night.” ~Sarah
Williams
</h2>
<hr />
<ul>
<li class="star-map">
<a href="https://stellarium-web.org/" target="_blank"
>Stellarium Star Map</a
>
</li>
<li class="events">
<a href="https://in-the-sky.org/location.php" target="_blank"
>Tonight events</a
>
</li>
<li class="art">
<a
href="https://fineartamerica.com/art/paintings/night+sky"
target="_blank"
>Night art</a
>
</li>
</ul>
<hr />
<p>
<em>
Night sky captivates me. A vast stretch of canvas smeared with dark
colors with soft clouds and twinkling dots of stars. Looking at the sky
does not only fascinates one, but also brings a sense of humility. How
tiny we are under this enormous sky. Yet how lucky we are to able to
witness this dark beauty. We can only look up in wonderment and be
grateful to be blessed with eyes that could capture its beauty every
night.
</em>
</p>
<img
src="https://images.immediate.co.uk/production/volatile/sites/25/2021/01/GettyImages-162886773-20e8a87.jpg?quality=90&webp=true&resize=1200,800"
alt="girl looking at stars"
/>
<button>🔭 <em>Click Me</em></button>
<div>
Scribbled by
<span
><a href="https://www.linkedin.com/in/aish007/" target="_blank">
Aishwarya</a
></span
>
</div>
<script>
function askInterest() {
let name = prompt("Hello! What is your name?");
let ans = prompt("Do you like night skies too (Yes or No) ?");
ans = ans.toLowerCase().trim();
if (ans === "yes") {
alert(`Wow, ${name}! We can be friends!`);
} else {
alert(`Too bad 🙁 Night skies are pretty. `);
}
}
let clickMe = document.querySelector("button");
clickMe.addEventListener("click", askInterest);
</script>
</body>
</html>