JSFiddle - React, Tailwind, and code Playground

by dqisv

HTML

<body>
		<header>
				<h1>Test</h1>
			<nav>
				<ul class="menu">
					<li><a href="#">Selected Work</a>
						<ul class="submenu">
							<li><a id="image-one" href="#">Aaaaa</a></li>
							<li><a id="image-two" href="#">Bbbbb</a></li>
							<li><a id="image-three" href="#">Ccccc</a></li>
						</ul>	
					</li>
				</ul>
			</nav>

			<section>	
				<ul class="social">
					<li><a href="#" target="_blank"><span class="fa fa-twitter fa-2x"></span></a></li>
					<li><a href="#" target="_blank"><span class="fa fa-github fa-2x"></span></a></li>
					<li><a href="#" target="_blank"><span class="fa fa-envelope-o fa-2x"></span></a></li>
				</ul>
			</section>
		</header>

		<section class="content">
			<h2>Aaaa</h2>
			<h3>Aaaa</h3>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
		</section>

		<section class="content">
			<h2>Bbbb</h2>
			<h3>Bbbb</h3>
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
			</section>


	</body>

CSS

/* css reset */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, em, img, strong, sub, sup, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figure, figcaption, footer, header, hgroup, 
menu, nav, output, section, time {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body{
	font-family: Quicksand, Helvetica, sans-serif;
	font-size: 100%;
	margin: 10px;
	left: 0;
	top: 0;
	display: block;
}
header {
	position: fixed;
	top: 0px;
	left: 20px;
	padding: 15px 0px 5px 0px;
	margin-left: 10px;
	width: 90%;
	z-index: 20;
}
h1 {
	font-family: "Permanent Marker", Helvetica, sans-serif;	
	font-size: 2.125em; /* 34 / 16 */
	padding-bottom: 10px;
	padding-left: 10px;
	border-bottom: 3px solid black;
}
h1 span {
	font-family: Quicksand, Helvetica, sans-serif;
}
h2 {
	font-family: Quicksand, Helvetica, sans-serif;	
	font-size: 1.75em; /* 28 / 16 */
	padding-bottom: 2px;
	border-bottom: 1px dotted black;
	margin-bottom: 8px;
}
h3 {
	font: 22px/22px Quicksand, Helvetica, sans-serif;	
	font-size: 1.375em; /* 22 /16 */
	padding-bottom: 6px;
	
}
p {
	margin-bottom: 8px;
}
a {
	color: black;
	text-decoration: none;
	cursor: pointer;
	color: hsla(200, 100%, 50%, 1);
}
a:hover {
	text-shadow: red 0 2px;
}
nav {
	position: inherit;
	left: 30px;
	top: 63px;
}
.menu {
	position: inherit;
	width: 100%;
}
.menu > li {
	float: left;
	display: inline-block;
}
.menu li a {
	display: inherit;
	padding: 8px 10px 10px 10px;
}
.menu li a:hover...

JavaScript

jQuery(function(){
    var $body = $('body');
    $('#image-one').hover(function(){
        $body.css('background-image', 'url(https://upload.wikimedia.org/wikipedia/commons/9/96/SmogNY.jpg)')
    }, function() {
        $body.css('background-image', '')
    })
    $('#image-two').hover(function(){
        $body.css('background-image', 'url(http://static.dezeen.com/uploads/2013/10/Smog-by-Daan-Roosegaarde_dezeen_04.jpg)')
    }, function() {
        $body.css('background-image', '')
    })
      $('#image-three').hover(function(){
        $body.css('background-image', 'url(http://img.rt.com/files/news/22/ea/00/00/27.si.jpg)')
    }, function() {
        $body.css('background-image', '')
    })
})