agb/website/site/index.html

132 lines
2.7 KiB
HTML
Raw Normal View History

2024-04-04 10:54:11 +11:00
<!DOCTYPE html>
<html>
2024-04-06 03:09:50 +11:00
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>agb - a rust framework for making Game Boy Advance games</title>
<style>
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
font: 1.2em/1.62 sans-serif;
background-color: white;
font-size: 1.5rem;
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
margin: 0;
}
h1,
h2,
h3 {
line-height: 1.2;
}
.gameDisplay>div {
display: flex;
justify-content: center;
height: 100%;
}
.gameDisplay {
height: clamp(480px, 40vh, calc(100vw / 3));
max-width: 100vw;
margin-top: 20px;
overflow: hidden;
}
.gameDisplay .imageWrapper {
aspect-ratio: 15 / 31;
height: 100%;
}
.gameDisplay .imageWrapper>img {
height: 100%;
image-rendering: pixelated;
}
.gameDisplay iframe {
border: 0;
height: 100%;
max-width: 100vw;
aspect-ratio: 240 / 160;
}
header,
.desktopHelp {
max-width: 60%;
margin-left: auto;
margin-right: auto;
margin-block-end: 40px;
}
.red {
background-color: #f5755e;
flex-grow: 1;
}
.links {
margin-left: auto;
margin-right: auto;
display: flex;
justify-content: space-around;
margin-top: 40px;
margin-bottom: 40px;
max-width: 40rem;
}
.links>a {
text-decoration: none;
color: black;
background-color: #fad288;
border: solid #fad288 2px;
border-radius: 5px;
padding: 5px 10px;
}
.links>a:hover {
border: solid black 2px;
}
</style>
</head>
<body>
<header>
<h1>agb - a rust framework for making Game Boy Advance games</h1>
</header>
<section>
<div class="gameDisplay">
<div>
<div class="imageWrapper"><img src="assets/left.png" /></div>
<iframe id="gameFrame" onload="this.contentWindow.focus()" src="mgba/index.html#/assets/combo.gba"></iframe>
<div class="imageWrapper"><img src="assets/right.png" /></div>
2024-04-04 10:54:11 +11:00
</div>
2024-04-06 03:09:50 +11:00
</div>
<div class="mobileControls">
</div>
<div class="desktopHelp">
<p>
Press escape to open the menu where you can view or change controls
and restart the game. The game provided is a combination of multiple
Game Boy Advance games made using agb, you can press left or right on
the main menu to switch game.
</p>
</div>
</section>
<section class="red">
<div class="links">
<a href="https://github.com/agbrs/agb">GitHub</a>
<a href="book/">Book</a>
</div>
</section>
</body>
</html>