Show an on-screen success message instead of emailing visitors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,12 +33,12 @@ export default function ContactForm() {
|
||||
if (state.status === "sent") {
|
||||
return (
|
||||
<div className="contact-form form-sent" role="status">
|
||||
<span className="card-num">Received</span>
|
||||
<h3 className="card-title">Thanks — your message is with the team.</h3>
|
||||
<p className="copy">
|
||||
We’ll review what you shared and get back to you shortly.
|
||||
{state.copySent && " A confirmation with a copy of your message is on its way to your inbox."}
|
||||
</p>
|
||||
<svg className="sent-mark" viewBox="0 0 48 48" aria-hidden="true">
|
||||
<circle cx="24" cy="24" r="23" />
|
||||
<path d="M14 24.5l7 7 13-14" />
|
||||
</svg>
|
||||
<h3 className="card-title">Your message was sent successfully.</h3>
|
||||
<p className="copy">Thank you for reaching out. Our team will review what you shared and get back to you shortly.</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user