add robots.txt and title

This commit is contained in:
florian 2025-06-11 13:18:03 +02:00
parent 8b89972fc1
commit a93f2e1dc3
4 changed files with 70 additions and 51 deletions

View File

@ -24,7 +24,9 @@
</div> </div>
</template> </template>
<h1 class="title">Tetris on the web</h1>
<main>
<div class="frame scoreboard"> <div class="frame scoreboard">
<p>High Scores</p> <p>High Scores</p>
<div id="high-scores-container"> <div id="high-scores-container">
@ -44,7 +46,7 @@
<div class="hidden" id="board-container"> <div class="hidden" id="board-container">
<canvas id="tetris-canvas" width="300" height="600"></canvas> <canvas id="tetris-canvas" width="300" height="600"></canvas>
</div> </div>
<div class="main-menu menu" id="main-menu" > <div class="main-menu menu" id="main-menu">
<label id="start-button" class="button">Start</label> <label id="start-button" class="button">Start</label>
</div> </div>
<div class="gameOver-menu menu hidden" id="game-over-menu"> <div class="gameOver-menu menu hidden" id="game-over-menu">
@ -80,6 +82,8 @@
<div class="options"> <div class="options">
</div> </div>
</main>
</body> </body>
</html> </html>

3
public/robots.txt Normal file
View File

@ -0,0 +1,3 @@
User-agent: *
Disallow:
Sitemap: https://games.penggames.systems/sitemap.xml

5
public/sitemap.xml Normal file
View File

@ -0,0 +1,5 @@
<url>
<loc>https://games.penggames.systems/</loc>
<lastmod>2025-06-10T17:00:55+00:00</lastmod>
</url>

View File

@ -18,7 +18,7 @@ body {
align-self: center; align-self: center;
justify-content: center; justify-content: center;
flex-direction: row; flex-direction: column;
justify-content: space-evenly; justify-content: space-evenly;
@ -28,6 +28,13 @@ body {
font-size: 1.5rem; font-size: 1.5rem;
} }
main {
display: flex;
align-self: center;
justify-content: center;
flex-direction: row;
}
.container { .container {
gap: 1rem; gap: 1rem;
display: flex; display: flex;