diff --git a/artifacts/ehsan-poc/src/components/layout/AppLayout.tsx b/artifacts/ehsan-poc/src/components/layout/AppLayout.tsx index 30b93ee..44d3001 100644 --- a/artifacts/ehsan-poc/src/components/layout/AppLayout.tsx +++ b/artifacts/ehsan-poc/src/components/layout/AppLayout.tsx @@ -1,20 +1,141 @@ import { ReactNode } from "react"; +import { Link } from "wouter"; +import { Phone, Apple, Play } from "lucide-react"; import { Header } from "./Header"; -import ehsanLogo from "../../assets/ehsan-logo.png"; +import { useLanguage } from "../../contexts/LanguageContext"; + +function XIcon({ className = "" }: { className?: string }) { + return ( + + ); +} + +interface FooterLink { + label: string; + href: string; + internal?: boolean; +} export function AppLayout({ children }: { children: ReactNode }) { + const { t } = useLanguage(); + const f = t.footer; + + const overviewLinks: FooterLink[] = [ + { label: f.overviewAbout, href: "/about", internal: true }, + { label: f.overviewCommittees, href: "/about/committees", internal: true }, + { label: f.overviewSms, href: "#" }, + { label: f.overviewSitemap, href: "#" }, + ]; + + const supportLinks: FooterLink[] = [ + { label: f.supportComplaints, href: "#" }, + { label: f.supportSla, href: "#" }, + { label: f.supportFaq, href: "#" }, + { label: f.supportPrivacy, href: "#" }, + { label: f.supportAccessibility, href: "#" }, + ]; + + const renderLink = (link: FooterLink) => { + const cls = + "text-sm text-white/80 transition-colors hover:text-white"; + if (link.internal) { + return ( + + {link.label} + + ); + } + return ( + + {link.label} + + ); + }; + return (
{children}
-