diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index 5f9f6b3..865f427 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -106,5 +106,13 @@
"Showing": "Showing",
"for": "for",
"out of": "out of",
- "numberFormat": "{{value, number}}"
+ "numberFormat": "{{value, number}}",
+ "Got it": "Got it",
+ "Contact": "Contact",
+ "Email": "Email",
+ "Message": "Message",
+ "Submit": "Submit",
+ "ContactUs": "Get in Touch",
+ "Mail sent success": "Your message has been delivered!",
+ "Mail sent error": "Error sending message. Try again later."
}
diff --git a/public/locales/en/contact.json b/public/locales/en/contact.json
deleted file mode 100644
index 5861af8..0000000
--- a/public/locales/en/contact.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Contact": "Contact",
- "Name": "Name",
- "Email": "Email",
- "Message": "Message",
- "Submit": "Submit",
- "ContactUs": "Get in Touch",
- "Mail sent success": "Your message has been delivered!",
- "Mail sent error": "Error sending message. Try again later."
-}
diff --git a/public/locales/pt-BR/common.json b/public/locales/pt-BR/common.json
index 7af71a4..f176b63 100644
--- a/public/locales/pt-BR/common.json
+++ b/public/locales/pt-BR/common.json
@@ -106,5 +106,13 @@
"Showing": "Mostrando",
"for": "para",
"out of": "de",
- "numberFormat": "{{value, number}}"
+ "numberFormat": "{{value, number}}",
+ "Got it": "Prosseguir",
+ "Contact": "Contato",
+ "Email": "Email",
+ "Message": "Menssagem",
+ "Submit": "Enviar",
+ "ContactUs": "Fale conosco",
+ "Mail sent success": "Sua mensagem foi enviada!",
+ "Mail sent error": "Erro ao enviar a mensagem. Tente novamente mais tarde."
}
diff --git a/public/locales/pt-BR/contact.json b/public/locales/pt-BR/contact.json
deleted file mode 100644
index 8e9a96b..0000000
--- a/public/locales/pt-BR/contact.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "Contact": "Contato",
- "Name": "Nome",
- "Email": "Email",
- "Message": "Menssagem",
- "Submit": "Enviar",
- "ContactUs": "Fale conosco",
- "Mail sent success": "Sua mensagem foi enviada!",
- "Mail sent error": "Erro ao enviar a mensagem. Tente novamente mais tarde."
-}
diff --git a/src/components/ContactForm.tsx b/src/components/ContactForm.tsx
index 344b2c6..9c2292a 100644
--- a/src/components/ContactForm.tsx
+++ b/src/components/ContactForm.tsx
@@ -9,7 +9,7 @@ import Loader from './Loader';
function ContactForm() {
/* const router = useRouter() */
- const { t } = useTranslation('contact');
+ const { t } = useTranslation('common');
const options = {
autoClose: true,
@@ -121,14 +121,7 @@ function ContactForm() {
/>
diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx
index 5f21fa3..feee63b 100644
--- a/src/pages/contact.tsx
+++ b/src/pages/contact.tsx
@@ -1,21 +1,21 @@
-import { GetStaticProps } from 'next'
-import ContactForm from '../components/ContactForm'
-import Head from 'next/head'
-import { useTranslation } from 'react-i18next'
-import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
+import { GetStaticProps } from 'next';
+import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
+import Head from 'next/head';
+import { useTranslation } from 'react-i18next';
+import ContactForm from '../components/ContactForm';
type Props = {
// Add custom props here
-}
+};
// or getServerSideProps: GetServerSideProps = async ({ locale })
export const getStaticProps: GetStaticProps = async ({ locale }) => ({
props: {
- ...(await serverSideTranslations(locale ?? 'en', ['contact', 'navbar'])),
+ ...(await serverSideTranslations(locale ?? 'en', ['common', 'navbar'])),
},
-})
+});
export default function About() {
- const { t } = useTranslation('contact')
+ const { t } = useTranslation('common');
return (
<>
@@ -33,5 +33,5 @@ export default function About() {
>
- )
+ );
}
diff --git a/src/styles/Cookie.module.css b/src/styles/Cookie.module.css
index 56d1b57..d8e45ec 100644
--- a/src/styles/Cookie.module.css
+++ b/src/styles/Cookie.module.css
@@ -24,7 +24,7 @@
}
.cookieItems button {
- background-color: #383e52;
+ background-color: var(--secondary-color);
text-transform: uppercase;
font-weight: 700;
font-size: 0.875rem;