JSFiddle - React, Tailwind, and code Playground
by Bob Jones
HTML
<p id="bottomPanel"></p>
<div class="topnav">
<div class="actions">
<button class="actionButton" id="btnUpgrades" href="">Upgrades</button>
<button class="actionButton" id="btnBand" href="">Band</button>
<button class="actionButton" id="btnVenues" href="">Venues</button>
</div>
</div>
CSS
.actionButton {
height: 40px;
width: 100px;
table-layout: fixed;
border-collapse: collapse;
font-size: 24px;
text-align: center;
cursor: pointer;
outline: none;
color: #fff;
background-color: mediumaquamarine;
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
margin: 0px;
}
.actionButton:active {
background-color: #3e8e41;
box-shadow: 0 5px #666;
transform: translateY(4px);
}
.actionButton:hover {
background-color: #3e8e41
}
#btnUpgrades {
font-size: 20px;
padding: 0.1em;
padding-bottom: -.5em;
position: absolute;
top: 90%;
right: 40%;
}
#btnBand {
position: absolute;
top: 90%;
right: 50%;
}
#btnVenues {
position: absolute;
top: 90%;
right: 60%;
}
#bottomPanel {
border-radius: 15px;
background: #73AD21;
width: 200px;
height: 150px;
bottom: calc(10% - 50px);
left: calc(50% - 150px);
position: absolute;
}