JSFiddle - React, Tailwind, and code Playground
by 3rror404
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Some</title>
<meta content="" name="descriptison">
<meta content="" name="keywords">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
</head>
<body>
<main>
<!-- ======= Contact Section ======= -->
<section id="contact">
<div class="container wow fadeInUp">
<div class="section-header">
<h3 class="section-title">Contact</h3>
<p class="section-description"></p>
</div>
</div>
<div class="container wow fadeInUp mt-5">
<div class="row justify-content-center">
<div class="col-lg-5 col-md-8">
<div class="form">
<form id="contactForm" method="post" role="form" class="php-email-form">
<div class="form-group">
<input type="text" name="first-name" class="form-control" id="first-name" placeholder="First name" size="30" maxlength="30" data-rule="minlen:2" data-msg="Please insert first name." />
<div class="validate"></div>
</div>
<div class="mb-3">
<div class="loading">Sending...</div>
<div class="error-message">error!</div>
<div class="sent-message">sent!</div>
</div>
<div class="text-center"><button type="submit">submit</button></div>
<div id="msgSubmit" class="h3 text-center hidden">Message Submitted!</div>
</form>
</div>
</div>
</div>
</div>
</section><!-- End Contact Section -->
</main><!-- End #main -->
<a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
...
CSS
/**
* Template Name: Regna - v2.0.0
* Template URL: https://bootstrapmade.com/regna-bootstrap-onepage-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
background: #fff;
color: #666666;
font-family: "Open Sans", sans-serif;
}
a {
color: #2dc997;
}
a:hover, a:active, a:focus {
color: #2dca98;
outline: none;
text-decoration: none;
}
p {
padding: 0;
margin: 0 0 30px 0;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Poppins", sans-serif;
font-weight: 400;
margin: 0 0 20px 0;
padding: 0;
}
/* Prelaoder */
#preloader {
position: fixed;
left: 0;
top: 0;
z-index: 999;
width: 100%;
height: 100%;
overflow: visible;
background: #fff url("../img/preloader.svg") no-repeat center center;
}
/* Back to top button */
.back-to-top {
position: fixed;
display: none;
background: rgba(0, 0, 0, 0.2);
color: #fff;
padding: 6px 12px 9px 12px;
font-size: 16px;
border-radius: 2px;
right: 15px;
bottom: 15px;
transition: background 0.5s;
}
@media (max-width: 768px) {
.back-to-top {
bottom: 15px;
}
}
.back-to-top:focus {
background: rgba(0, 0, 0, 0.2);
color: #fff;
outline: none;
}
.back-to-top:hover {
background: #2dc997;
color: #fff;
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
padding: 30px 0;
height: 92px;
position: fixed;
left: 0;
top: 0;
right: 0;
transition: all 0.5s;
z-index: 997;
}
#header #logo {
float: left;
}
#header #logo h1 {
font-size: 36px;
margin: 0;
padding: 6px 0;
line-height: 1;
font-family: "Poppins", sans-serif;
font-weight: 700;
letter-spacing: 3px;
text-transform: uppercase;
}
#header #logo h1 a, #header #logo h1 a:hover {
color: #fff;
}
#header #logo img {
...