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>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<div class="dashboard">
<div>
<label>
<a>...</a>
<input type="checkbox">
<span>
<h4>Crypto</h4>
<h4>Shark</h4>
<ul>
<li>Tradingview</li>
<li>Règles</li>
<li>Email</li>
</ul>
<ul>
<li>Tradingroom</li>
<li>Règles</li>
</ul>
<ul>
<li>Trades</li>
<li>En cour<a>2</a></li>
<li>Historique</li>
</ul>
<ul>
<li>Compte</li>
<li>Déconexion</li>
</ul>
</span>
</label>
</div>
<div>
<div class="scroll">
<table>
<tr>
<th class="mobile_hide">Exchnage</th>
<th>Paires</th>
<th>Valeur</th>
<th>type</th>
<th>Market</th>
<th class="mobile_hide">Limit</th>
</tr>
<tr>
<td class="mobile_hide">Binance</td>
<td>Btc/Usdt</td>
<td>10.000$</td>
<td>Buy</td>
<td>
<form action="/close.php">
<a class="b">Close</a>
<input type="hidden" name="limit">
</form>
</td>
<td class="mobile_hide">
<form action="/close.php">
<input type="text">
<input type="hidden" name="market">
<a class="v">Close</a>
</form>
</td>
</tr>
</table>
</div>
</div>
</div>
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;
overflow: hidden;
}
.v{
background: rgba(0,0,0,0.2);
font-size: 18px;
border: solid 1px rgba(255,255,255,0.3);
border-left: 0;
color: #ddd;
text-align: center;
width: 80px;
font-size: 15px;
padding: 3px;
}
*:focus {
outline: none;
}
* {
box-sizing: border-box;
}
html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0px;
}
::-webkit-scrollbar-thumb {
background: #FF0000;
}
*::-webkit-scrollbar { width: 0 !important }
* { overflow: -moz-scrollbars-none; }
* { -ms-overflow-style: none; }
.scroll{overflow-y: scroll;height:auto;}
.dashboard > div > div.scroll{
height:calc(100vh - 210px);
}
.dashboard {
width: 80%;
height: calc(100vh - 120px);
background: #202b33;
margin: 60px auto;
border-radius: 4px;
overflow: hidden;
display: grid;
grid-template-columns: 20% 80%;
position:relative;
}
.dashboard > div{
padding: 15px 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 >...
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);