Main #23

Merged
sagifer merged 2 commits from main into prod 2026-11-19 14:31:48 +01:00
3 changed files with 38 additions and 13 deletions
Showing only changes of commit 1af55d3b05 - Show all commits
+13 -4
View File
@@ -2,7 +2,7 @@ import type { Metadata } from "next";
import Link from "next/link"; import Link from "next/link";
import { PublicHeader } from "@/components/SiteHeader"; import { PublicHeader } from "@/components/SiteHeader";
import { OPERATOR, PRIVACY_UPDATED } from "@/lib/legal"; import { OPERATOR, PRIVACY_UPDATED, operatorDetails } from "@/lib/legal";
import { getMe } from "@/lib/server"; import { getMe } from "@/lib/server";
export const metadata: Metadata = { export const metadata: Metadata = {
@@ -29,9 +29,18 @@ export default async function PrivacyPage() {
<section> <section>
<h2>1. Ki kezeli az adataidat?</h2> <h2>1. Ki kezeli az adataidat?</h2>
<p> <p>
A Sorsfonalak szolgáltatás (sorsfonalak.hu) adatkezelője: <strong>{OPERATOR.name}</strong>, {OPERATOR.address} {operatorDetails() ? (
{OPERATOR.registration ? `, ${OPERATOR.registration}` : ""}. Adatvédelmi kérdésekben itt érsz el minket:{" "} <>
<strong>{OPERATOR.email}</strong>. A Sorsfonalak szolgáltatás (sorsfonalak.hu) adatkezelője: <strong>{operatorDetails()}</strong>.{" "}
</>
) : (
"A Sorsfonalak szolgáltatás (sorsfonalak.hu) adatkezelőjét e-mailben éred el. "
)}
Adatvédelmi és minden más kérdésben itt érsz el minket:{" "}
<a href={`mailto:${OPERATOR.email}`}>
<strong>{OPERATOR.email}</strong>
</a>
.
</p> </p>
</section> </section>
+13 -5
View File
@@ -2,7 +2,7 @@ import type { Metadata } from "next";
import Link from "next/link"; import Link from "next/link";
import { PublicHeader } from "@/components/SiteHeader"; import { PublicHeader } from "@/components/SiteHeader";
import { OPERATOR, PRIVACY_UPDATED_EN } from "@/lib/legal"; import { OPERATOR, PRIVACY_UPDATED_EN, operatorDetails } from "@/lib/legal";
import { getMe } from "@/lib/server"; import { getMe } from "@/lib/server";
export const metadata: Metadata = { export const metadata: Metadata = {
@@ -75,10 +75,18 @@ export default async function PrivacyPolicyPage() {
<section> <section>
<h2>1. Who is responsible for your data?</h2> <h2>1. Who is responsible for your data?</h2>
<p> <p>
The controller of the Sorsfonalak service (sorsfonalak.hu) is <strong>{OPERATOR.name}</strong>,{" "} {operatorDetails() ? (
{OPERATOR.address} <>
{OPERATOR.registration ? `, ${OPERATOR.registration}` : ""}. For any privacy question, contact us at{" "} The controller of the Sorsfonalak service (sorsfonalak.hu) is <strong>{operatorDetails()}</strong>.{" "}
<strong>{OPERATOR.email}</strong>. </>
) : (
"The controller of the Sorsfonalak service (sorsfonalak.hu) can be reached by e-mail. "
)}
For any privacy or other question, contact us at{" "}
<a href={`mailto:${OPERATOR.email}`}>
<strong>{OPERATOR.email}</strong>
</a>
.
</p> </p>
</section> </section>
+12 -4
View File
@@ -1,11 +1,19 @@
// Operator details shown on the legal pages. Fill these in before launch. // Operator details shown on the legal pages. The name, address and
// registration come with the company (at the opening); until then the pages
// leave them out and give the contact address only.
export const OPERATOR = { export const OPERATOR = {
name: "[Üzemeltető neve – kitöltendő]", name: null as string | null,
address: "[Székhely / postacím – kitöltendő]", address: null as string | null,
email: "[Kapcsolattartási e-mail – kitöltendő]", email: "info@sorsfonalak.hu",
/** Company registration and tax number, if the operator is a company. */ /** Company registration and tax number, if the operator is a company. */
registration: null as string | null, registration: null as string | null,
}; };
/** Name, address and registration as one phrase ("Kft., 1234 Budapest, …"), or null. */
export function operatorDetails(): string | null {
const parts = [OPERATOR.name, OPERATOR.address, OPERATOR.registration].filter(Boolean);
return parts.length > 0 ? parts.join(", ") : null;
}
export const PRIVACY_UPDATED = "2026. november 19."; export const PRIVACY_UPDATED = "2026. november 19.";
export const PRIVACY_UPDATED_EN = "19 November 2026"; export const PRIVACY_UPDATED_EN = "19 November 2026";