JSFiddle - React, Tailwind, and code Playground
by Kocsten
HTML
<link href='https://fonts.googleapis.com/css?family=Didact+Gothic' rel='stylesheet' type='text/css'>
<div class="wrap">
<div class="box box1 shadow1">
<h3>ZORNET.RU 1</h3>
</div>
<div class="box box2 shadow2">
<h3>ZORNET.RU 2</h3>
</div>
<div class="box box3 shadow3">
<h3>ZORNET.RU 3</h3>
</div>
<div class="box box4 shadow4">
<h3>ZORNET.RU 4</h3>
</div>
<div class="box box5 shadow5">
<h3>ZORNET.RU 5</h3>
</div>
<div class="box box6 shadow6">
<h3>ZORNET.RU 6</h3>
</div>
<div class="box box7 shadow7">
<h3>ZORNET.RU 7</h3>
</div>
<div class="box box8 shadow8">
<h3>ZORNET.RU 8</h3>
</div>
</div>
CSS
body{
background:#E6EEF6;
}
.wrap{
margin-left:20px;
}
.box{
width:40%;
height:200px;
float:left;
background-color:white;
margin:25px 15px;
border-radius:5px;
}
.box h3{
font-family: 'Didact Gothic', sans-serif;
font-weight:normal;
text-align:center;
padding-top:60px;
color:#fff;
}
.box1{
background-color: #ad726e;
}
.box2{
background-color: #bdb42d;
}
.box3{
background-color: #69ad6b;
}
.box4{
background-color: #76b591;
}
.box5{
background-color: #5da0b5;
}
.box6{
background-color: #9EB3EB;
}
.box7{
background-color: #b581c3;
}
.box8{
background-color: #8655b9;
}
.shadow1, .shadow2, .shadow3,.shadow4,.shadow5,.shadow6,.shadow7,.shadow8{
position:relative;
}
.shadow1,.shadow2,.shadow3,.shadow4,.shadow5,.shadow6,.shadow7,.shadow8{
box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.1) inset;
}
/*****************************************************************dashed border
****************************************************************/
.shadow1 h3, .shadow2 h3, .shadow3 h3, .shadow4 h3, .shadow5 h3, .shadow6 h3, .shadow7 h3, .shadow8 h3{
width:87%;
height:100px;
margin-left:6%;
border:2px dashed #F7EEEE;
border-radius:5px;
}
/****************************************************************
*styling shadows
****************************************************************/
.shadow1:before, .shadow1:after{
position:absolute;
content:"";
bottom:12px;left:15px;top:80%;
width:45%;
background:#9B7468;
z-index:-1;
-webkit-box-shadow: 0 20px 15px #9B7468;
-moz-box-shadow: 0 20px 15px #9B7468;
box-shadow: 0 20px 15px #9B7468;
-webkit-transform: rotate(-6deg);
-moz-transform: rotate(-6deg);
transform: rotate(-6deg);
}
.shadow1:after{
-webkit-transform: rotate(6deg);
-moz-transform: rotate(6deg);
transform: rotate(6deg);
right: 15px;left: auto;
}
.shadow2:before{
position:absolute;
content:"";
width:80%;
top:140px;bottom:15px;left:30px;
...