-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWelcomePage.html
More file actions
61 lines (60 loc) · 2.09 KB
/
WelcomePage.html
File metadata and controls
61 lines (60 loc) · 2.09 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
<style>
canvas {
position: absolute;
z-index: -1;
height: 100vh;
width: 100vw;
filter: blur(calc(1px * var(--blur, 3.5) / var(--device-pixel-ratio)));
}
img {
width: 100%;
height: auto;
margin: 10vh 0 10vh;
}
ul {
list-style-type: none;
padding: 0;
margin: 0 30%;
}
ul li {
margin: 0 0 2vh;
width: 100%;
background-color: #888;
text-align:center;
}
ul li mc-button {
width: calc(100% - 2 * var(--mc-ui-button-border-width));
display: inline-block;
padding: 2vh 0;
}
.mc-bouncing-text {
color: yellow;
font-size: 1.2rem;
text-shadow: 0.16rem 0.16rem 0 #404000;
position: absolute;
right: 24vw;
top: calc(100vw / 512 * 50 + 10vh);
transform: rotate(-25deg);
animation: mc-bouncing-text-bounce 0.4s infinite;
padding: 0; margin: 0;
}
a.mc-bouncing-text, .mc-bouncing-text a {
color: yellow;
text-decoration: underline;
}
@media (min-width: 767px) { .mc-bouncing-text { font-size: 1.5rem; text-shadow: 0.2rem 0.2rem 0 #404000; } }
@media (min-width: 1024px) { .mc-bouncing-text { font-size: 2rem; text-shadow: 0.26rem 0.26rem 0 #404000; } }
@media (min-width: 1440px) { .mc-bouncing-text { font-size: 2.5rem; text-shadow: 0.33rem 0.33rem 0 #404000; } }
@media (min-width: 2560px) { .mc-bouncing-text { font-size: 3rem; text-shadow: 0.4rem 0.4rem 0 #404000; } }
@keyframes mc-bouncing-text-bounce {
50% { transform: rotate(-25deg) scale(1.1); }
}
</style>
<canvas id="background-canvas">Your browser does not support canvas. Please upgrade your browser.</canvas>
<img width="512" height="64" src="./title.png" />
<p class="mc-bouncing-text">View in <a href="https://github.com/jerrychan7/WebMC">GitHub!</a></p>
<ul>
<li><mc-button gotoPage="select-world">Start</mc-button></li>
<li><mc-button gotoPage="how-to-play">How to play</mc-button></li>
<li><mc-button gotoPage="setting">Setting</mc-button></li>
</ul>