-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload.html
100 lines (90 loc) · 2.66 KB
/
load.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>로딩 페이지</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;700&display=swap');
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #ffffff;
height: 100vh;
overflow: hidden; /* 화면 스크롤 방지 */
}
.content {
width: 100%;
background-color: #ffffff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 15vw; /* 상대적인 크기 사용 */
font-weight: bold;
text-align: center;
padding: 10px;
font-family: 'League Spartan', sans-serif;
}
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fade-out {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.fade-in-out {
animation: fade-in 1s ease-in forwards;
animation-delay: 0s;
}
.fade-out {
animation: fade-out 1s ease-out forwards;
animation-delay: 2s;
}
/* 화면 고정 스타일 */
.fixed-screen {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
/* 320px * 643px 화면 크기에 대한 미디어 쿼리 */
@media (max-width: 320px) and (max-height: 643px) {
body {
justify-content: flex-start;
}
.content {
font-size: 13vh; /* 원하는 크기로 조정 */
}
}
</style>
</head>
<body>
<div class="content fixed-screen"> <!-- .fixed-screen 클래스 추가 -->
<p id="loading-text" class="fade-in-out">Play_Us.</p>
</div>
<script>
setTimeout(function () {
var loadingText = document.getElementById("loading-text");
loadingText.classList.add("fade-out");
setTimeout(function () {
window.location.href = "https://play-us.netlify.app/login.html";
}, 3000);
}, 3000);
</script>
</body>
</html>