JSFiddle - React, Tailwind, and code Playground
by zerrax
HTML
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<div id="particles-js"></div>
<div id="mySidenav" class="sidenav">
<div>
<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>
</div>
</div>
<div id="main">
<div class="menu">
<span style="font-size:30px;cursor:pointer" onclick="openNav()">☰</span>
<a>Logout</a>
</div>
<div class="form">
<div class="page">
<table>
<tr>
<th class="mobile_hide">Exchnage</th>
<th>Paires</th>
<th>Valeur</th>
<th>Type</th>
<th>Select</th>
</tr>
<tr>
<td class="mobile_hide">Binance</td>
<td>Btc <a>/</a>Usdt</td>
<td>10.000$</td>
<td class="green">Buy</td>
<td><input type="checkbox"></td>
</tr>
<tr>
<td class="mobile_hide">Binance</td>
<td>Btc <a>/</a>Usdt</td>
<td>10.000$</td>
<td class="green">Buy</td>
<td><input type="checkbox"></td>
</tr>
<tr>
<td class="mobile_hide">Binance</td>
<td>Btc <a>/</a>Usdt</td>
<td>10.000$</td>
<td class="green">Buy</td>
<td><input type="checkbox"></td>
</tr>
<tr>
<td class="mobile_hide">Binance</td>
<td>Btc <a>/</a>Usdt</td>
<td>10.000$</td>
<td class="green">Buy</td>
...
CSS
body,
html {
font-family: "Lato", sans-serif;
background-color: #111;
margin: 0;
height: calc(100% - 10px);
}
#particles-js {
position: absolute;
width: 100%;
height: 100%;
background-image: url("");
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
pointer-events: none;
}
.tool {
position: absolute;
bottom: 0;
height: 60px;
right: 0;
margin-bottom: 10px
}
.tool>a {
display: block;
width: 60px;
height: 100%;
bottom: 40px;
right: 40px;
background-color: #ffffff12;
color: #b6c1b8;
border-radius: 50px;
text-align: center;
box-shadow: 0px 0px 8px #ffffff6b;
float: right;
margin-right: 10px;
-webkit-transition: all 300ms ease;
-moz-transition: all 300ms ease;
-ms-transition: all 300ms ease;
-o-transition: all 300ms ease;
transition: all 300ms ease;
}
.tool>a:hover {
background: rgba(0, 0, 0, 0.1);
box-shadow: 0px 0px 8px #7da1b8;
}
.tool>a>i {
margin-top: 22px;
}
.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
background: rgba(0, 0, 0, 0.5);
}
.sidenav>a {
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
transition: 0.3s;
text-align: center;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.sidenav a:hover {
color: #f1f1f1;
}
#mySidenav #myUL li a:hover:not(.header) {
background-color: rgba(255, 255, 255, 0.1);
}
.sidenav div.i {
padding: 10px 0;
color: white;
text-align: center;
}
.sidenav ul.l {
list-style-type: none;
padding: 10px 25px;
margin: 0;
}
.sidenav ul.l li a {
padding: 12px;
text-decoration: none;
font-size: 14px;
color: #eee;
display: block;
padding: 10px 20px;
}
.sidenav div.i input {
background: #1f1f20;
background-image: url(/css/searchicon.png);
background-position: 10px 12px;
background-repeat:...
JavaScript
function openNav() {
if(document.getElementById("mySidenav").style.width != "200px"){
document.getElementById("mySidenav").style.width = "200px";
document.getElementById("main").style.marginLeft = "200px";
}
else
{
document.getElementById("mySidenav").style.width = "0";
document.getElementById("main").style.marginLeft = "0";
}
}
$(function(){
// ParticlesJS
// ParticlesJS Config.
particlesJS("particles-js", {
particles: {
number: {
value: 100,
density: {
enable: true,
value_area: 800
}
},
color: {
value: "#ffffff"
},
shape: {
type: "circle",
stroke: {
width: 0,
color: "#000000"
},
polygon: {
nb_sides: 5
},
image: {
src: "img/github.svg",
width: 100,
height: 100
}
},
opacity: {
value: 0.1,
random: false,
anim: {
enable: false,
speed: 1,
opacity_min: 0.1,
sync: false
}
},
size: {
value: 6,
random: false,
anim: {
enable: false,
speed: 40,
size_min: 0.1,
sync: false
}
},
line_linked: {
enable: true,
distance: 150,
color: "#ffffff",
opacity: 0.1,
width: 2
},
move: {
enable: true,
speed: 1.5,
direction: "top",
random: false,
straight: false,
out_mode: "out",
bounce: false,
attract: {
enable: false,
rotateX: 600,
rotateY: 1200
}
}
},
interactivity: {
detect_on: "canvas",
events: {
onhover: {
enable: false,
mode: "repulse"
},
onclick: {
enable: false,
mode: "push"
},
resize: true
},
modes: {
grab: {
distance: 400,
line_linked: {
opacity: 1
}
},
bubble: {
distance: 400,
size: 40,
duration: 2,
...