JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<title>My Blog</title>
<link href="https://fonts.googleapis.com/css?family=Handlee" rel="stylesheet">
</head>
<body>
<!-- Form section start -->
<div class="section">
<h1><span>Contact Me</span></h1>
<form>
<input name="name" type="text" placeholder="Name"><br>
<input name="email" type="email" placeholder="Email"><br>
<textarea name="message" placeholder="Message..."></textarea>
<input type="submit" value="SEND" class="submit">
</form>
</div>
<!-- Form section end -->
</body>
</html>
CSS
html {
margin: 0;
padding: 0;
}
body {
font-family: 'Handlee', cursive;
font-size: 13pt;
background-color: #efefef;
padding: 10px;
margin: 0;
}
h1 {
font-size: 15pt;
color: #20bcd5;
text-align: center;
padding: 18px 0 18px 0;
margin: 0 0 10px 0;
}
h1 span {
border: 4px dashed #20bcd5;
padding: 10px;
}
.section {
background-color: #fff;
padding: 15px;
margin-bottom: 10px;
border-radius: 10px;
}
form {
text-align: center;
margin-top: 0;
}
.submit {
background-color: #3fb6b2;
padding: 12px 45px;
border-radius: 5px;
cursor: pointer;
color: #ffffff;
border: none;
outline: none;
margin: 0;
font-weight: bold;
}
.submit:hover {
background-color: #43a09d;
}
textarea {
height: 100px;
}
input, textarea {
margin-bottom: 10px;
font-size: 11pt;
padding: 15px 10px 10px;
border: 1px solid #cecece;
background-color: #efefef;
color: #787575;
border-radius: 5px;
width: 70%;
outline: none;
}