From b0a3f96b4dd97f99c21d19f84835a6589138795c Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 22 Apr 2026 19:21:21 +0000
Subject: [PATCH 1/8] Initial plan
From a5d4a46087b6f5274007f2ac920b9aade6634115 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 22 Apr 2026 19:29:48 +0000
Subject: [PATCH 2/8] feat: modularize footer social icons and update official
links
Agent-Logs-Url: https://github.com/podcodar/webapp/sessions/2a9c85a4-5689-4b4a-b49e-54ae9bbf3ea7
Co-authored-by: marco-souza <4452113+marco-souza@users.noreply.github.com>
---
e2e/site.spec.ts | 25 +++++++++++++++++++++++++
src/components/Footer.astro | 25 ++-----------------------
src/components/SocialLinks.astro | 20 ++++++++++++++++++++
src/data/social-links.ts | 24 ++++++------------------
4 files changed, 53 insertions(+), 41 deletions(-)
create mode 100644 src/components/SocialLinks.astro
diff --git a/e2e/site.spec.ts b/e2e/site.spec.ts
index 68f6a45..e7266e8 100644
--- a/e2e/site.spec.ts
+++ b/e2e/site.spec.ts
@@ -31,6 +31,31 @@ test.describe('Homepage', () => {
const footer = page.locator('footer');
await expect(footer).toBeInViewport();
});
+
+ test('shows only official social links in the footer', async ({ page }) => {
+ await page.goto('/');
+
+ const footer = page.locator('footer');
+
+ await expect(footer.getByRole('link', { name: /podcodar no github/i })).toHaveAttribute(
+ 'href',
+ 'https://github.com/podcodar/'
+ );
+ await expect(footer.getByRole('link', { name: /podcodar no linkedin/i })).toHaveAttribute(
+ 'href',
+ 'https://www.linkedin.com/company/podcodar/'
+ );
+ await expect(footer.getByRole('link', { name: /podcodar no instagram/i })).toHaveAttribute(
+ 'href',
+ 'https://www.instagram.com/podcodar/'
+ );
+ await expect(footer.getByRole('link', { name: /podcodar no youtube/i })).toHaveAttribute(
+ 'href',
+ 'https://www.youtube.com/@podcodar5070'
+ );
+
+ await expect(footer.getByRole('link')).toHaveCount(4);
+ });
});
// ──────────────────────────────────────────────────────────────────────────────
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index 34be428..140dd31 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -1,7 +1,6 @@
---
-import { Icon } from 'astro-icon/components';
import Logo from '@/components/Logo.astro';
-import { footerSocialIconify, footerSocialLinks } from '@/data/social-links';
+import SocialLinks from '@/components/SocialLinks.astro';
import { getLangFromUrl, useTranslations } from '@/i18n/utils';
const today = new Date();
@@ -14,25 +13,5 @@ const t = useTranslations(lang);
© {today.getFullYear()} PodCodar. {t('footer.copyright')}
-{item.description}