gammatools/web/bestiary.html

72 lines
2.2 KiB
HTML
Raw Normal View History

2024-07-03 13:52:13 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="styles.css">
<style>
#resultSection {
font-family: Arial, sans-serif;
font-size: 14pt;
}
.container {
display: grid;
grid-template-columns: 1.1fr 1fr 0.9fr;
grid-template-rows: 1.2fr 0.5fr 1.3fr;
gap: 0px 0px;
grid-auto-flow: row;
}
.container.android {
display: flex;
flex-direction: column;
gap: 20px;
}
/* Container for each type (thinker, worker, warrior) */
.typeContainer {
display: flex; /* Use flexbox for layout */
justify-content: space-between; /* Space out the child elements evenly */
margin-bottom: 20px; /* Add some bottom margin for separation between types */
}
/* Profile and abilities within each type */
.creature_profile,
.creature_abilities {
width: 45%; /* Give them each about half the container's width */
}
.creature_id { grid-area: 1 / 1 / 2 / 2; }
.creature_profile { grid-area: 1 / 2 / 2 / 3; }
.creature_abilities { grid-area: 1 / 3 / 2 / 4; }
.creature_attacks { grid-area: 2 / 1 / 3 / 4; }
.creature_mutations { grid-area: 2 / 2 / 3 / 2; }
.creature_description { grid-area: 3 / 1 / 4 / 4; }
</style>
<title>Gamma World Bestiary</title>
<script src="config.js"></script>
<script type="module" src="bestiary.js" defer></script>
<script type="module" src="catalog.js" defer></script>
2024-07-03 13:52:13 +00:00
</head>
<body>
<h2>Look Up A Creature</h2>
<form id="searchForm">
<div class="form-row">
<div class="form-field">
<label for="creature">Beast</label>
<input type="string" name="creature" id="creature">
<button id="search-button" type="submit">Search</button>
</div>
<div class="form-field">
<label for="catalog-button">Retrieve Catalog</label>
<button id="catalog-button" type="button">Catalog</button>
</div>
</div>
</form>
<hr/>
<div id="resultSection"></div>
</body>
</html>