JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Fedilogue</title>
</head>
<body class="homepage">
<div class="center">
<div class="logo section">
<a class="logolink" href="#" title="Fedilogue logo">
Search Area
</a>
</div>
<div class="searcharea section">
<form name="search" method="get" action="search">
<input class="searchinput" type="text" name="q" value="" />
<input class="searchsubmit" type="submit" name="" value="Search" />
<div class="clear"></div>
</form>
</div>
</div>
</body>
</html>
CSS
* {
margin: 0;
padding: 0;
font-family: sans-serif;
box-sizing: border-box;
}
.clear {
clear: both;
}
html, body {
/* To vertically center align */
display: table;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
h1, h2, h3, h4, a {
color: #666666;
}
h1, h2, h3, h4 {
margin: 0 0 10px;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.homepage .center {
text-align: center;
/* To vertically center align */
display: table-cell;
vertical-align: middle;
}
.section {
margin: 50px auto;
}
.searcharea {
border: 1px solid #b3b3b3;
border-radius: 30px;
max-width: 800px;
}
.searchinput {
width: 75%;
color: #666666;
background: none;
border: none;
font-size: 22px;
float: left;
padding: 10px 25px;
box-sizing: border-box;
outline: none;
}
.searchsubmit {
float: right;
width: 20%;
background: #333333;
color: #f2f2f2;
border: none;
border-radius: 30px;
padding: 10px 20px;
margin: 2px;
font-size: 18px;
cursor: pointer;
}
.links.section li {
display: inline-block;
margin: 0 10px;
color: #666666;
}
.hbmenu {
position: absolute;
top: 0;
right: 0;
background: #ffffff;
/* Remove focus border */
outline: none;
z-index: 100;
}
.hbmenu .hbbtn {
display: block;
padding: 15px 20px;
content: "\2630";
color: #666666;
font-size:24px;
cursor: pointer;
}
.hbmenu:focus {
pointer-events: none;
height: 100%;
border-left: 1px solid #b3b3b3;
padding: 0;
}
.hbmenu .menu {
display: none;
z-index: 1000;
pointer-events: auto;
}
.hbmenu:focus .menu {
display: unset;
}
.hbmenu .menu li {
display: block;
}
.hbmenu .menu li a {
display: inline-block;
width: 160px;
padding: 15px 20px;
}
/* ----- Search result page ----- */
.resultpage .navbar {
padding: 10px 10px;
}
.resultpage .logo {
margin: 20px 0 0 10px;
}
.resultpage .hbbtn {
margin: 20px 0 0;
}
.resultpage .logo img {
width: 150px;
float: left;
}
.resultpage .searcharea {
margin:...