import { Box, chakra, Container, Flex, Grid, Image, Text, VisuallyHidden, } from '@chakra-ui/react'; import socialPlatforms from '@/content/socialPlatforms'; import type { SiteContent } from '@/content/types'; import { copyrightLine } from '@/lib/copyrightLine'; import { emailAddress } from '@/lib/emailAddress'; import { visibleSocials } from '@/lib/visibleSocials'; import { footerNav } from '@/navigation'; import RouterLink from '../RouterLink'; import FooterColumn from './FooterColumn'; import FooterLink from './FooterLink'; // Images import logoDark from '../../assets/logo-dark.png'; type FooterProps = { content: SiteContent; }; // Footer uit het design (FR-05): merk, socials en contact, met daaronder de // copyright en het footermenu. Een lege kolom valt weg (BR-FOOT-01). export default function Footer({ content }: FooterProps) { const socials = visibleSocials(content.socials); // Pas hier samengevoegd, zodat het adres nergens letterlijk staat const email = emailAddress(content.email); const year = new Date().getFullYear(); return ( {/* Merk: op mobiel gecentreerd onder elkaar, vanaf tablet het logo met de tekst ernaast */} Andrea Slop Fotografie {/* Regelafbrekingen uit de content blijven staan */} {content.footerIntro} {socials.length > 0 && ( {socials.map((social) => ( {/* Spatie buiten de verborgen tekst, anders valt hij weg uit de voorgelezen naam */} {socialPlatforms[social.platform].name}{' '} (opent in nieuw tabblad) ))} )} {email && ( {email} )} {copyrightLine(year)} {footerNav.map((item) => ( {item.label} ))} ); }