JSFiddle - React, Tailwind, and code Playground

by zerrax

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.js"></script>
<div class="dashboard">
  <div>
  <label>
  <a>Menu</a>
  <input type="checkbox">
  <span>
    <h4>ZerraXx Panel</h4>

<ul>
<li>Main</li>
<li>History <a>5</a></li>
<li>Profie / Loose</li>
<li>Config</li>
</ul>
<ul>
<li>Account</li>
<li>Notification <a>5</a></li>
<li>My Account</li>
<li>Logout</li>
</ul>
<ul>
<li>Coins</li>
<li>AE</li>
<li>EVX</li>
<li>ETC</li>
</ul>
  </span>
</label>
  </div>
  <div>
    <div class="chart_banner">
      <div>
        <canvas width="100%" height="35px" id="canvas"></canvas><a>zerty</a>
      </div>
      <div>
        <canvas width="100%" height="35px" id="canvas1"></canvas><a>zerty</a>
      </div>
      <div>
        <canvas width="100%" height="35px" id="canvas2"></canvas>
        <a>zerty</a>
      </div>
    </div>
       <table>
        <tr>
          <th>Coin</th>
          <th class="mobile_hide">Quantity</th>
          <th class="mobile_hide">Total win/loose</th>
          <th>close price</th>
          <th>close limit</th>
          <th>close Market</th>
        </tr>

        <tr>
          <td>EVXBTC</td>
          <td class="mobile_hide">20</td>
          <td class="mobile_hide">$1,342</td>
          <td><input type="text"></td>
          <td><a class="b">Close</a></td>          
          <td><a class="b">Close</a></td>        
        </tr>

        <tr>
          <td>ETCBTC</td>
          <td class="mobile_hide">18</td>
          <td class="mobile_hide">$1,550</td>
          <td><input type="text"></td>
          <td><a class="b">Close</a></td>          
          <td><a class="b">Close</a></td>  
        </tr>

        <tr>
          <td>ATOMBTC</td>
          <td class="mobile_hide">15</td>
          <td class="mobile_hide">$4,170</td>
          <td><input type="text"></td>
          <td><a class="b">Close</a></td>          
          <td><a class="b">Close</a></td>  
        </tr>

        <tr>
          <td>AEBTC</td>
      ...

CSS

html, body {
  height: 100%;
  font-family: 'Lato', sans-serif;
}
body {
  background: linear-gradient(135deg, rgba(65,131,155,1) 0%,rgba(51,98,123,1) 100%);
  padding:0;
  margin:0;
}
*:focus {
    outline: none;
}
* {
  box-sizing: border-box;
}
.dashboard {
  width: 80%;
  background: #202b33;
  margin: 60px auto;
  border-radius: 4px;
  overflow: hidden;
  min-height:350px;
  display: grid;
grid-template-columns: 20% 80%;
position:relative;
}
.dashboard > div{
      padding: 30px
}
.dashboard > div > label > a{
  color:#fff;
  display:none;
 
}
.dashboard > div > label > a:hover{
  color:#ddd;
    cursor:pointer;
}
.dashboard > div > label > input[type="checkbox"]{
  display:none; 
}
.dashboard > div > label > span {
 margin-top:15px;
 }
.dashboard > div > label > span > h4{
  text-align:center;
  margin: 10px 0;
      font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    color:white;
}
.dashboard > div > label  > span > ul{
  text-align:center;
  list-style:none;
  padding:0;
  margin:0;
  text-align:left;
  padding-left:5px;
  padding-right:5px;
      margin: 24px 0;
}
.dashboard > div > label > span > ul > li{
  text-align:center;
   text-align:left;
   cursor:pointer;
     overflow: hidden;
  //text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard > div > label > span > ul > li > a{
  background: rgba(255,255,255,0.2);
  border-radius:100%;
  padding:3px 7px;
  margin: 0 15px;
  color:white;
}
.dashboard > div > label > span > ul > li:first-child {
    height: 35px;
    line-height: 35px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    cursor: default;

}
.dashboard > div > label > span > ul > li:hover:first-child {

}
.dashboard > div > label > span > ul > li:hover {
  color:white;
}
.dashboard > div > label > span > ul > li {
    display: block;
    height: 30px;
    width: 100%;
    line-height: 30px;
    font-size: 14px;
    font-weight: 200;
    color: rgba(255, 255,...

JavaScript

var chartColors = {
  red: 'rgb(255, 99, 132)',
  orange: 'rgb(255, 159, 64)',
  yellow: 'rgb(255, 205, 86)',
  green: 'rgb(75, 192, 192)',
  blue: 'rgb(54, 162, 235)',
  purple: 'rgb(153, 102, 255)',
  grey: 'rgb(231,233,237)'
};

var randomScalingFactor = function() {
  return (Math.random() > 0.5 ? 1.0 : -1.0) * Math.round(Math.random() * 100);
}
var MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var config = {
  type: 'line',
  data: {
    labels: ["January", "February", "March", "April", "May", "June", "July"],
    datasets: [{
      label: "My First dataset",
      backgroundColor: chartColors.blue,
      borderColor: chartColors.blue,
    data: [12, 19, 3, 5, 2, 3],
      fill: false,
    }, {
      label: "My Second dataset",
      fill: false,
      backgroundColor: chartColors.blue,
      borderColor: chartColors.blue,
    data: [],
    }]
  },
  options: {
    responsive: true,
    
    title: {
      display: false,
    },
    legend: {
   		display: false
    },
    tooltips: {
    	enabled: false
    },
    hover: {
      mode: 'nearest',
      intersect: true
    },
    scales: {
      xAxes: [{
        display: false
        }],
      yAxes: [{
        display: false,
      }]
    }
  }
};


var ctx = document.getElementById("canvas").getContext("2d");
var ctx1 = document.getElementById("canvas1").getContext("2d");
var ctx2 = document.getElementById("canvas2").getContext("2d");
var ctx11 = document.getElementById("canvas11").getContext("2d");
window.myLine = new Chart(ctx, config);
window.myLine = new Chart(ctx1, config);
window.myLine = new Chart(ctx2, config);
window.myLine = new Chart(ctx11, config);