-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
112 lines (104 loc) · 2.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Standard Favicon -->
<link rel="icon" type="image/png" href="./assets/Color_Logo_Blue.png" />
<link
href="https://unpkg.com/[email protected]/css/boxicons.min.css"
rel="stylesheet"
/>
<!-- For Apple devices -->
<link
rel="apple-touch-icon"
sizes="512x512"
href="./assets/Color_Logo_Blue.png"
/>
<!-- For general use, like on Android -->
<link
rel="icon"
type="image/png"
sizes="256x256"
href="./assets/Color_Logo_Blue.png"
/>
<link
rel="icon"
type="image/png"
sizes="512x512"
href="./assets/Color_Logo_Blue.png"
/>
<!-- Web App Manifest -->
<link rel="manifest" href="/site.webmanifest" />
<link rel="stylesheet" href="./globals.css" />
<title>Disc Rescue Network</title>
<style>
.root {
width: 100dvw;
height: 100dvh;
}
body {
font-family: Arial, sans-serif;
background-color: var(--primary-blue);
margin: 0;
overflow: hidden;
width: 100%;
height: 100%;
}
.app-container {
display: flex;
align-items: center;
justify-content: space-evenly;
position: absolute;
flex-direction: column;
top: 0;
left: 0;
margin-left: auto;
margin-right: auto;
width: 100%;
height: 100%;
}
.loading-logo {
background: url("./assets/DRN_WebLogo_HDPI.png") no-repeat center center;
background-size: contain;
justify-content: center;
align-items: center;
width: 50%; /* adjust based on your desired size */
height: 50%; /* adjust based on your desired size */
max-width: 600px; /* or another size that makes sense for your logo */
max-height: 600px;
}
.loading-bar-container {
position: relative;
width: 50%;
height: 20px;
background-color: #ddd;
margin-top: 20%; /* Position it in the bottom half of the screen */
}
.loading-bar {
position: absolute;
height: 100%;
width: 0;
background-color: #4caf50; /* Green loading bar */
transition: width 3s;
}
</style>
<script>
setTimeout(function () {
document.querySelector(".loading-bar").style.width = "100%";
}, 100); // Start the bar load almost immediately after page load
// Redirects to a new HTML page after 3 seconds
setTimeout(function () {
window.location.href = "home.html";
}, 3000);
</script>
</head>
<body>
<div class="app-container">
<div class="loading-logo"></div>
<div class="loading-bar-container">
<div class="loading-bar"></div>
</div>
</div>
</body>
</html>