Skip to content

Commit

Permalink
fixed css stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayvallurupalli committed Oct 16, 2024
1 parent c1e1fd5 commit 38078c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var peer: tuple[send: proc(data: cstring), destroy: proc()]
var side: Color#= white # = white only for testing, delete
var turn: bool# = true# = true#only for testing

var myDrafts: seq[Power]# = @[empress, putInTheWork, anime, illegalFormationBL, anime, anime, anime]# = @[anime, illegalFormationBL]
var myDrafts: seq[Power] #= @[empress, putInTheWork, anime, illegalFormationBL, anime, anime, anime, wanderingRoninLeft]# = @[anime, illegalFormationBL]
var opponentDrafts: seq[Power]# = @[illegalFormationBL, anime, putInTheWork, empress]
var draftOptions: seq[Power] = @[]
var draftChoices: int = 3
Expand Down Expand Up @@ -325,11 +325,11 @@ proc createGame(): VNode =
result = buildHtml(tdiv(class="main")):
tdiv(class="column-scroll"):
for p in myDrafts:
createPowerSummary(p)
createPowerSummary(p)
if side == white: createBoard() else: reverseBoard()
tdiv(class="column-scroll"):
for p in opponentDrafts:
createPowerSummary(p)
createPowerSummary(p)

proc main(): VNode =
result = buildHtml(tdiv(class="main")):
Expand All @@ -342,6 +342,4 @@ proc main(): VNode =
of Game: createGame()




setRenderer main
6 changes: 6 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ img {
padding: 5px;
background-color: #F8F7F7;
justify-content: center;
height: 15%;
max-height: 15%;
min-width: 100%;
text-wrap: wrap;
}

.power-grid:hover {
Expand All @@ -154,6 +158,8 @@ img {

.image {
grid-area: img;
max-width: 100%;
max-height: 100%;
}

.power > h1 {
Expand Down

0 comments on commit 38078c8

Please sign in to comment.