Skip to content

Commit c7bd7ec

Browse files
committed
feat: add base HTML structure and styling for Skyline Sprint
Create index.html with layout container for the game canvas. Add base styling for body, main layout, and canvas including centering, borders, and responsive sizing.
1 parent 6cd5df5 commit c7bd7ec

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Skyline Sprint</title>
7+
<style>
8+
html,
9+
body {
10+
margin: 0;
11+
padding: 0;
12+
background: #12151f;
13+
font-family: "Trebuchet MS", "Gill Sans", sans-serif;
14+
color: #f2f4fa;
15+
}
16+
17+
main {
18+
min-height: 100vh;
19+
display: grid;
20+
place-items: center;
21+
padding: 1rem;
22+
box-sizing: border-box;
23+
}
24+
25+
canvas {
26+
border: 3px solid #2b3347;
27+
border-radius: 10px;
28+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
29+
max-width: 100%;
30+
height: auto !important;
31+
}
32+
</style>
33+
</head>
34+
<body>
35+
<main id="app"></main>
36+
37+
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.3/p5.min.js"></script>
38+
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.3/addons/p5.sound.min.js"></script>
39+
<script src="sketch.js"></script>
40+
</body>
41+
</html>

0 commit comments

Comments
 (0)