Create the page
Add a page or component such assrc/pages/contact.astro. Replace YOUR_FORM_PUBLIC_KEY in the endpoint URL and update the redirect URL.
Show the result without leaving the page
If you prefer an inline success message, give the form anid and add a client-side <script> that submits it with fetch(). The request is the same as the JavaScript form example.