Files
sorsfonalak/services/frontend/src/app/kapcsolat/page.tsx
T
fecoandClaude Opus 5.5 2eaae68271 Feedback: the recommendation box at the bottom, a contact page
- The "would you recommend us?" box moves from under the header to the
  bottom of the page, after the content and apart from it (up top it drew
  the eye away); not on pages with the public footer
- /kapcsolat, linked from the footers: logged in, the feedback page;
  otherwise the e-mail address, and that logging in lets one write on the
  site; in the sitemap

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-24 07:17:58 +00:00

49 lines
1.7 KiB
TypeScript

import type { Metadata } from "next";
import Link from "next/link";
import { redirect } from "next/navigation";
import { PublicFooter } from "@/components/PublicFooter";
import { PublicHeader } from "@/components/SiteHeader";
import { OPERATOR } from "@/lib/legal";
import { getMe } from "@/lib/server";
export const metadata: Metadata = {
title: "Kapcsolat",
description: "Kérdésed, ötleted van, vagy hibát találtál? Írj nekünk e-mailt, vagy belépve üzenetet az oldalon.",
alternates: { canonical: "/kapcsolat" },
};
/** Contact: logged in, the feedback page; otherwise the e-mail address, and that logging in lets one write on the site. */
export default async function ContactPage() {
if (await getMe()) redirect("/visszajelzes");
return (
<>
<PublicHeader />
<main className="page" style={{ maxWidth: 760 }}>
<div className="page-head">
<span className="eyebrow">Kapcsolat</span>
<h1>Írj nekünk</h1>
<p className="muted">Kérdésed vagy ötleted van, esetleg hibát találtál? Szívesen segítünk.</p>
</div>
<section className="card contact-card">
<p>
E-mailben ezen a címen érsz el minket:{" "}
<a href={`mailto:${OPERATOR.email}`}>
<strong>{OPERATOR.email}</strong>
</a>
</p>
<p className="muted">
Ha belépsz, az oldalon is küldhetsz nekünk szöveges üzenetet, és a válaszunkat is ott látod.
</p>
<div className="form-actions">
<Link className="btn btn-primary" href="/belepes?vissza=%2Fvisszajelzes">
Belépés
</Link>
</div>
</section>
</main>
<PublicFooter />
</>
);
}