forked from CASAlabone/Loginsession_2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (54 loc) · 1.38 KB
/
index.html
File metadata and controls
61 lines (54 loc) · 1.38 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome</title>
<link rel="stylesheet" href="styles.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-image: url('intro.jpg'); /* Set background image */
background-size: cover;
color: white; /* Set font color to white */
}
h1 {
font-size: 26px; /* Adjust the font size as needed */
opacity: 0; /* Initially set opacity to 0 */
animation: fadeIn 2s forwards; /* Add fade-in animation */
}
@keyframes fadeIn {
from { opacity: 0; } /* Start with opacity 0 */
to { opacity: 1; } /* Fade in to full opacity */
}
#loading-bar {
display: none;
width: 0%; /* Initial width set to 0 */
height: 5px;
position: fixed;
top: 0;
left: 0;
background-color: #3498db;
z-index: 9999;
transition: width 2s; /* Animation duration set to 2 seconds */
}
</style>
</head>
<body>
<h1>당신의 하루를 그려보세요</h1>
<div id="loading-bar"></div>
<script>
// Show loading bar
const loadingBar = document.getElementById("loading-bar");
loadingBar.style.display = "block";
// Redirect after 3 seconds
setTimeout(() => {
window.location.href = "login.html";
}, 3000);
</script>
</body>
</html>