JSFiddle - React, Tailwind, and code Playground
HTML
<title>Relax</title>
<body>
<div class="container">
<header>
<nav>
<ul>
<li class="left-nav"><a href="#section-1">The Hustle</a></li>
<li class="left-nav"><a href="#section-2">Two Minutes</a></li>
<li class="right-nav"><a href="#section-4">About Us</a></li>
<li class="right-nav"><a href="#section-3">The Music</a></li>
</ul>
</nav>
</header>
<section id="section-1">
<div class="fix"></div>
<div class="one">
<h1 class="top-header">The Hustle</h1>
</div>
<div class="two">
<p class="center-paragraph">
We know. You're super busy. You barely have time for your family,
let alone yourself.</p>
</div>
<div class="three">
<p class="right-paragraph">Millions of people are caught
up in the daily hustle, never a moment to reflect...</p>
</div>
<div class="four">
<div class="convert-dammit">▼ Scroll ▼</div>
</div>
</section>
<section id="section-2">
<div class="fix"></div>
<div class="one">
<h1 class="top-header">Two Minutes</h1>
</div>
<div class="two">
<p class="center-paragraph">Do yourself a favor. Take two minutes for
yourself...remember who you are?</p>
</div>
<div class="three">
<p class="right-paragraph">Kick off your
shoes and let everything go...</p>
</div>
<div class="four">
<div class="convert-dammit">▼ Go On ...
CSS
@import url(http://fonts.googleapis.com/css?family=Righteous);
@import url(http://fonts.googleapis.com/css?family=Abel);
@import url(http://fonts.googleapis.com/css?family=Raleway:800);
*, *:before, *:after {
box-sizing: inherit;
}
html {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
.container {
position: relative;
min-width: 960px;
max-width: 1200px;
height: 100%;
}
p {
font-family: 'Abel' sans-serif;
}
header {
height: 20%;
width: 100%;
position: fixed;
background-color: transparent;
}
nav {
height: 50%;
}
ul {
height: 100%;
padding: 0;
}
li {
display: inline-block;
text-align: center;
width: 15%;
margin-left: 5%;
margin-right: 5%;
margin-top: 11px;
margin-bottom: 11px;
font-family: 'Raleway', sans-serif;
background: #fffff;
background: rgba(255,255,255,0.7);
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
.left-nav {
float: left;
}
.right-nav {
float: right;
}
.left-nav a,
.right-nav a {
text-decoration: none;
font-size: 24px;
color: #fd7400;
text-shadow: 1px 1px #004358;
}
section {
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
overflow: auto;
height: 100%;
}
.fix {
height: 20%;
visibility: collapse;
}
.one {
height: 20%;
}
.two {
height: 20%;
}
.three {
height: 20%;
}
.four {
height: 20%;
}
#section-1 {
background-image: url(../img/train.gif);
}
#section-2 {
background-image: url(../img/relax.gif);
}
#section-3 {
background-image: url(../img/music.gif);
}
#section-4 {
background-image: url(../img/yoga.jpg);
}
.top-header {
font-family: 'Righteous' sans-serif;
font-size: 58px;
text-align: center;
margin: 0;
}
.center-paragraph {
text-align: center;
font-size: 32px;
margin: 0;
padding-top: 33.5px;
font-weight: 700;
}
.right-paragraph {
float: right;
...