<div class="site-wrap">
<nav class="site-nav">
<div class="name">
Pepper
<svg width="24" height="24" viewBox="0 0 24 24">
<path d="M11.5,22C11.64,22 11.77,22 11.9,21.96C12.55,21.82 13.09,21.38 13.34,20.78C13.44,20.54 13.5,20.27 13.5,20H9.5A2,2 0 0,0 11.5,22M18,10.5C18,7.43 15.86,4.86 13,4.18V3.5A1.5,1.5 0 0,0 11.5,2A1.5,1.5 0 0,0 10,3.5V4.18C7.13,4.86 5,7.43 5,10.5V16L3,18V19H20V18L18,16M19.97,10H21.97C21.82,6.79 20.24,3.97 17.85,2.15L16.42,3.58C18.46,5 19.82,7.35 19.97,10M6.58,3.58L5.15,2.15C2.76,3.97 1.18,6.79 1,10H3C3.18,7.35 4.54,5 6.58,3.58Z"></path>
</svg>
</div>
<ul>
<li class="active"><a href="#">Deals</a>
<ul>
<li><a href="#0">Create New Deal</a></li>
<li><a href="#0">Modify Deal</a></li>
<li><a href="#0">Pipeline</a></li>
</ul>
</li>
<li><a href="#0">Activities</a></li>
<li><a href="#0">Asset Libraries</a></li>
<li><a href="#0">Funds</a></li>
<li><a href="#0">Investors</a></li>
<li><a href="#0">Reports</a></li>
</ul>
<div class="note">
<h3>Your Monthly Report</h3>
<p>Get the info about all your deals, pros, cons. And build your roadmap.</p>
</div>
</nav>
<main>
<header>
<div class="breadcrumbs">
<a href="#0/">Home</a>
</div>
<h1 class="title">Pipeline</h1>
<nav class="nav-tabs" id="nav-tabs">
<a href="#0" class="active">
Deals
<span>14</span>
</a>
<a href="#0">
Library
<span>24</span>
</a>
<a href="#0">
Search Library
</a>
</nav>
</header>
<div class="content-columns">
<div class="col">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="col">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="col">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="col">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</div>
</main>
</div>
body {
background: #89909f;
padding: 3rem 0 0 3rem;
font-size: 12px;
height: 100vh;
margin: 0;
overflow: hidden;
}
.site-wrap {
display: grid;
grid-template-columns: 280px 1fr;
}
.site-nav {
background: #0b121b;
color: white;
border-top-left-radius: 2rem;
display: flex;
flex-direction: column;
a {
color: inherit;
}
ul {
margin-bottom: auto;
li {
a {
display: block;
padding: 0.75rem 0.5rem 0.75rem 2rem;
position: relative;
&:hover,
&:focus {
color: #4371c5;
}
}
&.active > a {
background: linear-gradient(to right, #101b2d, transparent);
&::before {
content: "";
position: absolute;
left: 0;
top: 0;
height: 100%;
background: #4676cd;
width: 5px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
}
}
ul {
padding-left: 1rem;
margin-bottom: 0.5rem;
a {
padding-top: 0.4rem;
padding-bottom: 0.4rem;
}
}
}
}
.note {
width: calc(100% - 6rem);
margin: 2rem;
background: #171c26;
border-radius: 10px;
padding: 1rem;
h3 {
font-size: 0.9rem;
margin: 0 0 0.4rem 0;
}
p {
color: #717783;
}
}
.name {
font-size: 1.3rem;
position: relative;
margin: 2rem 0 2rem 0;
padding: 0 2.5rem 0.5rem 2rem;
width: calc(100% - 3rem);
svg {
position: absolute;
fill: white;
width: 16px;
height: 16px;
right: 0;
top: 7px;
}
&::after {
content: "";
width: 8px;
height: 8px;
background: #4777ce;
border-radius: 20px;
position: absolute;
top: 6px;
right: -2px;
}
}
main {
border-top-left-radius: 2rem;
background: #ebecee;
margin-left: -2rem;
position: relative;
> header {
padding: 3rem 3rem 0 3rem;
}
}
.content-columns {
padding: 3rem;
display: flex;
background: #e5e5e9;
.col {
min-height: 500px;
width: 200px;
padding: 1rem;
background: #ebecee;
margin-right: 1rem;
box-shadow: 0 0 5px rgba(black, 0.04);
border-radius: 5px;
&:nth-child(1) {
border-top: 4px solid #50aaee;
}
&:nth-child(2) {
border-top: 4px solid #d56ec7;
}
&:nth-child(3) {
border-top: 4px solid #e37e55;
}
&:nth-child(4) {
border-top: 4px solid #ebbd41;
}
}
}
.item {
background: white;
box-shadow: 0 2px 4px rgba(black, 0.07);
min-height: 50px;
border-radius: 5px;
margin: 0 0 0.5rem 0;
}
.nav-tabs {
a {
margin-right: 2rem;
display: inline-block;
padding: 1rem 0 1rem 0;
font-size: 1.15rem;
color: #8c939e;
position: relative;
&.active {
color: #101620;
font-weight: 600;
span {
background: #d9dfea;
color: #5887d1;
}
&::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
background: #457ace;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
}
span {
border-radius: 10px;
font-size: 0.8rem;
padding: 0.25rem 0.4rem;
font-weight: 600;
vertical-align: middle;
position: relative;
top: -2px;
background: #dfe0e2;
color: #868d99;
}
}
}
View Compiled
const navTabs = document.querySelectorAll("#nav-tabs > a");
navTabs.forEach((tab) => {
tab.addEventListener("click", () => {
navTabs.forEach((tab) => {
tab.classList.remove("active");
});
tab.classList.add("active");
});
});
This Pen doesn't use any external JavaScript resources.