-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (122 loc) · 3.83 KB
/
index.html
File metadata and controls
143 lines (122 loc) · 3.83 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<title>React Deckbuilder</title>
<style>
@keyframes pulse {
50% {
transform: scale(1.033);
}
}
.loading-overlay {
background: radial-gradient(#2a2b2a, #000);
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: 9999;
cursor: wait;
display: flex;
align-items: center;
justify-content: center;
}
.loading-overlay__content {
position: relative; /* allows absolute positionining within */
}
.loading-overlay__img-frame {
background-color: rgba(0, 0, 0, 0.25);
border: 1px solid #706c61;
border-radius: 0.5rem;
padding: 0.5rem;
box-shadow: 0 1rem 1rem -0.5rem rgba(0, 0, 0, 0.4);
position: relative;
animation: pulse 1.25s ease-in-out infinite;
}
.loading-overlay__heading {
font-family: 'Eczar', serif;
color: #fff;
font-size: 1.75rem;
letter-spacing: 0.085rem;
text-align: center;
margin-top: 2rem;
position: relative;
animation: pulse 1.25s ease-in-out infinite;
}
.loading-overlay__img-frame,
.loading-overlay__heading {
z-index: 10;
}
@keyframes rotate {
100% {
transform: rotate(360deg) translate(-50%, -50%);
}
}
.loading-overlay__circle {
position: absolute;
z-index: 5;
top: 50%;
left: 50%;
transform: rotate(0deg) translate(-50%, -50%);
transform-origin: top left;
border-radius: 50%;
width: 500px;
height: 500px;
background-color: rgba(0, 0, 0, 0.1);
border: 3px dashed rgba(255, 255, 255, 0.25);
animation: rotate 3s linear infinite;
box-shadow: 0 0 75px rgba(0, 0, 0, 0.7);
}
/* conditional displaying controlled by JS */
.js-loading-overlay {
opacity: 1;
visibility: visible;
transition:
opacity 0.75s ease-in-out,
visibility 0.75s ease-in-out;
transition-delay: 0.5s;
}
.js-loading-overlay.images-loaded.sfx-loaded {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
</style>
<script>
function getLoadingOverlay() {
return document.querySelector('.js-loading-overlay')
}
window.addEventListener('images load', () => {
console.log('images load')
getLoadingOverlay().classList.add('images-loaded')
})
window.addEventListener('sfx load', () => {
console.log('sfx load')
getLoadingOverlay().classList.add('sfx-loaded')
})
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<!-- loading overlay -->
<!-- <div class="js-loading-overlay loading-overlay">
<div class="loading-overlay__content">
<div class="loading-overlay__img-frame">
<img src="/spell-book.webp" role="presentation" alt="" />
</div>
<h1 class="loading-overlay__heading">Loading...</h1>
<div class="loading-overlay__circle"></div>
</div>
</div> -->
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>