add styles
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>test</title>
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@@ -13,5 +14,7 @@
|
||||
</canvas>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="game.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
20
public/styles.css
Normal file
20
public/styles.css
Normal file
@@ -0,0 +1,20 @@
|
||||
@font-face {
|
||||
font-family: 'Monogram';
|
||||
src: url('/assets/monogram-extended.ttf') format('truetype');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.canvas {
|
||||
text-align: center;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
canvas#game {
|
||||
border: 2px solid #5d5d5d;
|
||||
}
|
||||
Reference in New Issue
Block a user