template-pre-launch
by sheet2api
HTML
<!DOCTYPE HTML>
<html>
<head>
<title>Pre-launch web page</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.min.css" />
</head>
<body class="container p-3 mt-5 mb-5 ">
<header id="header">
<h1>Coming Soon</h1>
<p>A simple template for telling the world when you'll launch<br />
your next big thing.</p>
</header>
<p class="alert alert-success mt-3 d-none" id="msg">
Thank you, we'll be in touch.
</p>
<!-- UPDATE HERE! Update this sheet2api API URL to your own one -->
<form id="signup-form" method="post" action="https://sheet2api.com/v1/FgI6zV8qT121/use-case-pre-launch-page" onsubmit="return onFormSubmit(event)">
<input type="email" name="email" id="email" placeholder="Email Address" />
<input type="submit" value="Sign Up" class="btn btn-primary" />
</form>
<script>
var formElement = document.getElementById('signup-form');
function onFormSubmit() {
var formData = new FormData(formElement);
var url = formElement.getAttribute('action');
fetch(url, {
method: 'POST',
body: formData
})
.then(r => r.json())
.then(data => {
document.getElementById('msg').classList.remove('d-none');
})
return false;
}
</script>
</body>
</html>