strafe-project/web-client/index.html

38 lines
841 B
HTML
Raw Normal View History

2025-01-03 05:48:22 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Strafe Client</title>
<base data-trunk-public-url />
2025-01-04 04:53:06 +00:00
<style type="text/css">
body {
margin: 0px;
background: #fff;
width: 100%;
height: 100%;
}
.root {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.main-canvas {
margin: 0;
/* This allows the flexbox to grow to max size, this is needed for WebGPU */
flex: 1;
/* This forces CSS to ignore the width/height of the canvas, this is needed for WebGL */
contain: size;
}
</style>
2025-01-03 05:48:22 +00:00
</head>
<body>
2025-01-04 04:53:06 +00:00
<div class="root">
<canvas class="main-canvas" id="canvas"></canvas>
</div>
2025-01-03 05:48:22 +00:00
<link data-trunk rel="rust" href="../strafe-client/Cargo.toml"/>
</body>
</html>