From 23ce3103021800c90f77066422a37fe537bb064c Mon Sep 17 00:00:00 2001 From: eukom Date: Tue, 28 Jul 2026 12:24:19 +0100 Subject: [PATCH] feat(mobile): implement touch-friendly simplified footer (#318) - Add MobileFooter component with responsive layout - Navigation links in 2x2 grid on mobile - Social icons centered - Copyright centered - WCAG 2.1 AA compliant touch targets (44px min) - Dark mode support Closes #318 --- app/mobile-footer/page.tsx | 31 ++++++++++++ components/mobile/MobileFooter.tsx | 76 ++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 app/mobile-footer/page.tsx create mode 100644 components/mobile/MobileFooter.tsx diff --git a/app/mobile-footer/page.tsx b/app/mobile-footer/page.tsx new file mode 100644 index 0000000..5a05562 --- /dev/null +++ b/app/mobile-footer/page.tsx @@ -0,0 +1,31 @@ +import MobileFooter from '@/components/mobile/MobileFooter' + +export default function MobileFooterPage() { + return ( +
+
+
+

+ Mobile Footer Preview +

+

+ Scroll down to see the simplified footer +

+
+ {Array.from({ length: 5 }).map((_, i) => ( +
+

+ Content block {i + 1} +

+
+ ))} +
+
+ +
+
+ ) +} diff --git a/components/mobile/MobileFooter.tsx b/components/mobile/MobileFooter.tsx new file mode 100644 index 0000000..303e290 --- /dev/null +++ b/components/mobile/MobileFooter.tsx @@ -0,0 +1,76 @@ +`use client + +import React from react +import Link from next/link + +// Navigation links data +const footerLinks = [ + { label: Home, href: / }, + { label: About, href: /about }, + { label: Services, href: /services }, + { label: Support, href: /support }, + { label: Privacy Policy, href: /privacy }, + { label: Terms of Service, href: /terms }, + { label: Contact, href: /contact }, + { label: FAQs, href: /faq }, +] + +// Social icons data +const socialLinks = [ + { label: Twitter, href: https://twitter.com/swiftchain, icon: 🐦 }, + { label: GitHub, href: https://github.com/swiftchain, icon: 🐙 }, + { label: LinkedIn, href: https://linkedin.com/company/swiftchain, icon: 🔗 }, + { label: Discord, href: https://discord.gg/swiftchain, icon: 💬 }, +] + +export function MobileFooter() { + const currentYear = new Date().getFullYear() + + return ( + + ) +} + +export default MobileFooter +