JSFiddle - React, Tailwind, and code Playground
by panchroma
HTML
<div class="header-container">
<header class="clearfix">
<h1 class="title">logo</h1>
<nav class="wide">
<ul>
<li><a href="#">how we work</a></li>
<li><a href="#">what we offer</a></li>
<li><a href="#">projects</a></li>
<li><a href="#">clients</a></li>
<li><a href="#">about</a></li>
</ul>
</nav>
</header>
</div>
<div class="hero-container">
<div class="hero wrapper clearfix">
<h2>
We thrive on solving other people’s problems in a collaborative setting.<br />
This means starting by understanding the client’s needs and goals.<br />
Listening to and understanding our clients is the key to how we work.
</h2>
</div>
</div>
<div class="main-container">
<div class="main wrapper clearfix">
<div class="mobile">
<nav>
<ul>
<li><a href="#">how we work</a></li>
<li><a href="#">what we offer</a></li>
<li><a href="#">projects</a></li>
<li><a href="#">clients</a></li>
<li><a href="#">about</a></li>
</ul>
</nav>
<img class="left" src="img/mobile/map.png">
<h4 class="right">Map and Info</h4>
</div>
<article>
<header>
<h1>article header h1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis...
CSS
/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
/*! This is MOBILE FIRST */
html,
button,
input,
select,
textarea {
color: #222;
}
html {
font-size: 1em;
line-height: 1.4;
}
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
audio,
canvas,
img,
video {
vertical-align: middle;
}
fieldset {
border: 0;
margin: 0;
padding: 0;
}
textarea {
resize: vertical;
}
.browsehappy {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 0.2em 0;
}
/* ==========================================================================
ALL: Global Styles
Orange: #e75524;
Purple: #672565;
Menu: #9c9c9c;
Grey: #727473;
========================================================================== */
body {
font: 16px/26px Helvetica, Helvetica Neue, Arial;
}
.wrapper {
width: 90%;
margin: 0 5%;
}
.main aside {
background: #e75524;
}
.header-container {
background: #fff;
}
.title {
color: white;
}
/* ==============
MOBILE: Header
============== */
.logo {
width: 200px;
}
.title {
margin: .67em 0 .67em .67em;
}
nav {
margin: 0 0 0 0;
}
nav ul {
margin: 0;
padding: 0;
}
nav a {
display: block;
margin-bottom: 10px;
font-family: 'brandon_grotesquemedium';
font-size: 16px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
color: #9c9c9c;
}
nav a:hover,
nav a:visited {
color: #9c9c9c;
}
nav a:hover {
font-weight: normal;
}
/* ==============
MOBILE: Main
============== */
.main {
padding: 0 0 0 0;
}
.main article h1 {
font-size: 2em;
}
.main aside {
color: white;
padding: 0px 5% 10px;
}
.hero-container {
background: #672565;
color:#fff;
...