Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Commit 12abc56

Browse files
authored
Merge pull request #157 from codecoolture/removing-contact-form
Remove ContactForm and a few Netlify-related packages
2 parents 0dfda65 + 414f847 commit 12abc56

10 files changed

Lines changed: 33 additions & 1298 deletions

File tree

layouts/Page/components/ContactForm/Field.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

layouts/Page/components/ContactForm/index.tsx

Lines changed: 0 additions & 64 deletions
This file was deleted.

layouts/Page/components/ContactForm/style.css

Lines changed: 0 additions & 22 deletions
This file was deleted.

layouts/Page/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ContactForm } from "./components/ContactForm";
21
import { Footer } from "./components/Footer";
32
import { Header } from "./components/Header";
43
import { Heading } from "./components/Heading";
@@ -16,8 +15,6 @@ export function Page({ children }: PageProps) {
1615

1716
Page.Header = Header;
1817

19-
Page.ContactForm = ContactForm;
20-
2118
Page.Footer = Footer;
2219

2320
Page.Heading = Heading;

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@
77
"dependencies": {
88
"@radix-ui/colors": "0.1.8",
99
"fathom-client": "3.5.0",
10-
"formik": "2.2.9",
1110
"next": "12.0.8",
1211
"react": "18.2.0",
1312
"react-dom": "18.2.0",
14-
"react-hot-toast": "2.3.0",
1513
"react-icons": "4.4.0",
16-
"sharp": "0.30.7",
1714
"yup": "0.32.11"
1815
},
1916
"devDependencies": {
20-
"@netlify/plugin-nextjs": "4.2.1",
2117
"@next/eslint-plugin-next": "12.0.8",
2218
"@testing-library/cypress": "8.0.3",
2319
"@types/jest": "27.5.2",

pages/_app.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { AppProps } from "next/app";
22
import Head from "next/head";
33
import React from "react";
4-
import { Toaster } from "react-hot-toast";
54
import { useFathom } from "../hooks";
65
import "../styles/index.css";
76

@@ -21,8 +20,6 @@ export default function MyApp({ Component, pageProps }: AppProps) {
2120
</Head>
2221

2322
<Component {...pageProps} />
24-
25-
<Toaster />
2623
</React.Fragment>
2724
);
2825
}

pages/en/index.tsx

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ export default function Homepage() {
134134
product teams at different startups.
135135
</Page.Text>
136136

137+
<Page.Subheading>Contact</Page.Subheading>
138+
137139
<Page.Text>
138-
If you would like to hire this technical training, please use the form below or drop me a line at
139-
hola@codecoolture.com.
140+
Would you like to hire this technical training? Please drop me a line at{" "}
141+
<strong>hola@codecoolture.com</strong> and tell me about your team and the projects you are working on!
140142
</Page.Text>
141143

142144
<Page.Subheading>Published material</Page.Subheading>
@@ -164,33 +166,6 @@ export default function Homepage() {
164166
: Template to (deliberate) practice your test-driven development skills.
165167
</List.Item>
166168
</List>
167-
168-
<Page.Subheading>Contact</Page.Subheading>
169-
170-
<Page.ContactForm onSuccessMessage="Thank you! I will respond to you promptly.">
171-
<Page.ContactForm.Field name="email">
172-
<Page.ContactForm.Field.Label>Your email</Page.ContactForm.Field.Label>
173-
174-
<Page.ContactForm.Field.Hint>Use an email where you want to receive my reply</Page.ContactForm.Field.Hint>
175-
176-
<Page.ContactForm.Field.Input />
177-
178-
<Page.ContactForm.Field.Error>Please, use a valid email.</Page.ContactForm.Field.Error>
179-
</Page.ContactForm.Field>
180-
181-
<Page.ContactForm.Field name="message">
182-
<Page.ContactForm.Field.Label>Your message</Page.ContactForm.Field.Label>
183-
184-
<Page.ContactForm.Field.Hint>
185-
This is <strong>optional</strong>. You may use it to ask for more information, tell me about your
186-
project, or say hi :-)
187-
</Page.ContactForm.Field.Hint>
188-
189-
<Page.ContactForm.Field.TextArea numberOfRows={5} />
190-
</Page.ContactForm.Field>
191-
192-
<Page.ContactForm.Submit>Send your message</Page.ContactForm.Submit>
193-
</Page.ContactForm>
194169
</Page.Row>
195170
</Page.Main>
196171

pages/es/index.tsx

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,12 @@ export default function Homepage() {
140140
ingeniería del software (continuous deployment, test-driven development, trunk-based development).
141141
</Page.Text>
142142

143+
<Page.Subheading>¿Hablamos?</Page.Subheading>
144+
143145
<Page.Text>
144-
Si quieres contratar esta formación para tu empresa, escríbeme un mensaje utilizando el formulario a
145-
continuación y te responderé lo antes posible. También puedes escribirme un email a hola@codecoolture.com.
146+
Si quieres contratar esta formación para tu empresa, escríbeme un mensaje a{" "}
147+
<strong>hola@codecoolture.com</strong> y cuéntame un poco sobre tu equipo y los proyectos en los que estáis
148+
trabajando.
146149
</Page.Text>
147150

148151
<Page.Subheading>Material publicado</Page.Subheading>
@@ -170,33 +173,6 @@ export default function Homepage() {
170173
: plantilla para practicar TDD en aplicaciones JavaScript
171174
</List.Item>
172175
</List>
173-
174-
<Page.Subheading>¿Hablamos?</Page.Subheading>
175-
176-
<Page.ContactForm onSuccessMessage="¡Gracias! Mensaje recibido.">
177-
<Page.ContactForm.Field name="email">
178-
<Page.ContactForm.Field.Label>Tu email</Page.ContactForm.Field.Label>
179-
180-
<Page.ContactForm.Field.Hint>Lo utilizaré para responderte</Page.ContactForm.Field.Hint>
181-
182-
<Page.ContactForm.Field.Input />
183-
184-
<Page.ContactForm.Field.Error>Por favor, introduce un email válido.</Page.ContactForm.Field.Error>
185-
</Page.ContactForm.Field>
186-
187-
<Page.ContactForm.Field name="message">
188-
<Page.ContactForm.Field.Label>Mensaje</Page.ContactForm.Field.Label>
189-
190-
<Page.ContactForm.Field.Hint>
191-
Este campo es <strong>opcional</strong>, pero puedes utilizarlo para contarme algo sobre ti o,
192-
simplemente, saludar :-)
193-
</Page.ContactForm.Field.Hint>
194-
195-
<Page.ContactForm.Field.TextArea numberOfRows={5} />
196-
</Page.ContactForm.Field>
197-
198-
<Page.ContactForm.Submit>Enviar tu mensaje</Page.ContactForm.Submit>
199-
</Page.ContactForm>
200176
</Page.Row>
201177
</Page.Main>
202178

styles/index.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
@import "../components/Underline/style.css";
1616

1717
@import "../layouts/Page/style.css";
18-
@import "../layouts/Page/components/ContactForm/style.css";
1918
@import "../layouts/Page/components/Header/style.css";
2019
@import "../layouts/Page/components/Heading/style.css";
2120
@import "../layouts/Page/components/Footer/style.css";

0 commit comments

Comments
 (0)