Implement title screen
This commit is contained in:
52
css/title.css
Normal file
52
css/title.css
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: Baloo2;
|
||||||
|
src: url("../font/Baloo2-Regular.ttf");
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: Baloo2;
|
||||||
|
src: url("../font/Baloo2-Bold.ttf");
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-image: url("../cover.png");
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.center {
|
||||||
|
background-color: #6d7377aa;
|
||||||
|
width: 50%;
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
padding: 24px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1.name {
|
||||||
|
font-family: Baloo2, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1000%;
|
||||||
|
text-shadow: 2px 4px #0ad9ab;
|
||||||
|
color: #00ffc6;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.play {
|
||||||
|
font-family: Baloo2, sans-serif;
|
||||||
|
font-size: 500%;
|
||||||
|
padding: 4px 60px;
|
||||||
|
border: none;
|
||||||
|
background-color: #49d868;
|
||||||
|
border-radius: 12px;
|
||||||
|
color: white;
|
||||||
|
transition-duration: 0.4s;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.play:hover {
|
||||||
|
background-color: #20b13f;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
BIN
font/Baloo2-Bold.ttf
Normal file
BIN
font/Baloo2-Bold.ttf
Normal file
Binary file not shown.
BIN
font/Baloo2-ExtraBold.ttf
Normal file
BIN
font/Baloo2-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
font/Baloo2-Medium.ttf
Normal file
BIN
font/Baloo2-Medium.ttf
Normal file
Binary file not shown.
BIN
font/Baloo2-Regular.ttf
Normal file
BIN
font/Baloo2-Regular.ttf
Normal file
Binary file not shown.
BIN
font/Baloo2-SemiBold.ttf
Normal file
BIN
font/Baloo2-SemiBold.ttf
Normal file
Binary file not shown.
23
index.html
Normal file
23
index.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Play Runic</title>
|
||||||
|
<link rel="stylesheet" href="css/title.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="center">
|
||||||
|
<h1 class="name">
|
||||||
|
RUNIC
|
||||||
|
</h1>
|
||||||
|
<button class="play" onclick="play()">
|
||||||
|
PLAY
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
function play() {
|
||||||
|
window.location = "game.html";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue
Block a user