Created
December 31, 2023 07:53
-
-
Save LewisGet/55600979cae281968be8c78e08e30829 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>little card game</title> | |
</head> | |
<body> | |
<style type="text/css"> | |
* | |
{ | |
margin: 0; | |
padding: 0; | |
overflow: hidden; | |
} | |
body | |
{ | |
min-height: 600px; | |
display: grid; | |
grid-template-columns: 1fr; | |
grid-template-rows: repeat(2, 1fr); | |
} | |
#opponent, #player, .status, .battle_ground, .holder_cards | |
{ | |
} | |
#opponent, #player | |
{ | |
display: grid; | |
} | |
#opponent | |
{ | |
grid-area: 1 / 1 / 2 / 2; | |
} | |
#player | |
{ | |
grid-area: 2 / 1 / 3 / 2; | |
} | |
#opponent > .data | |
{ | |
grid-area: 1 / 1 / 7 / 1; | |
} | |
#opponent > .status | |
{ | |
grid-area: 5 / 1 / 7 / 1; | |
} | |
#opponent > .battle_ground | |
{ | |
grid-area: 7 / 1 / 11 / 1; | |
} | |
#player > .battle_ground | |
{ | |
grid-area: 1 / 1 / 5 / 1; | |
} | |
.status | |
{ | |
display: grid; | |
} | |
.status > * | |
{ | |
grid-row: 1; | |
} | |
#player > .status, #player > .data | |
{ | |
grid-area: 5 / 1 / 7 / 1; | |
} | |
#player > #holder_cards | |
{ | |
grid-area: 7 / 1 / 11 / 1; | |
} | |
#player > .status > .health | |
{ | |
grid-column-start: 5; | |
} | |
#player > .status > .resource | |
{ | |
grid-column-start: 3; | |
} | |
#player > .status > .step | |
{ | |
grid-column-start: 4; | |
} | |
.battle_ground ol | |
{ | |
display: grid; | |
} | |
.battle_ground ol li | |
{ | |
grid-row: 1; | |
} | |
#holder_cards ol | |
{ | |
display: grid; | |
} | |
#holder_cards ol li | |
{ | |
grid-row: 1; | |
} | |
#opponent > .status > .health | |
{ | |
grid-column-start: 1; | |
} | |
#opponent > .status > .resource | |
{ | |
grid-column-start: 5; | |
} | |
#opponent > .status > .step | |
{ | |
grid-column-start: 2; | |
} | |
</style> | |
<div id="opponent"> | |
<div class="data"> | |
<h2>opponent</h2> | |
<p> | |
opponent 2d live | |
</p> | |
</div> | |
<div id="opponent_status" class="status"> | |
<p id="opponent_health" class="health"> | |
health | |
</p> | |
<ol id="opponent_resources" class="resource"> | |
<li>resource 1</li> | |
<li>resource 2</li> | |
<li>resource 3</li> | |
</ol> | |
<p id="opponent_active_steps" class="step"> | |
step | |
</p> | |
</div> | |
<div id="opponent_battle_ground" class="battle_ground"> | |
<!-- battle ground --> | |
<ol> | |
<li>card 1</li> | |
<li>card 2</li> | |
<li>card 3</li> | |
<li>card 4</li> | |
<li>card 5</li> | |
</ol> | |
</div> | |
</div> | |
<div id="player"> | |
<div class="data"> | |
<h2>player</h2> | |
<p> | |
player hero icon | |
</p> | |
</div> | |
<div id="player_status" class="status"> | |
<p id="player_health" class="health"> | |
health | |
</p> | |
<ol id="player_resources" class="resource"> | |
<li>resource 1</li> | |
<li>resource 2</li> | |
<li>resource 3</li> | |
</ol> | |
<p id="player_active_steps" class="step"> | |
step | |
</p> | |
</div> | |
<div id="player_battle_ground" class="battle_ground"> | |
<!-- battle ground --> | |
<ol> | |
<li>card 1</li> | |
<li>card 2</li> | |
<li>card 3</li> | |
<li>card 4</li> | |
<li>card 5</li> | |
</ol> | |
</div> | |
<div id="holder_cards"> | |
<ol> | |
<li>card 1</li> | |
<li>card 2</li> | |
<li>card 3</li> | |
<li>card 4</li> | |
<li>card 5</li> | |
<li>card 6</li> | |
<li>card 7</li> | |
<li>card 8</li> | |
<li>card 9</li> | |
<li>card 10</li> | |
</ol> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment