mirror of
https://github.com/corazoncp/corazoncp-landing.git
synced 2026-12-01 12:30:31 +00:00
fix(ux): open external CTAs in new tab, link maps address, and expand footer spacing (#12)
Co-authored-by: kiskaadee <fcortesbio@gmail.com>
This commit is contained in:
1 parent
4996c0c8db
commit
2606810291
2 files changed
+58
-5
No files matched your search
+36
-5
@@ -21,6 +21,8 @@
|
||||
<!-- Floating WhatsApp Action -->
|
||||
<a
|
||||
href="https://wa.me/573215428972?text=Hola%20Azu,%20visit%C3%A9%20tu%20p%C3%A1gina%20y%20me%20gustar%C3%ADa%20conversar%20sobre%20tus%20sesiones."
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="fixed bottom-5 right-5 z-50 flex min-h-[48px] min-w-[48px] items-center gap-2.5 rounded-full bg-[#25D366] px-5 py-3 text-sm font-bold text-white shadow-lg shadow-black/20 transition hover:scale-105 hover:bg-[#20ba59] hover:shadow-xl focus:outline-none focus:ring-4 focus:ring-[#25D366]/40 active:scale-95"
|
||||
aria-label="Conversar por WhatsApp con Azucena Sánchez"
|
||||
>
|
||||
@@ -65,6 +67,8 @@
|
||||
</p>
|
||||
<a
|
||||
href="https://wa.me/573215428972?text=Hola%20Azu,%20visit%C3%A9%20tu%20p%C3%A1gina%20y%20me%20gustar%C3%ADa%20conversar%20sobre%20tus%20sesiones."
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="inline-flex w-full sm:w-auto items-center justify-center gap-3 rounded-full bg-emerald px-8 py-4 text-base font-semibold text-ivory shadow-lg shadow-emerald/25 transition hover:bg-forest hover:shadow-xl focus:outline-none focus:ring-4 focus:ring-emerald/40"
|
||||
>
|
||||
<span>Conversar por WhatsApp</span>
|
||||
@@ -122,6 +126,8 @@
|
||||
</div>
|
||||
<a
|
||||
href="https://wa.me/573215428972?text=Hola%20Azu,%20me%20gustar%C3%ADa%20consultar%20sobre%20las%20sesiones%20de%20Barras%20de%20Access."
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="block w-full rounded-full border border-emerald px-6 py-3 text-center text-sm font-semibold text-emerald transition hover:bg-emerald hover:text-ivory"
|
||||
>
|
||||
Consultar por Barras →
|
||||
@@ -145,6 +151,8 @@
|
||||
</div>
|
||||
<a
|
||||
href="https://wa.me/573215428972?text=Hola%20Azu,%20me%20gustar%C3%ADa%20consultar%20sobre%20las%20sesiones%20de%20Procesos%20de%20Cuerpo."
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="block w-full rounded-full border border-emerald px-6 py-3 text-center text-sm font-semibold text-emerald transition hover:bg-emerald hover:text-ivory"
|
||||
>
|
||||
Consultar Procesos →
|
||||
@@ -168,6 +176,8 @@
|
||||
</div>
|
||||
<a
|
||||
href="https://wa.me/573215428972?text=Hola%20Azu,%20me%20gustar%C3%ADa%20consultar%20sobre%20las%20Mentor%C3%ADas%20de%20Consciencia%20y%20Oidaterapia."
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="block w-full rounded-full border border-emerald px-6 py-3 text-center text-sm font-semibold text-emerald transition hover:bg-emerald hover:text-ivory"
|
||||
>
|
||||
Consultar Mentoría →
|
||||
@@ -185,6 +195,8 @@
|
||||
</p>
|
||||
<a
|
||||
href="https://wa.me/573215428972?text=Hola%20Azu,%20estuve%20viendo%20tus%20servicios%20y%20me%20gustar%C3%ADa%20agendar%20una%20sesi%C3%B3n."
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="inline-flex items-center justify-center rounded-full bg-emerald px-8 py-3.5 text-sm font-semibold text-ivory transition hover:bg-forest"
|
||||
>
|
||||
Quiero agendar o recibir información
|
||||
@@ -260,6 +272,8 @@
|
||||
</p>
|
||||
<a
|
||||
href="https://wa.me/573215428972?text=Hola%20Azu,%20quisiera%20ponerme%20en%20contacto%20contigo."
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="inline-flex items-center justify-center gap-3 rounded-full bg-emerald px-8 py-4 text-sm font-semibold text-ivory shadow-lg shadow-emerald/25 transition hover:bg-forest hover:shadow-xl"
|
||||
>
|
||||
<span>Escribir al WhatsApp Business</span>
|
||||
@@ -274,8 +288,15 @@
|
||||
<div>
|
||||
<h3 class="text-sm font-bold text-forest">Ubicación & Consultorio</h3>
|
||||
<p class="text-sm text-forest/80 mt-1">
|
||||
Calle 7 #19B-88 Apto 102, Valledupar, Colombia, 200005<br />
|
||||
<span class="text-xs text-forest/60">(Atención presencial y a domicilio)</span>
|
||||
<a
|
||||
href="https://maps.app.goo.gl/FbaV2eRCWbsK8Hnt5"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="group inline-block transition hover:text-emerald"
|
||||
>
|
||||
<span class="group-hover:underline">Calle 7 #19B-88 Apto 102, Valledupar, Colombia, 200005</span><br />
|
||||
<span class="text-xs text-forest/60 group-hover:text-emerald/80">(Atención presencial y a domicilio)</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -286,7 +307,12 @@
|
||||
<div>
|
||||
<h3 class="text-sm font-bold text-forest">WhatsApp Business Oficial</h3>
|
||||
<p class="text-sm text-forest/80 mt-1">
|
||||
<a href="https://wa.me/573215428972" class="hover:underline">(+57) 321 542 8972</a>
|
||||
<a
|
||||
href="https://wa.me/573215428972"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="hover:underline"
|
||||
>(+57) 321 542 8972</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -297,7 +323,12 @@
|
||||
<div>
|
||||
<h3 class="text-sm font-bold text-forest">Correo Electrónico</h3>
|
||||
<p class="text-sm text-forest/80 mt-1">
|
||||
<a href="mailto:contactocorazoncp@gmail.com" class="hover:underline">contactocorazoncp@gmail.com</a>
|
||||
<a
|
||||
href="mailto:contactocorazoncp@gmail.com"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="hover:underline"
|
||||
>contactocorazoncp@gmail.com</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -330,7 +361,7 @@
|
||||
</main>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="border-t border-sage/20 py-8 text-center text-xs text-sage">
|
||||
<footer class="mt-16 border-t border-sage/20 py-12 text-center text-xs text-forest/60">
|
||||
<div class="mx-auto max-w-6xl px-6">
|
||||
<p>© 2026 El Corazón como Portal · Todos los derechos reservados · Valledupar, Colombia</p>
|
||||
</div>
|
||||
|
||||
@@ -62,6 +62,16 @@ test('Slice 2 Acceptance Criteria: Hero and WhatsApp Flow', async (t) => {
|
||||
href.includes(expectedEncoded) || href.includes('Hola%20Azu'),
|
||||
'URL must contain correctly percent-encoded query parameter',
|
||||
);
|
||||
assert.match(
|
||||
ctaMatch[0],
|
||||
/target="_blank"/i,
|
||||
'Hero CTA must open in a new tab (target="_blank")',
|
||||
);
|
||||
assert.match(
|
||||
ctaMatch[0],
|
||||
/rel="noopener noreferrer"/i,
|
||||
'Hero CTA must include rel="noopener noreferrer"',
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
@@ -93,6 +103,18 @@ test('Slice 2 Acceptance Criteria: Hero and WhatsApp Flow', async (t) => {
|
||||
// Crisp SVG WhatsApp icon (no emoji placeholder)
|
||||
assert.ok(buttonMarkup.includes('<svg'), 'Floating button must contain an inline SVG icon');
|
||||
assert.ok(!buttonMarkup.includes('💬'), 'Floating button must not use emoji 💬');
|
||||
|
||||
// New tab target
|
||||
assert.match(
|
||||
buttonMarkup,
|
||||
/target="_blank"/i,
|
||||
'Floating WhatsApp button must open in a new tab (target="_blank")',
|
||||
);
|
||||
assert.match(
|
||||
buttonMarkup,
|
||||
/rel="noopener noreferrer"/i,
|
||||
'Floating WhatsApp button must include rel="noopener noreferrer"',
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user