core: actually achieve split intro
This commit is contained in:
parent
a751832a5c
commit
d574883963
18
default.css
18
default.css
@ -20,26 +20,16 @@ body {
|
||||
padding: 2rem 1.5rem;
|
||||
}
|
||||
|
||||
#introduction {
|
||||
height: 100%;
|
||||
width: 50%;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
overflow-x: hidden;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
#introLeft {
|
||||
display: inline-block;
|
||||
max-width: 40rem;
|
||||
left: 0;
|
||||
max-width: 74rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#introRight {
|
||||
display: inline-block;
|
||||
max-width: 10rem;
|
||||
right: 0;
|
||||
max-width: 5rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.navigation {
|
||||
|
70
index.html
70
index.html
@ -6,7 +6,7 @@
|
||||
<link rel="stylesheet" href="default.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="introduction" class="inside">
|
||||
<div class="inside">
|
||||
<div id="introLeft">
|
||||
<p style="font-size: 3.5rem;">TRIANTA</p>
|
||||
<p>Function over form by design</p>
|
||||
@ -16,44 +16,42 @@
|
||||
<a class="navigation" href="https://lab.trianta.dev/Trianta">Projects</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="inside">
|
||||
<h2>Completed Projects</h2>
|
||||
<div class="card">
|
||||
<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 class="inside">
|
||||
<h2>Completed Projects</h2>
|
||||
<div class="card">
|
||||
<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 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 id="restart" hidden="true">
|
||||
<button class="button" type="button" onclick = "restartGame()">Restart Game</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<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 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">
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user