JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Easily discover what’s in close range to you. Find your closest stores, restaurants, bars and more.">
<title>Close Range - Find your closest...</title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="/assets/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/assets/css/main.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="page_wrap">
<header>
<a href="/"><h1>Close<span><i class="fa fa-map-marker" aria-hidden="true"></i></span>Range</h1></a>
<hr>
<section id="refinement">
<form>
<section class="form_component" style="display: block;">
<input id="driving" type="radio" name="travelmode" value="Driving" checked=""> <i class="fa fa-car" aria-hidden="true"></i>
<input id="walking" type="radio" name="travelmode" value="Walking"> <i class="fa fa-male" aria-hidden="true"></i>
</section>
<section class="form_component" style="display: block;">
<select id="narrow" disabled="">
<option value="select" selected="" disabled="">Please Select</option>
<option value="lodging">Accommodation</option>
<option value="accounting">Accountants</option>
<option value="aquarium">Aquarium</option>
<option value="art_gallery">Art Gallery</option>
<option value="atm">Cash...
CSS
@import 'https://fonts.googleapis.com/css?family=Open+Sans:400,600';
a, a:hover
{
text-decoration: none;
}
html, body
{
height: 100%;
}
body
{
font-family: 'Open Sans', sans-serif;
background: #fff;
font-size: 16px;
min-height: 100%;
display: flex;
flex-direction: column;
}
#page_wrap
{
display:flex;
flex-direction:column;
flex-shrink:0;
min-height:100%;
}
header
{
background: #fff;
text-align: center;
padding: 0.625em 1.25em;
flex-shrink: 0;
}
header h1
{
font-size: 6em;
font-weight: 400;
color: #655e5e;
margin: 0;
display: inline-block;
}
@media screen and (min-width:605px)
and (max-width: 900px)
{
header h1 {
font-size: 3.5em;
}
}
@media screen and (min-width:340px)
and (max-width: 605px)
{
header h1 {
font-size: 3em;
}
}
@media screen and (max-width: 340px)
{
header h1 {
font-size: 2em;
}
}
header hr
{
max-width: 36em;
margin-bottom: 0px;
}
header .fa-map-marker
{
color: #ec3b3b;
font-size: 1.2em;
}
#refinement
{
padding: 0.625em 0 0;
display: flex;
align-items: center;
justify-content: center;
background: #fff;
}
#refinement form
{
display: flex;
justify-content: center;
flex-direction: column;
}
select#narrow:disabled
{
background: #dfdede;
}
.form_component
{
margin: 0 0.4em;
display: none;
padding: 0.625em;
}
.form_component i.fa
{
font-size: 1.4em;
color: #655e5e;
}
main
{
background: #eaeaea;
}
#content
{
text-align: center;
background: #655e5e;
display: flex;
flex-direction: column;
flex-shrink: 0;
align-items: center;
justify-content: center;
padding: 1.25em;
}
@media screen and (max-width: 900px)
{
#content
{
display:none;
}
}
#content h2
{
color: #fff;
font-weight: 400;
font-size: 3em;
margin: 0;
}
@media screen and (max-width: 415px) {
#content h2
{
font-size:2em;
}
}
#content i.fa-globe
{
font-size: 14em;
color: #fff;
}
@media screen and...