chore: add hidden honeypot fields
This commit is contained in:
parent
24f4e3f68d
commit
84a3e63216
2 changed files with 14 additions and 0 deletions
|
|
@ -37,6 +37,13 @@ const Contact = () => {
|
|||
<form action="https://submit-form.com/nItcloafD">
|
||||
<input type="hidden" name="form_name" value="contact_form" />
|
||||
<input type="hidden" name="_redirect" value="https://amical.ai/contact?submission=true" />
|
||||
<input
|
||||
type="checkbox"
|
||||
name="_is_valid_email"
|
||||
className="hidden"
|
||||
tabIndex={-1}
|
||||
autoComplete="off"
|
||||
/>
|
||||
<div className="grid gap-4 md:grid-cols-2">
|
||||
<div className="grid w-full items-center gap-1.5">
|
||||
<Label htmlFor="firstname">
|
||||
|
|
|
|||
|
|
@ -46,6 +46,13 @@ export function SubscriptionForm({
|
|||
<form action="https://submit-form.com/nItcloafD" className={`flex flex-col ${variant === 'blog' ? 'items-center' : ''} gap-4`}>
|
||||
<input type="hidden" name="form_name" value={formName} />
|
||||
<input type="hidden" name="_redirect" value={redirectUrl} />
|
||||
<input
|
||||
type="checkbox"
|
||||
name="_is_valid_email"
|
||||
className="hidden"
|
||||
tabIndex={-1}
|
||||
autoComplete="off"
|
||||
/>
|
||||
<div className={`flex ${variant === 'blog' ? 'w-full max-w-md' : ''} gap-2`}>
|
||||
<Input placeholder="Enter your email" type="email" name="email" required />
|
||||
<Button type="submit">Subscribe</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue