JSFiddle - React, Tailwind, and code Playground
by Kai
HTML
<h2>Games Played (Best of 5)</h2>
<ol class="series-games">
<li>
<span>Game 1</span>
<div>
<img src=""/>
<p>Positions</p>
<p>Created</p>
<p>Modified</p>
<p>Notes</p>
</div>
</li>
<li>
<span>Game 2</span>
<div>
<img src=""/>
<p>Positions</p>
<p>Created</p>
<p>Modified</p>
<p>Notes</p>
</div>
</li>
<li>
<span>Game 3</span>
<div>
<img src=""/>
<p>Positions</p>
<p>Created</p>
<p>Modified</p>
<p>Notes</p>
</div>
</li>
<li>
<span>Game 4</span>
<div>
<img src=""/>
<p>Positions</p>
<p>Created</p>
<p>Modified</p>
<p>Notes</p>
</div>
</li>
<li>
<span>Game 5</span>
<div>
<img src=""/>
<p>Positions</p>
<p>Created</p>
<p>Modified</p>
<p>Notes</p>
</div>
</li>
</ol>
CSS
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
h2 {
color: red;
width: 200px;
padding: 5px;
border: solid 2px red;
font-size: 1.3em;
font-weight: bold;
}
.series-games > li {
margin-left: 20px;
line-height: 35px;
}
.series-games > li > span {
padding: 5px 128px 5px 15px;
background-color: red;
color: white;
cursor: pointer;
font-size: 1.2em;
}
.series-games > li > span + div {
display: none;
padding: 10px;
margin-left: 5px;
background-color: #ccc;
border-left: dashed 2px red;
width: 800px;
height: 350px;
font-size: 1.2em;
}
.series-games > li > span + div > img {
width: 256px;
height: 256px;
background-color: #eee;
float: left;
margin: 0px 10px 5px 0;
}
JavaScript
$('.series-games > li > span').click(function () {
$(this).next().toggle();
});