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;
|
padding: 2rem 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#introduction {
|
|
||||||
height: 100%;
|
|
||||||
width: 50%;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 1;
|
|
||||||
top: 0;
|
|
||||||
overflow-x: hidden;
|
|
||||||
padding-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#introLeft {
|
#introLeft {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: 40rem;
|
max-width: 74rem;
|
||||||
left: 0;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#introRight {
|
#introRight {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: 10rem;
|
max-width: 5rem;
|
||||||
right: 0;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
.navigation {
|
||||||
|
70
index.html
70
index.html
@ -6,7 +6,7 @@
|
|||||||
<link rel="stylesheet" href="default.css" />
|
<link rel="stylesheet" href="default.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="introduction" class="inside">
|
<div class="inside">
|
||||||
<div id="introLeft">
|
<div id="introLeft">
|
||||||
<p style="font-size: 3.5rem;">TRIANTA</p>
|
<p style="font-size: 3.5rem;">TRIANTA</p>
|
||||||
<p>Function over form by design</p>
|
<p>Function over form by design</p>
|
||||||
@ -16,44 +16,42 @@
|
|||||||
<a class="navigation" href="https://lab.trianta.dev/Trianta">Projects</a>
|
<a class="navigation" href="https://lab.trianta.dev/Trianta">Projects</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="inside">
|
||||||
<div class="inside">
|
<h2>Completed Projects</h2>
|
||||||
<h2>Completed Projects</h2>
|
<div class="card">
|
||||||
<div class="card">
|
<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>
|
<div id="gameover" hidden="true">
|
||||||
<div id="gameover" hidden="true">
|
<h3>Game Over</h3>
|
||||||
<h3>Game Over</h3>
|
|
||||||
</div>
|
|
||||||
<div id="restart" hidden="true">
|
|
||||||
<button class="button" type="button" onclick = "restartGame()">Restart Game</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="stats">
|
<div id="restart" hidden="true">
|
||||||
<p style="font-size: 22px;">Pong</p>
|
<button class="button" type="button" onclick = "restartGame()">Restart Game</a>
|
||||||
<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>
|
</div>
|
||||||
<div class="card">
|
<div class="stats">
|
||||||
<div class="canvas">
|
<p style="font-size: 22px;">Pong</p>
|
||||||
<canvas width="625" height="375" id="snake"></canvas>
|
<p>Left Paddle Height: <span id="leftPaddle"></span></p>
|
||||||
<script src="public/snake.js"></script>
|
<p>Right Paddle Height: <span id="rightPaddle"></span></p>
|
||||||
</div>
|
<a href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/pong.js">View Code</a>
|
||||||
<div class="stats">
|
</div>
|
||||||
<p style="font-size: 22px;">Snake</p>
|
</div>
|
||||||
<p>
|
<div class="card">
|
||||||
Adjust game size -- Width:
|
<div class="canvas">
|
||||||
<input id="snakeWidth" type="number" min="2" max="31" value="31">
|
<canvas width="625" height="375" id="snake"></canvas>
|
||||||
Height:
|
<script src="public/snake.js"></script>
|
||||||
<input id="snakeHeight" type="number" min="2" max="24" value="24">
|
</div>
|
||||||
</p>
|
<div class="stats">
|
||||||
<p>Snake Head Location: <span id="snakeHead"></span></p>
|
<p style="font-size: 22px;">Snake</p>
|
||||||
<p>Food Location: <span id="snakeFood"></span></p>
|
<p>
|
||||||
<a href="https://lab.trianta.dev/Trianta/trianta.dev/src/branch/main/src/snake.ts">View Code</a>
|
Adjust game size -- Width:
|
||||||
</div>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user