JSFiddle - React, Tailwind, and code Playground
HTML
<div class='dashboard'>
<nav class='header'>
<ul >
<li>
PatientWisdom
</li>
<li>
-
</li>
<li>
My Stories
</li>
</ul>
<ul class='right'>
<li>
Hi James
</li>
<li>
...
</li>
</ul>
</nav>
<nav class='page-tabs'>
<ul class='page-width'>
<li class='selected'>
My Self
</li>
<li>
My Health
</li>
<li>
My Care
</li>
</ul>
</nav>
<section class='content'>
<div class='page-width'>
<h3>
Stories about what matters to you
</h3>
</div>
<div class='story-ticket-box page-width'>
<div class='story-ticket started'>
<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 class='green'>
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 class='orange'>
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
...
SCSS
html, body {
margin: 0;
height: 100%;
font-weight: 100;
font-family: sans-serif;
color: #505050;
}
.content {
width: 90%;
margin: 0 auto;
height: 100%;
}
.page-width {
max-width: 1200px;
margin: 0 auto;
height: 100%;
}
.dashboard {
background-color: #eaeef4;
//background-color: #eee;
//background-color: #F0F3F7;
//background: white;
background: #F2F4F7;
//background: #F5F6F7;
//background: white;
min-height: 100%;
display: flex;
flex-direction: column;
section.content {
padding: 35px 0;
margin: 5px auto;
width: 95%;
border-bottom: 1px solid #d7e3ef;
//border-bottom: 1px dotted #81a2c3;
.title-box {
&.underlined {
border-bottom: 1px solid #d7e3ef;
}
}
h3 {
display: inline-block;
font-weight: 100;
font-size: 22px;
color: #1c2582;
color: #30538d;
color: #505050;
color: #2cb59b;
color: #ff6600;
color: black;
color: #2cb59b;
color: #00967A;
//color: #97459a;
margin: 0 0 10px 10px;
padding: 5px 0;
//text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.2);
}
}
}
nav.header {
display: flex;
color: #30538d;
color: #81a2c3;
color: #30538d;
position: relative;
box-shadow: 0 0 5px 0px;
font-size: 14px;
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 10px;
transition: color 0.15s linear;
&:first-of-type {
margin-left: 4px;
}
&:hover {
cursor: pointer;
color: #30538d;
transition: color 0.1s linear;
}
}
}
}
nav.page-tabs {
padding: 30px 0 0 0;
background-color: #d7e3ef;
background: #81a2c3;
//box-shadow: 0 -4px 5px...