|
87 | 87 | const target = /** @type {HTMLFormElement} */ (event.target); |
88 | 88 |
|
89 | 89 | // Check honeypot field |
90 | | - const honeypot = /** @type {HTMLInputElement | null} */ (target.querySelector('input[name="website"]')); |
| 90 | + const honeypot = /** @type {HTMLInputElement | null} */ ( |
| 91 | + target.querySelector('input[name="website"]') |
| 92 | + ); |
91 | 93 | if (honeypot && honeypot.value !== '') { |
92 | 94 | event.preventDefault(); |
93 | 95 | console.log('Bot detectado: campo honeypot llenado'); |
|
136 | 138 | > |
137 | 139 | <div class="Frame52 w-full flex-col justify-center items-center md:p-5"> |
138 | 140 | <div |
139 | | - class="text-center text-black text-2xl md:text-5xl font-bold font-['Albert Sans'] md:leading-[63.44px] md:p-5 text-wrap" |
| 141 | + class="text-center text-black text-2xl md:text-5xl font-bold md:leading-[63.44px] md:p-5 text-wrap" |
140 | 142 | > |
141 | 143 | <p> |
142 | 144 | {@html text} |
143 | 145 | </p> |
144 | 146 | </div> |
145 | 147 | {#if subscribeForm} |
146 | 148 | <div class="flex justify-center mx-auto my-3"> |
147 | | - <form class="w-full max-w-sm validate" action={breveo_url} method="post" id="newsletter-form" target="_blank" > |
| 149 | + <form |
| 150 | + class="w-full max-w-sm validate" |
| 151 | + action={breveo_url} |
| 152 | + method="post" |
| 153 | + id="newsletter-form" |
| 154 | + target="_blank" |
| 155 | + > |
148 | 156 | <div class="flex items-center"> |
149 | | - <input class="appearance-none border-none w-full text-gray-700 px-4 py-3 rounded-tl-3xl rounded-bl-3xl border-zinc-300 leading-tight focus:outline-none" placeholder="correo@ejemplo.org" aria-label="Full name" type="email" name="EMAIL" required value="" pattern={regex}> |
| 157 | + <input |
| 158 | + class="appearance-none border-none w-full text-gray-700 px-4 py-3 rounded-tl-3xl rounded-bl-3xl border-zinc-300 leading-tight focus:outline-none" |
| 159 | + placeholder="correo@ejemplo.org" |
| 160 | + aria-label="Full name" |
| 161 | + type="email" |
| 162 | + name="EMAIL" |
| 163 | + required |
| 164 | + value="" |
| 165 | + pattern={regex} |
| 166 | + /> |
150 | 167 | <div style="position: absolute; left: -5000px;" aria-hidden="true"> |
151 | 168 | <input |
152 | 169 | type="text" |
|
157 | 174 | <input type="text" name="website" tabindex="-1" value="" autocomplete="off" /> |
158 | 175 | <input type="hidden" name="form_time" value={formStartTime} /> |
159 | 176 | </div> |
160 | | - <button aria-label="Suscribirme" class="flex-shrink-0 px-5 py-2 bg-black rounded-tr-3xl h-11 rounded-br-3xl text-sm border border-black text-white rounded text-base font-bold font-['Albert Sans'] uppercase leading-normal" type="button"> |
161 | | - <input type="submit" name="subscribe" class="button uppercase" value="Suscribirme"> |
| 177 | + <button |
| 178 | + aria-label="Suscribirme" |
| 179 | + class="flex-shrink-0 px-5 py-2 bg-black rounded-tr-3xl h-11 rounded-br-3xl text-sm border border-black text-white rounded text-base font-bold uppercase leading-normal" |
| 180 | + type="button" |
| 181 | + > |
| 182 | + <input type="submit" name="subscribe" class="button uppercase" value="Suscribirme" /> |
162 | 183 | </button> |
163 | 184 | </div> |
164 | 185 | </form> |
|
0 commit comments