JSFiddle - React, Tailwind, and code Playground
by Abdul Ahmad
HTML
<nav>
<label>
Home
</label>
<label>
Link
</label>
</nav>
<header>
<div class='page-width'>
<div>
<h3 class='txt'>
Welcome
</h3>
</div>
<p class='below-title'>
Bla bla blabla
</p>
<div class='empty-space-20'>
</div>
<div>
<div class='box eee'>
<header class='bordered'>
<h4>
Get Started
</h4>
</header>
<div class='content'>
<p class='link'>
Add a Family
</p>
<p class='link'>
Find a Participant
</p>
<p class='link'>
Write a Query
</p>
</div>
</div>
</div>
</div>
</header>
<footer>
<div class='page-width'>
<div class='flex row start'>
<div class='box eee'>
<header class='no-pad'>
<h4>
Need help?
</h4>
</header>
<div class='content'>
<p class='link'>
Read the User Manual
</p>
<p class='link'>
DEX Support Portal
</p>
<p class='link'>
Contact DEX-Support
</p>
</div>
</div>
<div class='grow one marcus-logo-box'>
<div class='marcus-logo-inner'>
<img
src='http://fusionwiki.ciemat.es/fusionwiki/images/2/2a/Eps_logo_highquality2.png'
class='marcus-logo'/>
<div class='avenir'>
INFORMATICS AND ANALYTICS CORE
</div>
</div>
</div>
</div>
<div class='footer-logo-box'>
<span class='logo'>
Designed and built by
</span>
<span class='logo blue'>
PROMETHEUS RESEARCH
</span>
</div>
</div>
</footer>
CSS
html, body {
margin: 0;
background: white;
height: 100%;
font-family: calibri;
font-size: 18px;
color: #454545;
}
body {
display: flex;
flex-direction: column;
}
nav {
background: #165788;
}
nav label {
display: inline-block;
padding: 30px 15px 10px 15px;
color: white;
}
nav label:hover {
background-color: #0094CD;
}
header {
flex-grow: 1;
overflow-y: scroll;
}
h3 {
font-size: 35px;
margin: 30px 0 15px 0;
display: inline-block;
border-bottom: 1px solid #99cceb;
padding-right: 5px;
}
footer {
background: #eee;
padding: 20px 0;
}
.avenir {
font-family: 'avenir';
font-size: 12px;
}
.flex {
display: flex;
}
.flex.row {
flex-direction: row;
}
.flex.start {
justify-content: flex-start;
}
.grow.one {
flex-grow: 1;
}
.box.eee {
display: inline-block;
margin: 10px;
background-color: #eee;
width: 200px;
}
.box:first-of-type {
margin-left: 0;
}
.box:last-of-type {
margin-right: 0;
}
.box .content {
width: 85%;
margin: 0 auto;
}
.box {
}
.box header {
padding: 13px 0 10px 0;
}
.box header.bordered {
border-bottom: 1px solid white;
}
.box header.no-pad {
padding: 0;
}
.box header h4 {
margin: 0 auto;
width: 90%;
}
p {
margin: 15px 0;
}
p.link {
display: inline-block;
margin: 2px 0;
color: #165788;
font-size: 16px;
}
p.link:hover {
cursor: pointer;
color: #0094CD;
}
p.link:before {
content: '-';
}
p.link:first-of-type {
margin-top: 10px;
}
p.link:last-of-type {
margin-bottom: 15px;
}
p.below-title {
margin-top: 0;
}
.txt.dark-gray {
color: #333333;
}
.txt.bold {
font-weight: bold;
}
.page-width {
max-width: 800px;
min-width: 300px;
margin: 0 auto;
}
.footer-logo-box {
margin-top: 5px;
padding-top: 10px;
text-align: center;
border-top: 1px solid #ddd;
}
.logo {
font-size: 12px;
}
.logo.blue {
color: #165788;
}
.empty-space-20 {
height: 20px;
}
.marcus-logo-box {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items:...