All files / src/components SiteFooter.tsx

0% Statements 0/1
100% Branches 0/0
0% Functions 0/1
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29                                                         
import Link from "next/link";
import { T } from "@/lib/i18n/translate";
import { REPO_URL } from "@/lib/docs/published-docs";
 
/**
 * The legal notice and the privacy policy, one click from every page as
 * ยง 5 DDG asks ("leicht erkennbar, unmittelbar erreichbar").
 */
export default function SiteFooter() {
  return (
    <footer
      className="border-t border-(--border) px-6 py-4 text-sm text-(--text-secondary)"
      data-testid="site-footer"
    >
      <div className="max-w-7xl mx-auto flex flex-wrap gap-x-6 gap-y-2">
        <Link href="/impressum" className="hover:text-(--text-primary)">
          <T area="common">{"Legal notice"}</T>
        </Link>
        <Link href="/datenschutz" className="hover:text-(--text-primary)">
          <T area="common">{"Privacy policy"}</T>
        </Link>
        <a href={REPO_URL} className="hover:text-(--text-primary)">
          GitHub
        </a>
      </div>
    </footer>
  );
}