-
Notifications
You must be signed in to change notification settings - Fork 67
/
index.html
82 lines (81 loc) · 3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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=Inter:wght@400;600;700&family=Poppins:wght@100;300&family=Roboto&family=Roboto+Slab:wght@500&display=swap"
rel="stylesheet"
/>
<title>shopy</title>
<style>
/* Add your preloader CSS here */
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden; /* Prevent scrolling while loading */
}
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffffff; /* Background color of the preloader */
display: flex;
justify-content: center;
align-items: center;
z-index: 9999; /* Ensure the preloader is above all other content */
}
.spinner {
width: 50px;
height: 50px;
border: 8px solid #f3f3f3; /* Light grey */
border-top: 8px solid #3498db; /* Blue */
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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=Inter:wght@400;600;700&family=Poppins:wght@100;300&family=Roboto&family=Roboto+Slab:wght@500&display=swap"
rel="stylesheet"
/>
<title>shopy</title>
</head>
<body>
<div id="preloader">
<div class="spinner"></div>
</div>
<div id="root" style="display: none;"></div>
<script type="module" src="/src/main.jsx"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Simulate a delay for demo purposes (e.g., fetching data)
setTimeout(function() {
// Hide the preloader
document.getElementById("preloader").style.display = "none";
// Show the main content
document.getElementById("root").style.display = "block";
// Allow scrolling
document.body.style.overflow = "auto";
}, 2000); // Adjust the delay time as needed
});
</script>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>