From d57afe93a37cf4cbb2867a04b7c8b57010532612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Loureiro?= Date: Mon, 9 Jun 2025 12:21:20 -0300 Subject: [PATCH] feat: update social media links in Footer component to use environment variables and refactor Contact component to utilize backend URL from environment variable --- frontend/src/app/components/Footer.tsx | 10 +++++++--- frontend/src/app/components/sections/Contact.tsx | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/components/Footer.tsx b/frontend/src/app/components/Footer.tsx index 12205d7..24e30f7 100644 --- a/frontend/src/app/components/Footer.tsx +++ b/frontend/src/app/components/Footer.tsx @@ -5,18 +5,22 @@ import { FaGithub, FaLinkedin, FaTwitter } from 'react-icons/fa'; export default function Footer() { const t = useTranslations('footer'); + const githubUrl = process.env.NEXT_PUBLIC_GITHUB_URL || '#'; + const linkedinUrl = process.env.NEXT_PUBLIC_LINKEDIN_URL || '#'; + const twitterUrl = process.env.NEXT_PUBLIC_TWITTER_URL || '#'; + return (