Skip to content

Commit 952dd0c

Browse files
committed
Fix: Unete button
1 parent d1d3d99 commit 952dd0c

5 files changed

Lines changed: 49 additions & 21 deletions

File tree

src/data/contactFormConfig.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export const contactFormConfig = {
2+
inputs: [
3+
{
4+
type: 'text',
5+
name: 'name',
6+
label: 'Nombre',
7+
},
8+
{
9+
type: 'email',
10+
name: 'email',
11+
label: 'Correo electrónico',
12+
},
13+
],
14+
textarea: {
15+
label: 'Mensaje',
16+
},
17+
disclaimer: {
18+
label: 'Al enviar este formulario de contacto, reconoces y aceptas la recopilación de tu información personal.',
19+
},
20+
description: 'Nuestro equipo de soporte generalmente responde dentro de las 24 horas hábiles.',
21+
};

src/navigation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export const headerData = {
2828
{
2929
text: 'Contacto',
3030
href: getPermalink('/contact'),
31+
},
32+
{
33+
text: 'Únete al club',
34+
href: getPermalink('/unete'),
3135
}
3236
],
3337
}

src/pages/contact.astro

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Layout from '~/layouts/PageLayout.astro';
33
import HeroText from '~/components/widgets/HeroText.astro';
44
import ContactUs from '~/components/widgets/Contact.astro';
55
import Features2 from '~/components/widgets/Features2.astro';
6+
import { contactFormConfig } from '~/data/contactFormConfig';
67
78
const metadata = {
89
title: 'Contacto',
@@ -18,26 +19,7 @@ const metadata = {
1819
id="form"
1920
title="¿Tienes alguna pregunta?"
2021
subtitle="Ponte en contacto con nosotros a través del siguiente formulario y te responderemos lo más rápido posible."
21-
inputs={[
22-
{
23-
type: 'text',
24-
name: 'name',
25-
label: 'Nombre',
26-
},
27-
{
28-
type: 'email',
29-
name: 'email',
30-
label: 'Correo electrónico',
31-
},
32-
]}
33-
textarea={{
34-
label: 'Mensaje',
35-
}}
36-
disclaimer={{
37-
label:
38-
'Al enviar este formulario de contacto, reconoces y aceptas la recopilación de tu información personal.',
39-
}}
40-
description="Nuestro equipo de soporte generalmente responde dentro de las 24 horas hábiles."
22+
{...contactFormConfig}
4123
/>
4224

4325
<Features2

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const metadata = {
2626
{
2727
variant: 'primary',
2828
text: 'Únete al club',
29-
href: '#',
29+
href: '/unete',
3030
icon: 'tabler:rocket',
3131
},
3232
{ text: 'Leer el blog', href: '#blog' },

src/pages/unete.astro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
import Layout from '~/layouts/PageLayout.astro';
3+
import HeroText from '~/components/widgets/HeroText.astro';
4+
import ContactUs from '~/components/widgets/Contact.astro';
5+
import { contactFormConfig } from '~/data/contactFormConfig';
6+
7+
const metadata = {
8+
title: 'Únete al club',
9+
};
10+
---
11+
12+
<Layout metadata={metadata}>
13+
<HeroText tagline="Formulario de inscripción" title="¡Únete a Hackiit!" />
14+
15+
<ContactUs
16+
id="form"
17+
title="¿Quieres formar parte del club?"
18+
subtitle="Rellena este formulario para unirte a Hackiit y nos pondremos en contacto contigo lo antes posible."
19+
{...contactFormConfig}
20+
/>
21+
</Layout>

0 commit comments

Comments
 (0)