core: add foundations of idea

This commit is contained in:
Trianta 2024-12-09 21:04:28 -06:00
parent cb669ae425
commit 68e386fade
2 changed files with 39 additions and 23 deletions

View File

@ -39,6 +39,14 @@ canvas {
background: #003161; background: #003161;
} }
.cardLeft {
display: inline-block;
}
.cardRight {
display: inline-block;
}
#navigation { #navigation {
text-align: right; text-align: right;
padding: 6px; padding: 6px;

View File

@ -21,6 +21,7 @@
<h2 class="first">Completed Projects</h2> <h2 class="first">Completed Projects</h2>
<div class="card"> <div class="card">
<h3 class="cardTop">Pong</h3> <h3 class="cardTop">Pong</h3>
<div class="cardLeft">
<div class="canvas"> <div class="canvas">
<canvas width="750" height="585" id="pong"></canvas> <canvas width="750" height="585" id="pong"></canvas>
<script src="public/pong.js"></script> <script src="public/pong.js"></script>
@ -31,16 +32,22 @@
<button class="button" type="button" onclick = "restartGame()">Restart Game</a> <button class="button" type="button" onclick = "restartGame()">Restart Game</a>
</div> </div>
</div> </div>
</div>
<div class="cardRight">
<p class="cardStats">Left Paddle Height: <span id="leftPaddle"></span></p> <p class="cardStats">Left Paddle Height: <span id="leftPaddle"></span></p>
<p class="cardStats">Right Paddle Height: <span id="rightPaddle"></span></p> <p class="cardStats">Right Paddle Height: <span id="rightPaddle"></span></p>
<a class="navItem" href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/pong.js">View Code</a> <a class="navItem" href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/pong.js">View Code</a>
</div> </div>
</div>
<div class="card"> <div class="card">
<h3 class="cardTop">Snake</h3> <h3 class="cardTop">Snake</h3>
<div class="cardLeft">
<div class="canvas"> <div class="canvas">
<canvas width="625" height="375" id="snake"></canvas> <canvas width="625" height="375" id="snake"></canvas>
<script src="public/snake.js"></script> <script src="public/snake.js"></script>
</div> </div>
</div>
<div class="cardRight">
<p class="cardStats"> <p class="cardStats">
Adjust game size -- Width: Adjust game size -- Width:
<input class="cardStats" id="snakeWidth" type="number" min="2" max="31" value="31"> <input class="cardStats" id="snakeWidth" type="number" min="2" max="31" value="31">
@ -53,6 +60,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="first"> <div class="first">
<div class="inside"> <div class="inside">
<h2 class="second">Current Personal Projects</h2> <h2 class="second">Current Personal Projects</h2>