Implement title screen

This commit is contained in:
2023-03-07 08:51:04 -08:00
parent 26217a9506
commit 4eaf00c105
8 changed files with 75 additions and 0 deletions

BIN
cover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

52
css/title.css Normal file
View 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

Binary file not shown.

BIN
font/Baloo2-ExtraBold.ttf Normal file

Binary file not shown.

BIN
font/Baloo2-Medium.ttf Normal file

Binary file not shown.

BIN
font/Baloo2-Regular.ttf Normal file

Binary file not shown.

BIN
font/Baloo2-SemiBold.ttf Normal file

Binary file not shown.

23
index.html Normal file
View 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>