The site now exists in German (at the root, with /impressum and /datenschutz) and English (/en). A request without a language follows the visitor's choice from the language switch, then the browser language, then German; the old English legal addresses move to /en for good. All visible texts are data in src/content/de.ts and en.ts, so components hold none of their own. The header carries a DE/EN switch whose bit curtain covers the page while it is swapped and reopens at the same reading position. Title, description, canonical, hreflang, Open Graph, the share image, the sitemap and the structured data are per language. The privacy notice now describes the cookie that remembers the chosen language. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
94 lines
2.7 KiB
TypeScript
94 lines
2.7 KiB
TypeScript
import { EmailLink } from "@/src/components/EmailLink";
|
|
import { LegalSection } from "@/src/components/LegalPage";
|
|
import { OWNER } from "@/src/content/site";
|
|
import type { Locale } from "@/src/domain/locale";
|
|
import type { LegalText } from "./types";
|
|
|
|
const LINK = "font-bold text-slate-900 underline-offset-4 hover:underline";
|
|
|
|
const Address: React.FC<{ country: string }> = ({ country }) => (
|
|
<p>
|
|
{OWNER.name}
|
|
<br />
|
|
{OWNER.street}
|
|
<br />
|
|
{OWNER.postalCode} {OWNER.locality}
|
|
<br />
|
|
{country}
|
|
</p>
|
|
);
|
|
|
|
/** The imprint (section 5 DDG) in both languages. */
|
|
export const IMPRINT: Readonly<Record<Locale, LegalText>> = {
|
|
de: {
|
|
title: "Impressum",
|
|
description: "Impressum von mintel.me.",
|
|
Body: () => (
|
|
<>
|
|
<LegalSection heading="Angaben gemäß § 5 DDG">
|
|
<Address country="Deutschland" />
|
|
</LegalSection>
|
|
|
|
<LegalSection heading="Kontakt">
|
|
<p>
|
|
E-Mail: <EmailLink className={LINK} />
|
|
</p>
|
|
</LegalSection>
|
|
|
|
<LegalSection heading="Umsatzsteuer-Identifikationsnummer">
|
|
<p>
|
|
Umsatzsteuer-Identifikationsnummer gemäß § 27a Umsatzsteuergesetz:{" "}
|
|
{OWNER.vatId}
|
|
</p>
|
|
</LegalSection>
|
|
|
|
<LegalSection heading="Verantwortlich für den Inhalt">
|
|
<p>{OWNER.name}, Anschrift wie oben (§ 18 Abs. 2 MStV).</p>
|
|
</LegalSection>
|
|
|
|
<LegalSection heading="Verbraucherstreitbeilegung">
|
|
<p>
|
|
Ich bin weder bereit noch verpflichtet, an Streitbeilegungsverfahren
|
|
vor einer Verbraucherschlichtungsstelle teilzunehmen.
|
|
</p>
|
|
</LegalSection>
|
|
</>
|
|
),
|
|
},
|
|
en: {
|
|
title: "Imprint",
|
|
description: "Legal notice (Impressum) for mintel.me.",
|
|
Body: () => (
|
|
<>
|
|
<LegalSection heading="Information according to section 5 DDG">
|
|
<Address country="Germany" />
|
|
</LegalSection>
|
|
|
|
<LegalSection heading="Contact">
|
|
<p>
|
|
Email: <EmailLink className={LINK} />
|
|
</p>
|
|
</LegalSection>
|
|
|
|
<LegalSection heading="VAT identification number">
|
|
<p>
|
|
VAT identification number according to section 27a of the German VAT
|
|
Act (Umsatzsteuergesetz): {OWNER.vatId}
|
|
</p>
|
|
</LegalSection>
|
|
|
|
<LegalSection heading="Responsible for the content">
|
|
<p>{OWNER.name}, address as above (section 18 paragraph 2 MStV).</p>
|
|
</LegalSection>
|
|
|
|
<LegalSection heading="Consumer dispute resolution">
|
|
<p>
|
|
I am neither willing nor obliged to take part in dispute resolution
|
|
proceedings before a consumer arbitration board.
|
|
</p>
|
|
</LegalSection>
|
|
</>
|
|
),
|
|
},
|
|
};
|