-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
97 lines (88 loc) · 3.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Space Station</title>
<style>
/* Full height layout with flexbox */
body, html {
height: 100%;
margin: 0;
background-image: url('https://www.travelandleisure.com/thmb/NOzP4KKGmbw_Tp_9wywHcdvSDJ0=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)/spaceship-neptune-interior-cosy-lounge-SPACELOUNGE0422-29e902cc3a0842d68ea4c8a769086903.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
color: white; /* Set all text to white */
display: flex;
flex-direction: column;
text-align: center; /* Centers text for all children */
}
#overlay-text {
font-size: 50px;
margin-top: 20px;
}
#project-title {
font-size: 40px;
margin-top: 10px;
}
/* Centered text styling for the main message */
.center-text {
font-size: 30px;
z-index: 10; /* Ensure the text appears above the background images */
margin-top: 150px; /* Adjust as needed */
}
/* Footer styling */
.footer {
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
font-size: 20px;
margin-bottom: 10px;
}
/* Styling for the sparkles */
.sparkle {
position: absolute;
width: 90px; /* Adjusted size, assuming original was 30px */
height: 90px;
}
/* Random positions for sparkles */
.sparkle1 { top: 30%; left: 30%; }
.sparkle2 { top: 30%; left: 75%; }
.sparkle3 { top: 75%; left: 60%; }
.sparkle4 { top: 75%; left: 15%; }
/* Remove other positions not needed */
</style>
</head>
<body>
<div id="overlay-text">welcome back to the space station!</div>
<div id="project-title">cosmos cares 🪐</div>
<div class="center-text">click on a star to explore</div>
<!-- Clickable sparkle images positioned randomly -->
<div class="sparkle sparkle1">
<a href="https://guptajanavi.github.io/cosmos-cares/meditation">
<img src="assets/white-sparkle-png-transparent-29 (1).png" alt="white sparkle" style="width: 90px; height: 90px;">
</a>
</div>
<div class="sparkle sparkle2">
<a href="https://guptajanavi.github.io/cosmos-cares/journal">
<img src="assets/white-sparkle-png-transparent-29 (1).png" alt="white sparkle" style="width: 90px; height: 90px;">
</a>
</div>
<div class="sparkle sparkle3">
<a href="https://guptajanavi.github.io/cosmos-cares/affirmations">
<img src="assets/white-sparkle-png-transparent-29 (1).png" alt="white sparkle" style="width: 90px; height: 90px;">
</a>
</div>
<div class="sparkle sparkle4">
<a href="https://guptajanavi.github.io/cosmos-cares/trivia">
<img src="assets/white-sparkle-png-transparent-29 (1).png" alt="white sparkle" style="width: 90px; height: 90px;">
</a>
</div>
<!-- Footer -->
<div class="footer">
made with 🤍 by natalie, janavi, and avantika @carnegie mellon
</div>
</body>
</html>