Merge branch 'main' into prod
CI / test (push) Successful in 8s
CI / build (push) Successful in 52s
CI / deploy (push) Successful in 26s

This commit is contained in:
feco
2026-11-27 06:37:08 +00:00
8 changed files with 198 additions and 40 deletions
+7 -7
View File
@@ -61,17 +61,17 @@ export function Landing({ inviteOnly, loggedIn = false }: { inviteOnly: boolean;
<section className="lp-hero">
<div className="lp-wrap lp-hero-grid">
<div className="lp-hero-text">
<span className="eyebrow lp-rise lp-r1">Születési képlet · Éves előrejelzés · Kapcsolat</span>
<h1 className="lp-title lp-rise lp-r2">
<span className="eyebrow">Születési képlet · Éves előrejelzés · Kapcsolat</span>
<h1 className="lp-title">
Ahol a csillagok
<br />
összekötnek.
</h1>
<p className="lp-lead lp-rise lp-r3">
<p className="lp-lead">
Add meg, mikor és hol születtél: percre pontosan kiszámoljuk a képletedet, és személyre szóló elemzést írunk
belőle. Megmutatjuk, mit hoz az éved, és mennyire illetek össze azzal, akit szeretsz.
</p>
<div className="lp-personal lp-rise lp-r3">
<div className="lp-personal">
<svg aria-hidden="true" viewBox="0 0 24 24" className="lp-personal-icon">
<path d="M12 3.5a7.5 7.5 0 0 1 7.5 7.5c0 3-.6 5.7-1.6 7.8" />
<path d="M4.5 11a7.5 7.5 0 0 1 3-6" />
@@ -88,7 +88,7 @@ export function Landing({ inviteOnly, loggedIn = false }: { inviteOnly: boolean;
</p>
</div>
</div>
<div className="lp-actions lp-rise lp-r4">
<div className="lp-actions">
<Link href={start} className="btn btn-primary lp-btn">
{signIn}
</Link>
@@ -97,13 +97,13 @@ export function Landing({ inviteOnly, loggedIn = false }: { inviteOnly: boolean;
</Link>
</div>
{!loggedIn && (
<p className="lp-free-line lp-rise lp-r4">
<p className="lp-free-line">
<span className="lp-free-label">Ingyenes</span>
<Link href="/szuletesi-horoszkop">Nézd meg a születési horoszkópodat belépés nélkül →</Link>
</p>
)}
{!loggedIn && (
<p className="hint lp-rise lp-r4">
<p className="hint">
{inviteOnly
? "Az oldal egyelőre meghívásos: meghívóval, Google-fiókkal lépsz be."
: "A képlet és a rövid összefoglaló ingyenes. Google-fiókkal lépsz be."}
+17 -2
View File
@@ -207,6 +207,14 @@ export default async function PrivacyPage() {
<td>Biztonság, hibakeresés, visszaélések kiszűrése</td>
<td>Jogos érdek (6. cikk (1) f)</td>
</tr>
<tr>
<td>
Melyik oldalt nyitottad meg, honnan érkeztél, a böngésződ és az eszközöd típusa, az országod és az oldal
betöltési ideje (látogatottságmérés)
</td>
<td>Hogy lássuk, mennyien nézik az egyes oldalakat, és elég gyors-e az oldal</td>
<td>Jogos érdek (6. cikk (1) f)</td>
</tr>
</tbody>
</table>
</div>
@@ -337,7 +345,8 @@ export default async function PrivacyPage() {
<strong>Cloudflare, Inc.</strong> – a forgalom továbbítása és a támadások elleni védelem; az oldal
letöltésekor kezeli az IP-címedet és a kérés adatait. Az e-mailes regisztrációnál és a jelszókérésnél a
Turnstile szolgáltatásával ellenőrzi, hogy nem gép küldi az űrlapot (ehhez a böngésző jellemzőit is
vizsgálja).
vizsgálja). A Web Analytics szolgáltatásával méri a látogatottságot és az oldal sebességét, süti és a
böngészőben tárolt azonosító nélkül; az egyes látogatókat nem követi.
</li>
<li>
<strong>Google LLC</strong> – bejelentkezés Google-fiókkal.
@@ -406,7 +415,13 @@ export default async function PrivacyPage() {
<p>
A működéshez feltétlenül szükséges sütit használunk (<code>sf_session</code>), amely belépve tart. Ha a
fórumon világos vagy sötét témát választasz, a választásodat egy második süti (<code>sf_forum_theme</code>)
őrzi egy évig; mást nem tárol. Reklám- vagy követő sütiket, illetve látogatottságmérőt nem használunk.
őrzi egy évig; mást nem tárol. Reklám- vagy követő sütiket nem használunk.
</p>
<p>
A látogatottságot a Cloudflare Web Analytics méri, süti és a böngészőben tárolt azonosító nélkül. Az oldal
betöltésekor egy kis szkript elküldi, melyik oldalt nyitottad meg, honnan érkeztél, milyen böngészőt és
eszközt használsz, és mennyi idő alatt töltődött be az oldal. Mi ebből csak összesített számokat látunk, az
egyes látogatókat nem tudjuk követni.
</p>
<p>
A belépés nélküli <Link href="/szuletesi-horoszkop">születési horoszkópnál</Link> a megadott születési adatokat
@@ -0,0 +1,57 @@
"use client";
import { useState } from "react";
import { copyDialog } from "@/components/Dialogs";
import { chromeIntent, type InAppBrowser } from "@/lib/inAppBrowser";
/** "a Facebook", "az Instagram": the Hungarian article, capitalised at the start of a sentence. */
function named(app: string | null): string {
if (!app) return "Egy alkalmazás";
return `${/^[aáeéiíoóöőuúüű]/i.test(app) ? "Az" : "A"} ${app}`;
}
/**
* On the login page inside an app's built-in browser (Facebook and co.):
* why the Google button is missing, and the way out to the phone's own
* browser. On Android a link opens the page in Chrome; on an iPhone only the
* app's own menu can, so the text says where, and the link can be copied.
*/
export function InAppNotice({ browser, url, password }: { browser: InAppBrowser; url: string; password: boolean }) {
const [copied, setCopied] = useState(false);
const where = browser.android ? "a Chrome-ban" : "a böngésződben (Safari)";
async function copy() {
try {
await navigator.clipboard.writeText(url);
setCopied(true);
} catch {
await copyDialog({
title: "A belépési oldal linkje",
text: "Másold ki, és nyisd meg a böngésződben.",
value: url,
});
}
}
return (
<div className="inapp-note" role="note">
<strong>{named(browser.app)} beépített böngészőjében vagy</strong>
<p>
Itt a Google nem engedi a Google-fiókos belépést. {password ? "Lépj be e-mail-címmel, vagy nyisd" : "Nyisd"} meg
az oldalt {where}, ott a Google-fiókoddal is beléphetsz.
{!browser.android && " Ehhez koppints a jobb felső sarokban a ⋯ gombra, és válaszd a megnyitást böngészőben."}
</p>
<div className="inapp-actions">
{browser.android && (
<a className="btn btn-primary" href={chromeIntent(url)}>
Megnyitás Chrome-ban
</a>
)}
<button type="button" className="btn" onClick={() => void copy()}>
{copied ? "Kimásolva" : "Link másolása"}
</button>
</div>
</div>
);
}
+58 -24
View File
@@ -1,4 +1,5 @@
import type { Metadata } from "next";
import { headers } from "next/headers";
import Link from "next/link";
import { redirect } from "next/navigation";
@@ -6,11 +7,14 @@ import { Logo } from "@/components/SiteHeader";
import { ZodiacWheel } from "@/components/ZodiacWheel";
import { BACKEND_URL, getMe } from "@/lib/server";
import { formatDate } from "@/lib/astro";
import { inAppBrowser } from "@/lib/inAppBrowser";
import { contents } from "@/lib/packageContents";
import { siteUrl } from "@/lib/share";
import type { InvitationLanding, PublicConfig } from "@/lib/types";
import { AppleLogin } from "./AppleLogin";
import { GoogleLogin } from "./GoogleLogin";
import { InAppNotice } from "./InAppNotice";
import { PasswordLogin } from "./PasswordLogin";
export const metadata: Metadata = { title: "Belépés" };
@@ -123,6 +127,46 @@ export default async function LoginPage({ searchParams }: { searchParams: Promis
const password = config?.password_login === true;
const mod = Array.isArray(params.mod) ? params.mod[0] : params.mod;
const initialMode = mod === "elfelejtett" ? "forgot" : mod === "regisztracio" || rawToken ? "register" : "login";
// Facebook's and other apps' built-in browsers: Google refuses to sign in
// there, so the e-mail form comes first and the way out to the phone's own
// browser (this same page, with its invitation or referral) is offered.
const inApp = inAppBrowser((await headers()).get("user-agent") ?? "");
const query = new URLSearchParams();
for (const [key, value] of Object.entries(params)) {
for (const v of Array.isArray(value) ? value : [value]) query.append(key, v);
}
const here = `${await siteUrl()}/belepes${query.size ? `?${query}` : ""}`;
const google =
clientId && !inApp ? (
<GoogleLogin clientId={clientId} target={target} inviteToken={pendingInvite} referral={referral} />
) : null;
const apple =
clientId && appleId ? (
<AppleLogin clientId={appleId} target={target} inviteToken={pendingInvite} referral={referral} />
) : null;
const social =
google || apple ? (
<div className="field" style={{ gap: 12 }}>
{google}
{apple}
</div>
) : null;
const passwordForm = password ? (
<PasswordLogin
target={target}
inviteToken={pendingInvite}
referral={referral}
initialMode={initialMode}
turnstileKey={config?.turnstile_site_key ?? null}
/>
) : null;
const or =
social && passwordForm ? (
<div className="auth-or" role="separator">
<span>vagy</span>
</div>
) : null;
return (
<div className="auth">
@@ -149,35 +193,25 @@ export default async function LoginPage({ searchParams }: { searchParams: Promis
{rawToken && (
<InvitationCard invitation={inviteToken ? invitation : null} apple={appleId !== null} password={password} />
)}
{inApp && config !== null && <InAppNotice browser={inApp} url={here} password={password} />}
{config === null ? (
<p className="msg msg-error" role="alert">
A szerver most nem érhető el. Próbáld újra egy kicsit később.
</p>
) : clientId || password ? (
<>
{clientId && (
<div className="field" style={{ gap: 12 }}>
<GoogleLogin clientId={clientId} target={target} inviteToken={pendingInvite} referral={referral} />
{appleId && (
<AppleLogin clientId={appleId} target={target} inviteToken={pendingInvite} referral={referral} />
)}
</div>
)}
{clientId && password && (
<div className="auth-or" role="separator">
<span>vagy</span>
</div>
)}
{password && (
<PasswordLogin
target={target}
inviteToken={pendingInvite}
referral={referral}
initialMode={initialMode}
turnstileKey={config?.turnstile_site_key ?? null}
/>
)}
</>
inApp ? (
<>
{passwordForm}
{or}
{social}
</>
) : (
<>
{social}
{or}
{passwordForm}
</>
)
) : (
<p className="msg msg-error" role="alert">
A Google-belépés még nincs beállítva (a backend <code>GOOGLE_CLIENT_IDS</code> változója üres).
+9 -4
View File
@@ -1034,8 +1034,6 @@ a.pair-row:hover strong { color: var(--gold); }
.lp-caption { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lp-caption .share-trio { justify-content: center; font-size: 15px; }
.lp-asc { color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: 0.5px; }
.lp-rise { opacity: 0; transform: translateY(14px); animation: lp-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.lp-r1 { animation-delay: 0.1s; } .lp-r2 { animation-delay: 0.25s; } .lp-r3 { animation-delay: 0.4s; } .lp-r4 { animation-delay: 0.55s; }
.lp-band { border-top: 1px solid var(--line); padding: 96px 0; }
.lp-alt { background: var(--panel-2); }
@@ -1112,7 +1110,6 @@ body:has(.qdock-fab) .site-footer { padding-bottom: 88px; }
@keyframes lp-fade { to { opacity: 1; } }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-rise { to { opacity: 1; transform: none; } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp-pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.6); opacity: 0.2; } }
@media (max-width: 900px) { .lp-analysis-grid { grid-template-columns: minmax(0, 1fr); } }
@@ -1141,7 +1138,7 @@ body:has(.qdock-fab) .site-footer { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
.lp *, .lp-orbit { animation: none !important; }
.lp-rise, .lp-wheel .w-point { opacity: 1; transform: none; }
.lp-wheel .w-point { opacity: 1; transform: none; }
.lp-wheel .w-aspect { stroke-dashoffset: 0; }
.lp-wheel .w-aspect.w-asp-sextile { opacity: 1; }
}
@@ -1853,3 +1850,11 @@ span.tarot-fan-card { cursor: default; }
.update-note-later { border: 0; background: none; color: var(--ink-2, #c9cfdc); font: inherit; font-size: 14px; cursor: pointer; padding: 6px; }
.update-note-later:hover { color: var(--gold); }
@media (max-width: 479px) { .update-note { flex-wrap: wrap; justify-content: center; text-align: center; } }
/* Login inside Facebook's or another app's built-in browser: why, and the way out. */
.inapp-note {
display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; font-size: 14px;
border: 1px solid rgba(217, 180, 106, 0.45); background: rgba(217, 180, 106, 0.07); border-radius: 10px;
}
.inapp-note p { margin: 0; color: var(--ink-2); }
.inapp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
+13 -1
View File
@@ -124,6 +124,11 @@ const DATA: [string, string, string][] = [
"Security, troubleshooting, preventing abuse",
"Legitimate interest (Art. 6(1)(f))",
],
[
"Which page you opened, where you came from, your browser and device type, your country and how long the page took to load (visitor statistics)",
"Seeing how many people view each page and whether the site is fast enough",
"Legitimate interest (Art. 6(1)(f))",
],
];
/** The privacy policy in English (the Hungarian one at /adatvedelem is the same in content). */
@@ -305,6 +310,8 @@ export default async function PrivacyPolicyPage() {
<strong>Cloudflare, Inc.</strong>: delivering traffic and protecting against attacks; processes your IP
address and request data when the site loads. On the e-mail sign-up and password request forms its
Turnstile service checks that a person, not a script, sends the form (looking at browser features too).
Its Web Analytics service measures visits and page speed without cookies or any identifier stored in the
browser, and does not follow individual visitors.
</li>
<li>
<strong>Google LLC</strong>: signing in with a Google account.
@@ -369,7 +376,12 @@ export default async function PrivacyPolicyPage() {
<p>
We use a cookie that is strictly necessary for the service (<code>sf_session</code>), which keeps you signed
in. If you choose the light or dark theme on the forum, a second cookie (<code>sf_forum_theme</code>) keeps
your choice for a year; it stores nothing else. We use no advertising or tracking cookies and no analytics.
your choice for a year; it stores nothing else. We use no advertising or tracking cookies.
</p>
<p>
Visits are counted by Cloudflare Web Analytics, without cookies or any identifier stored in the browser.
When a page loads, a small script sends which page you opened, where you came from, your browser and device
type, and how long the page took to load. We only see totals and cannot follow individual visitors.
</p>
<p>
On the public birth chart page (no account needed), the birth data you enter are sent only for the
+35
View File
@@ -0,0 +1,35 @@
/**
* The browsers built into apps: Facebook, Messenger, Instagram, TikTok, and
* other Android apps that show pages in their own window (WebView). Google
* does not allow signing in with a Google account in them (its error page
* says "disallowed_useragent"), so the login page offers the e-mail login
* and a way out to the phone's own browser instead.
*/
export interface InAppBrowser {
/** The app's name for the text ("Facebook"); null for an unknown app. */
app: string | null;
android: boolean;
}
export function inAppBrowser(userAgent: string): InAppBrowser | null {
const android = /Android/i.test(userAgent);
let app: string | null = null;
if (/Instagram/i.test(userAgent)) app = "Instagram";
else if (/MessengerForiOS|Orca-Android|FB_IAB\/MESSENGER/i.test(userAgent)) app = "Messenger";
else if (/FBAN|FBAV|FB_IAB|FBIOS|FB4A/.test(userAgent)) app = "Facebook";
else if (/TikTok|musical_ly|Bytedance/i.test(userAgent)) app = "TikTok";
if (app) return { app, android };
// Any other Android app's window: "; wv)" in the browser's name.
if (android && /; wv\)/.test(userAgent)) return { app: null, android };
return null;
}
/**
* A link that opens the page in Chrome on Android, out of the app's window.
* Without Chrome the phone falls back to the same page.
*/
export function chromeIntent(url: string): string {
const u = new URL(url);
const fallback = encodeURIComponent(url);
return `intent://${u.host}${u.pathname}${u.search}#Intent;scheme=${u.protocol.replace(":", "")};package=com.android.chrome;S.browser_fallback_url=${fallback};end`;
}
+2 -2
View File
@@ -18,8 +18,8 @@ export const ARBITRATION_BOARD = {
web: "https://panaszrendezes.hu",
};
export const PRIVACY_UPDATED = "2026. november 26.";
export const PRIVACY_UPDATED_EN = "26 November 2026";
export const PRIVACY_UPDATED = "2026. november 27.";
export const PRIVACY_UPDATED_EN = "27 November 2026";
/** The terms (ÁSZF) in force; the backend records this version with every purchase (TERMS_VERSION). */
export const TERMS_UPDATED = "2026. november 26.";