trianta.dev/pages/completed/index.html

58 lines
2.3 KiB
HTML
Raw Normal View History

2024-12-10 01:31:36 -06:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Trianta</title>
<link rel="stylesheet" href="/default.css" />
2024-12-10 01:31:36 -06:00
</head>
<body>
<div class="inside">
<div id="introLeft">
2024-12-10 01:51:51 -06:00
<a href="/" class="trianta">TRIANTA</a>
2024-12-10 01:31:36 -06:00
<p>Function over form by design</p>
</div>
<div id="introRight">
<a href="https://www.github.com/trimutex">GitHub</a>
<a href="https://lab.trianta.dev/Trianta">Projects</a>
</div>
<h2>Completed Projects</h2>
<div class="card reserve">
2024-12-10 01:31:36 -06:00
<div class="canvas">
<canvas width="750" height="585" id="pong"></canvas>
<script src="public/pong.js"></script>
<div id="gameover" hidden="true">
<h3>Game Over</h3>
</div>
<div id="restart" hidden="true">
<button class="button" type="button" onclick = "restartGame()">Restart Game</a>
</div>
</div>
<div class="stats">
<p style="font-size: 22px;">Pong</p>
<p>Left Paddle Height: <span id="leftPaddle"></span></p>
<p>Right Paddle Height: <span id="rightPaddle"></span></p>
<a href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/pong.js">View Code</a>
</div>
</div>
<div class="card reserve">
2024-12-10 01:31:36 -06:00
<div class="canvas">
<canvas width="625" height="375" id="snake"></canvas>
<script src="public/snake.js"></script>
</div>
<div class="stats">
<p style="font-size: 22px;">Snake</p>
<p>
Adjust game size -- Width:
<input id="snakeWidth" type="number" min="2" max="31" value="31">
Height:
<input id="snakeHeight" type="number" min="2" max="24" value="24">
</p>
<p>Snake Head Location: <span id="snakeHead"></span></p>
<p>Food Location: <span id="snakeFood"></span></p>
<a href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/snake.ts">View Code</a>
</div>
</div>
</div>
</body>
</html>