prismarine-web-client-mirror/index.html
AwesomestCode b6b65793d3
change font to mojangles (#11)
* change font to mojangles

minecraftia is a fan-recreation, mojangles is the official font

* change Mojangles to mojangles
2021-02-28 17:33:56 +01:00

85 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Prismarine Web Client</title>
<style type="text/css">
@font-face {
font-family: minecraft;
src: url(minecraftia.woff);
}
@font-face {
font-family: mojangles;
src: url(mojangles.ttf);
}
html {
overflow: hidden;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
canvas {
height: 100%;
width: 100%;
font-size: 0;
margin: 0;
padding: 0;
}
.chat-wrapper {
position: fixed;
background-color: rgba(0, 0, 0, 0.5);
}
.chat-display-wrapper {
bottom: calc(8px * 16);
padding: 4px;
max-height: calc(90px * 8);
width: calc(320px * 4);
}
.chat-input-wrapper {
bottom: calc(2px * 16);
width: 100%;
overflow: hidden;
background-color: rgba(0, 0, 0, 0);
}
.chat {
overflow: hidden;
color: white;
font-size: 32px;
margin: 0px;
line-height: 100%;
text-shadow: 4px 4px 0px #3f3f3f;
font-family: mojangles, minecraft, monospace;
width: 100%;
max-height: calc(90px * 8)
}
input[type=text] {
background-color: rgba(0, 0, 0, 0.5);
}
li {
display: block;
}
</style>
</head>
<body>
<div class="chat-wrapper chat-display-wrapper">
<div class="chat" id="chat">
<p>Welcome to prismarine-web-client! Chat appears here.</p>
</div>
</div>
<div class="chat-wrapper chat-input-wrapper">
<div class="chat" id="chat-input">
<input type="text" class="chat" id="chatinput"></input>
</div>
</div>
<script type="text/javascript" src="index.js"></script>
</body>
</html>