| 123456789101112131415161718192021222324252627282930313233343536 |
- import { cn } from '@/lib/utils';
- import type { FooterSection } from '../types';
- import { Container } from '../ui';
-
- export function Footer({ section }: { section: FooterSection }) {
- const { text, links } = section.content;
- const centered = section.variant === 'centered';
-
- return (
- <footer id={section.id} className="border-t border-(--sf-border)">
- <Container
- className={cn(
- 'flex flex-col gap-4 py-8 text-sm text-(--sf-muted)',
- centered
- ? 'items-center text-center'
- : 'sm:flex-row sm:items-center sm:justify-between',
- )}
- >
- <p>{text}</p>
- {links.length > 0 && (
- <nav aria-label="Footer" className="flex flex-wrap gap-5">
- {links.map((link) => (
- <a
- key={link.label + link.href}
- href={link.href}
- className="transition-colors hover:text-(--sf-fg)"
- >
- {link.label}
- </a>
- ))}
- </nav>
- )}
- </Container>
- </footer>
- );
- }
|