Skip to content

Commit 0fea69d

Browse files
committed
Tipografia albert sans
1 parent 6133b27 commit 0fea69d

1 file changed

Lines changed: 27 additions & 6 deletions

File tree

src/components/SubscribeBox.svelte

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@
8787
const target = /** @type {HTMLFormElement} */ (event.target);
8888
8989
// 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+
);
9193
if (honeypot && honeypot.value !== '') {
9294
event.preventDefault();
9395
console.log('Bot detectado: campo honeypot llenado');
@@ -136,17 +138,32 @@
136138
>
137139
<div class="Frame52 w-full flex-col justify-center items-center md:p-5">
138140
<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"
140142
>
141143
<p>
142144
{@html text}
143145
</p>
144146
</div>
145147
{#if subscribeForm}
146148
<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+
>
148156
<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+
/>
150167
<div style="position: absolute; left: -5000px;" aria-hidden="true">
151168
<input
152169
type="text"
@@ -157,8 +174,12 @@
157174
<input type="text" name="website" tabindex="-1" value="" autocomplete="off" />
158175
<input type="hidden" name="form_time" value={formStartTime} />
159176
</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" />
162183
</button>
163184
</div>
164185
</form>

0 commit comments

Comments
 (0)