JSFiddle - React, Tailwind, and code Playground
by Dany Trayo
HTML
<header class="header">Header</header>
<div class="grid">
<div class="arrow">Arrow</div>
<div class="primary">
<div class="article">Article 1</div>
<div class="article">Article 2</div>
<div class="article">Article 3</div>
</div>
<aside class="sidebar-2">S2</aside>
<aside class="sidebar-1">S1</aside>
</div>
SCSS
//
// TRYING TO REPLICATE EXISTING STYLES.
//
* {
margin: 0;
box-sizing: border-box;
text-transform: uppercase;
text-align: center;
font-family: sans-serif;
font-weight: 700;
color: #444;
}
.header {
font-size: 30px;
line-height: 100px;
background: #e6817a;
}
.grid {
display: flex;
align-items: stretch;
}
.primary {
width: 60%;
}
.sidebar-1,
.sidebar-2 {
width: 20%;
font-size: 30px;
line-height: 200px;
}
.sidebar-1 {
background: #607d8b;
}
.sidebar-2 {
background: #c7a169;
}
.article {
background: #d5d8b6;
font-size: 30px;
line-height: 100px;
}
.arrow {
line-height: 100px;
font-size: 20px;
}
//
// THE ADDITIONAL STYLES.
//
.grid {
padding-top: 100px; // article height.
position: relative;
}
.arrow,
.primary > .article:first-child {
position: absolute;
top: 0;
height: 100px; // set article height.
}
.arrow {
background: pink;
right: 0;
width: 20%; // sidebar 1 width.
}
.primary > .article:first-child {
left:0;
width: 80%; // primary + sidebar-2 width.
}