-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
166 lines (148 loc) · 3.67 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
<html>
<head>
<title>Three.js</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r127/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/23.1.1/tween.umd.js"
integrity="sha512-J8rv5Qz++2kwDP7YUBqxm3LCtPXWghcqXvxPrLrk81E31eMA/tEAjKakXJJDQoy9tj+41+EDYDsD6Xc76lnT7w=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Madimi+One&family=Reem+Kufi:[email protected]&display=swap"
rel="stylesheet">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</head>
<style>
body {
margin: 0;
padding: 0;
cursor: grab;
overflow: hidden;
}
body:active {
cursor: grabbing;
}
#popup {
background-color: antiquewhite;
position: absolute;
top: 30vh;
right: 20vw;
width: 200px;
cursor: default;
padding: 5px;
transform-style: preserve-3d;
border-radius: 5px;
display: none;
transition: 0.5s;
}
#popup:before {
content: "";
width: 25px;
height: 25px;
background-color: antiquewhite;
transform: rotate(45deg) translateZ(-1px);
position: absolute;
bottom: 5px;
left: -10px;
}
#popup p {
font-family: 'Reem Kufi';
margin: 0;
font-size: smaller;
text-align: center;
padding: 5px;
z-index: 100;
}
#popup h2 {
font-family: 'Madimi One';
margin: 0;
background-color: white;
padding: 0px 7px;
}
#close {
position: absolute;
top: 0;
right: 0;
cursor: pointer;
z-index: 5;
margin: 8px 5px 0px 0px;
}
#loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgb(190, 190, 190);
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid #f3f3f3;
border-top: 5px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.text {
font-family: 'Madimi One';
margin: 10px;
font-size: larger;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#footer {
width: 100%;
position: fixed;
bottom: 0;
color: white;
font-family: 'Reem Kufi';
text-align: left;
padding: 5px;
}
#footer h3 {
margin: 0;
}
a {
color: #3498db;
text-decoration: none;
}
</style>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three/build/three.module.js"
}
}
</script>
<script src="script.js" type="module"></script>
<body>
<div id="loader">
<div class="spinner"></div>
<div class="text">Loading...</div>
</div>
<div id="popup">
<div id="close"><span class="material-symbols-outlined">
close
</span></div>
<h2 id="name">NAME OF BODY</h2>
<p id="text">lorem lorem ipsum ipsum lorem lorem ipsum ipsum lorem lorem ipsum ipsum lorem lorem ipsum ipsum
lorem lorem
ipsum ipsum.</p>
</div>
<div id="footer">
<h3>Made by <a href="https://github.com/manyatapawagi">Manyata Pawagi</a> | 2024</h3>
</div>
</body>
</html>