Skip to content

Instantly share code, notes, and snippets.

@Jexordexan
Last active October 3, 2021 14:59
Show Gist options
  • Save Jexordexan/bc36987ca6ed1c2184074a6c5bb31e79 to your computer and use it in GitHub Desktop.
Save Jexordexan/bc36987ca6ed1c2184074a6c5bb31e79 to your computer and use it in GitHub Desktop.
Final contact page template code
<template>
<div class="container">
<h1 class="title">
Contact
</h1>
<div class="content">
<form name="contact" action="/thank-you" netlify-honeypot="bot-field" method="post" netlify>
<input type="hidden" name="form-name" value="contact" />
<p class="hidden">
<label>Don’t fill this out: <input name="bot-field"></label>
</p>
<label class="form-label" for="name">
Name:
</label>
<input class="form-field" name="name" id="name" />
<label class="form-label" for="email">
Email:
</label>
<input class="form-field" name="email" id="email" />
<label class="form-label" for="message">
Message:
</label>
<textarea class="form-field" name="message" id="message"></textarea>
<input class="form-button" type="submit" value="Send message" />
</form>
</div>
</div>
</template>
@nickngqs
Copy link

Hi there, was following your tutorial on medium. This code doesn't seem to work., It keeps getting routing Page Not Found in netlify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment