-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (136 loc) · 4.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Loading Screen</title>
<style>
/* General reset for margin and padding */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Full page size and font settings */
body, html {
height: 100%;
font-family: 'Arial', sans-serif
;
overflow: hidden; /* Prevent scrolling when loading */
}
/* Loading screen styling */
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgb(220, 226, 235);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
/* Circular spinner animation */
.spinner {
border: 6px solid #f3f3f3;
border-top: 6px solid #3498db;
border-radius: 50%;
width: 70px;
height: 70px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Main content (initially hidden) */
.main-content {
opacity: 0;
visibility: hidden;
height: 75%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
}
/* After content loads, the class 'loaded' will show it */
body.loaded .main-content {
opacity: 1;
visibility: visible;
transition: opacity 0.8s ease-in-out;
}
/* Heading and text in the main content */
h1 {
color: black;
font-size: 3em;
}
p {
color: #7f8c8d;
font-size: 1.2em;
}
/* Container for loading spinner and text */
.loading-container {
text-align: center;
}
/* Spinner styles */
.spinner {
border: 12px solid #f3f3f3;
border-top: 12px solid hsl(236, 83%, 40%);
border-radius: 80%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
}
/* Spinner animation */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Loading text */
h2 {
margin-top: 20px;
color: #555;
font-size: 1.5em;
}
</style>
<link rel="stylesheet" href="my.css">
<link rel="stylesheet" href="responsive-1.css">
</head>
<body background="pic.png">
<!-- Loading Screen -->
<div id="loading-screen">
<div class="spinner"></div>
</div>
<!-- Main Content -->
<div class="main-content">
<div>
<h1>Welcome to telebirr earn platform</h1>
<p>Your content has successfully loaded.</p>
</div>
</div>
<script>
// Wait for the page to fully load all content
window.onload = function() {
// Hide the loading screen and display the main content
var loadingScreen = document.getElementById('loading-screen');
loadingScreen.style.display = 'none';
// Add class 'loaded' to the body to trigger the main content display
document.body.classList.add('loaded');
};
</script>
<!-- Loading container -->
<div class="loading-container">
<div class="spinner"></div>
<h2>Loading, please wait...</h2>
</div>
<script>
// Simulate loading for 3 seconds, then redirect to the main content
setTimeout(function() {
window.location.href = "internal.html"; // Change the URL to the actual page you want to redirect to
}, 3000);
</script>
</body>
</html>