diff --git a/components/footer/Footer.js b/components/footer/Footer.js index 565156d..0289c2e 100644 --- a/components/footer/Footer.js +++ b/components/footer/Footer.js @@ -1,152 +1,146 @@ import React from 'react' import Link from 'next/link' +import Image from 'next/image' +import { useTranslation } from 'next-i18next' import Logo from '/public/images/janahanlaw-logo.png' import Campaign from '../../api/campaign'; -import Image from 'next/image'; const ClickHandler = () => { - window.scrollTo(10, 0); + window.scrollTo(10, 0); } + const SubmitHandler = (e) => { - e.preventDefault() + e.preventDefault(); } const Footer = (props) => { - return ( - + ) } -export default Footer; \ No newline at end of file +export default Footer; diff --git a/next-i18next.config.js b/next-i18next.config.js index 2732a8b..3d78250 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -5,7 +5,7 @@ module.exports = { locales: ['en', 'es'], localeDetection: false, }, - ns: ['common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction', 'blog', 'services'], + ns: ['common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction', 'blog', 'services', 'footer'], defaultNS: 'common', // localePath: './public/locales', }; diff --git a/pages/about/index.js b/pages/about/index.js index 8b72c8c..b9285ee 100644 --- a/pages/about/index.js +++ b/pages/about/index.js @@ -48,7 +48,7 @@ export default AboutPage; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'ourStory', 'aboutService', 'aboutMission', 'aboutRacial', 'aboutDonor'])), // Add 'home', 'footer', etc. if needed + ...(await serverSideTranslations(locale, ['common', 'menu', 'ourStory', 'aboutService', 'aboutMission', 'aboutRacial', 'aboutDonor', 'footer'])), // Add 'home', 'footer', etc. if needed }, }; } diff --git a/pages/about/our-mission.js b/pages/about/our-mission.js index ffedcf4..49d6d77 100644 --- a/pages/about/our-mission.js +++ b/pages/about/our-mission.js @@ -24,7 +24,7 @@ export default AboutPage; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'ourMission'])), // Add 'home', 'footer', etc. if needed + ...(await serverSideTranslations(locale, ['common', 'menu', 'ourMission', 'footer'])), // Add 'home', 'footer', etc. if needed }, }; } diff --git a/pages/about/racial-justice.js b/pages/about/racial-justice.js index d2dadac..6777d8e 100644 --- a/pages/about/racial-justice.js +++ b/pages/about/racial-justice.js @@ -24,7 +24,7 @@ export default AboutPage; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'racialJustice'])), // Add 'home', 'footer', etc. if needed + ...(await serverSideTranslations(locale, ['common', 'menu', 'racialJustice', 'footer'])), // Add 'home', 'footer', etc. if needed }, }; } diff --git a/pages/blog/[slug].js b/pages/blog/[slug].js index 6aa6df1..d5ab6b2 100644 --- a/pages/blog/[slug].js +++ b/pages/blog/[slug].js @@ -98,7 +98,7 @@ export async function getStaticPaths() { export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'blog'])), + ...(await serverSideTranslations(locale, ['common', 'menu', 'blog', 'footer'])), }, }; } diff --git a/pages/blog/index.js b/pages/blog/index.js index 65367f0..00aa04b 100644 --- a/pages/blog/index.js +++ b/pages/blog/index.js @@ -24,7 +24,7 @@ export default BlogPage; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'blog'])), // Add 'home', 'footer', etc. if needed + ...(await serverSideTranslations(locale, ['common', 'menu', 'blog', 'footer'])), // Add 'home', 'footer', etc. if needed }, }; } diff --git a/pages/contact/index.js b/pages/contact/index.js index a5371e5..4635205 100644 --- a/pages/contact/index.js +++ b/pages/contact/index.js @@ -24,7 +24,7 @@ export default ContactPage; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'contact'])), // Add 'home', 'footer', etc. if needed + ...(await serverSideTranslations(locale, ['common', 'menu', 'contact', 'footer'])), // Add 'home', 'footer', etc. if needed }, }; } diff --git a/pages/index.js b/pages/index.js index 3431bb4..6b8da0b 100644 --- a/pages/index.js +++ b/pages/index.js @@ -40,7 +40,7 @@ export default HomePage; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction', 'blog'])), // Add 'home', 'footer', etc. if needed + ...(await serverSideTranslations(locale, ['common', 'menu', 'homeHero', 'home4Card', '(home)/homeAbout', '(home)/homeFeature', '(home)/testimonial', '(home)/homeCalltoAction', 'blog', 'footer'])), // Add 'home', 'footer', etc. if needed }, }; } diff --git a/pages/services/[slug].js b/pages/services/[slug].js index 5b78cd4..835928a 100644 --- a/pages/services/[slug].js +++ b/pages/services/[slug].js @@ -120,7 +120,7 @@ export async function getStaticProps({ params, locale }) { return { props: { service, - ...(await serverSideTranslations(locale, ["common", "menu", "services"])), + ...(await serverSideTranslations(locale, ["common", "menu", "services", , 'footer'])), }, }; } diff --git a/pages/services/index.js b/pages/services/index.js index 3ba22a3..bc92cdc 100644 --- a/pages/services/index.js +++ b/pages/services/index.js @@ -31,7 +31,7 @@ export default Services; export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common', 'menu', 'services'])), // Add 'home', 'footer', etc. + ...(await serverSideTranslations(locale, ['common', 'menu', 'services', 'footer'])), // Add 'home', 'footer', etc. }, }; } diff --git a/public/locales/en/footer.json b/public/locales/en/footer.json new file mode 100644 index 0000000..eac6698 --- /dev/null +++ b/public/locales/en/footer.json @@ -0,0 +1,16 @@ +{ + "logoAlt": "Janahan Law Logo", + "aboutText": "Every immigration case tells a unique story of hope, determination, and the pursuit of the American dream.", + "quickLinksTitle": "Quick Links", + "home": "Home", + "aboutUs": "About Us", + "services": "Services", + "ourApproach": "Our Approach", + "blog": "Blog", + "servicesTitle": "Services", + "contactTitle": "Contact", + "phone": "Phone", + "email": "Email", + "copyright": "Copyright {{year}} © Janahan Law. Powered by", + "allRightsReserved": "All Right Reserved." +} \ No newline at end of file diff --git a/public/locales/es/footer.json b/public/locales/es/footer.json new file mode 100644 index 0000000..d2f2535 --- /dev/null +++ b/public/locales/es/footer.json @@ -0,0 +1,16 @@ +{ + "logoAlt": "Logo de Janahan Law", + "aboutText": "Cada caso de inmigración cuenta una historia única de esperanza, determinación y la búsqueda del sueño americano.", + "quickLinksTitle": "Enlaces Rápidos", + "home": "Inicio", + "aboutUs": "Sobre Nosotros", + "services": "Servicios", + "ourApproach": "Nuestro Enfoque", + "blog": "Blog", + "servicesTitle": "Servicios", + "contactTitle": "Contacto", + "phone": "Teléfono", + "email": "Correo Electrónico", + "copyright": "Copyright {{year}} © Janahan Law. Desarrollado por", + "allRightsReserved": "Todos los Derechos Reservados." +} \ No newline at end of file