Skip to content

Commit fbe9b21

Browse files
committed
use a css file
1 parent f4b1c36 commit fbe9b21

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

demo/404.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1"/>
88
<meta http-equiv="refresh" content="3; URL='.'"/>
99
<link rel="icon" href="qr.png"/>
10+
<link rel="stylesheet" href="style.css"/>
1011
<title>404 - Page Not Found</title>
1112
</head>
1213
<body>
13-
<h1 style="text-align:center">404</h1>
14-
<h2 style="text-align:center">Page Not Found</h2>
14+
<h1>404</h1>
15+
<h2>Page Not Found</h2>
1516
</body>
1617
</html>

demo/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
<meta property="og:url" content="https://donno2048.github.io/snake/" />
1111
<meta property="og:image" content="https://donno2048.github.io/snake/qr.png" />
1212
<link rel="icon" href="qr.png" />
13+
<link rel="stylesheet" href="style.css" />
1314
<title>Snake</title>
1415
<script src="js-dos.js"></script>
1516
</head>
16-
<body style="display:flex;justify-content:center">
17+
<body>
1718
<canvas id="jsdos"></canvas>
1819
<noscript>
19-
<p style="text-wrap:balance;text-align:center">Please enable JavaScript and refresh to play the game.</p>
20+
<p>Please enable JavaScript and refresh to play the game.</p>
2021
</noscript>
2122
<script src="main.js"></script>
2223
</body>

demo/style.css

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
body {
2+
display: flex;
3+
justify-content: center;
4+
}
5+
6+
* {
7+
text-wrap: balance;
8+
text-align: center;
9+
}
10+

0 commit comments

Comments
 (0)