Skip to content

Commit

Permalink
[#10][ Tournament table ] - prototype was created
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrinko committed Apr 2, 2015
1 parent 218a610 commit a27630a
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 0 deletions.
37 changes: 37 additions & 0 deletions prototypes/templates/cup-table.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.container {
border: solid 2px darkblue;
padding: 5px;
}

.row {
text-align: center;
}

.match {
text-align: center;
}

.half {
display: inline-block;
width: 49%;
}

.player {
border: solid 1px black;
width: 90%;
max-width: 150px;
display: inline-block;
}

.line {
width: 1px;
border: solid 1px black;
display: inline-block;
}

.brace {
width: 50%;
border: solid 1px black;
border-bottom: 0;
display: inline-block;
}
174 changes: 174 additions & 0 deletions prototypes/templates/cup-table.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Cap table</title>
<link rel="stylesheet" href="cup-table.css"/>
</head>
<body>
<div class="container">
<!-- winner -->
<div class="row">
<div class="player">Winner!</div>
</div>

<!-- final -->
<div class="row">
<div class="match">
<div class="row">
<div class="line">|</div>
</div>
<div class="row">
<div class="brace">&nbsp;</div>
</div>
<div class="row">
<div class="half">
<div class="player">Player 1</div>
</div>

<div class="half">
<div class="player">Player 2</div>
</div>
</div>
</div>
</div>

<!-- 1/2 -->
<div class="row">
<div class="half">
<div class="match">
<div class="row">
<div class="line">|</div>
</div>
<div class="row">
<div class="brace">&nbsp;</div>
</div>
<div class="row">
<div class="half">
<div class="player">Player 1</div>
</div>

<div class="half">
<div class="player">Player 2</div>
</div>
</div>
</div>
</div>

<div class="half">
<div class="match">
<div class="row">
<div class="line">|</div>
</div>
<div class="row">
<div class="brace">&nbsp;</div>
</div>
<div class="row">
<div class="half">
<div class="player">Player 1</div>
</div>

<div class="half">
<div class="player">Player 2</div>
</div>
</div>
</div>
</div>

</div>

<!-- 1/4 -->
<div class="row">
<div class="half">

<div class="half">
<div class="match">
<div class="row">
<div class="line">|</div>
</div>
<div class="row">
<div class="brace">&nbsp;</div>
</div>
<div class="row">
<div class="half">
<div class="player">Player 1</div>
</div>

<div class="half">
<div class="player">Player 2</div>
</div>
</div>
</div>
</div>

<div class="half">
<div class="match">
<div class="row">
<div class="line">|</div>
</div>
<div class="row">
<div class="brace">&nbsp;</div>
</div>
<div class="row">
<div class="half">
<div class="player">Player 1</div>
</div>

<div class="half">
<div class="player">Player 2</div>
</div>
</div>
</div>
</div>

</div>

<div class="half">

<div class="half">
<div class="match">
<div class="row">
<div class="line">|</div>
</div>
<div class="row">
<div class="brace">&nbsp;</div>
</div>
<div class="row">
<div class="half">
<div class="player">Player 1</div>
</div>

<div class="half">
<div class="player">Player 2</div>
</div>
</div>
</div>
</div>

<div class="half">
<div class="match">
<div class="row">
<div class="line">|</div>
</div>
<div class="row">
<div class="brace">&nbsp;</div>
</div>
<div class="row">
<div class="half">
<div class="player">Player 1</div>
</div>

<div class="half">
<div class="player">Player 2</div>
</div>
</div>
</div>
</div>

</div>

</div>
</div>

</body>
</html>

0 comments on commit a27630a

Please sign in to comment.