AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

footer.tsx 1.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { cn } from '@/lib/utils';
  2. import type { FooterSection } from '../types';
  3. import { Container } from '../ui';
  4. export function Footer({ section }: { section: FooterSection }) {
  5. const { text, links } = section.content;
  6. const centered = section.variant === 'centered';
  7. return (
  8. <footer id={section.id} className="border-t border-(--sf-border)">
  9. <Container
  10. className={cn(
  11. 'flex flex-col gap-4 py-8 text-sm text-(--sf-muted)',
  12. centered
  13. ? 'items-center text-center'
  14. : 'sm:flex-row sm:items-center sm:justify-between',
  15. )}
  16. >
  17. <p>{text}</p>
  18. {links.length > 0 && (
  19. <nav aria-label="Footer" className="flex flex-wrap gap-5">
  20. {links.map((link) => (
  21. <a
  22. key={link.label + link.href}
  23. href={link.href}
  24. className="transition-colors hover:text-(--sf-fg)"
  25. >
  26. {link.label}
  27. </a>
  28. ))}
  29. </nav>
  30. )}
  31. </Container>
  32. </footer>
  33. );
  34. }