JSFiddle - React, Tailwind, and code Playground
by Abdul Ahmad
HTML
<div class='dashboard'>
<nav class='header'>
<ul>
<li>
PatientWisdom
</li>
<li>
My Stories
</li>
</ul>
<ul class='right'>
<li>
Hi James
</li>
<li>
...
</li>
</ul>
</nav>
<section class='content'>
<div>
<h3>
Stories about what matters to you
</h3>
</div>
<div class='story-ticket-box'>
<div class='story-ticket'>
<div class='summary'>
<article>
<h5>
Summary Title
</h5>
<h6>
Subtitle
</h6>
</article>
</div>
<label class='action'>
<label class='text'>
Continue
</label>
</label>
</div>
<div class='story-ticket'>
<div class='summary'>
<article>
<h5>
Summary Title
</h5>
<h6>
Subtitle
</h6>
</article>
</div>
<label class='action'>
<label class='text'>
Start
</label>
</label>
</div>
<div class='story-ticket'>
<div class='summary'>
<article>
<h5>
Summary Title
</h5>
<h6>
Subtitle
</h6>
</article>
</div>
<label class='action'>
<label class='text'>
Continue
</label>
</label>
</div>
<div class='story-ticket'>
<div class='summary'>
<article>
<h5>
Summary Title
</h5>
<h6>
Subtitle
</h6>
</article>
</div>
<label class='action'>
<label class='text'>
Edit
</label>
</label>
</div>
</div>
</section>
</div>
SCSS
html, body {
margin: 0;
height: 100%;
font-weight: 100;
font-family: sans-serif;
color: #505050;
}
.dashboard {
background-color: #eaeef4;
min-height: 100%;
display: flex;
flex-direction: column;
section.content {
padding: 35px 0;
margin: 5px auto;
width: 95%;
h3 {
display: inline-block;
font-weight: 100;
font-size: 22px;
color: #1c2582;
color: #30538d;
color: #505050;
color: #2cb59b;
color: #ff6600;
color: black;
color: #2cb59b;
margin: 10px 0 10px 10px;
padding: 5px 0;
}
}
}
nav.header {
display: flex;
color: #30538d;
color: #81a2c3;
position: relative;
box-shadow: 0 0 5px 0px;
font-size: 14px;
/*
&:after {
content: '';
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 1px;
box-shadow: 0 0 5px 0;
}
*/
ul {
flex-grow: 1;
margin: 0;
padding: 0;
background-color: white;
list-style: none;
display: flex;
flex-direction: row;
justify-content: flex-start;
&.right {
justify-content: flex-end;
}
li {
background: transparent;
padding: 8px 15px;
margin: 0 2px;
transition: color 0.15s linear;
&:first-of-type {
margin-left: 4px;
}
&:hover {
cursor: pointer;
color: #30538d;
transition: color 0.1s linear;
}
}
}
}
nav.page-tabs {
}
.story-ticket-box {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
}
.story-ticket {
box-shadow: 0 0 5px -1px #81a2c3;
display: flex;
flex-direction: row;
min-width: 300px;
height: 70px;
background-color: white;
margin: 10px;
&:hover {
cursor: pointer;
}
.summary {
flex-grow: 1;
height: 100%;
article {
width: 90%;
height: 100%;
margin: 0 auto;
display: flex;
flex-direction:...