Belépés…
} +{error} diff --git a/services/frontend/src/app/belepes/page.tsx b/services/frontend/src/app/belepes/page.tsx index 1ce57e1..5e1da3d 100644 --- a/services/frontend/src/app/belepes/page.tsx +++ b/services/frontend/src/app/belepes/page.tsx @@ -47,7 +47,7 @@ export default async function LoginPage({ searchParams }: { searchParams: Promis
Lépj be a Google-fiókoddal. Ha még nincs fiókod, az első belépéskor létrejön.
+Üdv újra! Lépj be a fiókodba.
@@ -60,6 +60,7 @@ export default async function LoginPage({ searchParams }: { searchParams: Promis
A Google-belépés még nincs beállítva (a backend GOOGLE_CLIENT_IDS változója üres).
Még nincs fiókod? Az első belépéskor létrejön.
A belépéssel elfogadod, hogy a születési adataidat a képleted kiszámításához tároljuk. Bármikor törölheted őket a profilodban. diff --git a/services/frontend/src/app/globals.css b/services/frontend/src/app/globals.css index 54322bb..5e25197 100644 --- a/services/frontend/src/app/globals.css +++ b/services/frontend/src/app/globals.css @@ -143,9 +143,27 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } } .auth-main { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; } .auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 28px; } -.wheel { width: min(380px, 80%); aspect-ratio: 1; margin: 0 auto; } -.tagline { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1.1; } -.gsi-slot { min-height: 44px; display: flex; justify-content: center; } +.wheel { width: min(440px, 80%); aspect-ratio: 1; margin: 0 auto; } +.tagline { font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1.1; } +.auth-foot { font-size: 15px; color: var(--muted); text-align: center; } + +/* Social login buttons; Google's own button lies invisibly on top (.gsi-overlay). */ +.social-login { position: relative; } +.btn-social { + position: relative; width: 100%; min-height: 48px; padding: 0 52px; + display: flex; align-items: center; justify-content: center; gap: 12px; + border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; + color: var(--ink); font: 500 15px var(--font-body); +} +.btn-social-icon { position: absolute; left: 16px; top: 50%; margin-top: -10px; width: 20px; height: 20px; display: flex; } +.social-login:hover .btn-social { border-color: #5a6790; background: rgba(255, 255, 255, 0.03); } +.social-login:focus-within .btn-social { outline: 2px solid var(--gold); outline-offset: 2px; } +.social-login[data-ready="false"] .btn-social { opacity: 0.6; } +.gsi-overlay { + position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; + opacity: 0.001; overflow: hidden; cursor: pointer; +} +.gsi-overlay > div, .gsi-overlay iframe { transform: scale(1.06, 1.2); } /* Detailed analysis */ .analysis-card { gap: 14px; } diff --git a/services/frontend/src/components/ZodiacWheel.tsx b/services/frontend/src/components/ZodiacWheel.tsx index ac36294..051bb2d 100644 --- a/services/frontend/src/components/ZodiacWheel.tsx +++ b/services/frontend/src/components/ZodiacWheel.tsx @@ -1,36 +1,74 @@ -// Decorative zodiac wheel for the login page (pure SVG, no data needed). +// Decorative chart wheel for the login page (pure SVG, sample sky from the design canvas). -const GLYPHS = ["♈", "♉", "♊", "♋", "♌", "♍", "♎", "♏", "♐", "♑", "♒", "♓"]; -// A few planets of a sample sky, for the aspect lines in the middle. -const SAMPLE = [12, 75, 131, 200, 247, 302, 338]; +const SIGNS = ["♈", "♉", "♊", "♋", "♌", "♍", "♎", "♏", "♐", "♑", "♒", "♓"]; +const ASC = 182.73; +const PLANETS: [string, number][] = [ + ["☉", 53.61], + ["☽", 204.02], + ["☿", 46.72], + ["♀", 62.71], + ["♂", 334.49], + ["♃", 311.71], + ["♄", 80.06], + ["♅", 199.7], + ["♆", 246.42], + ["♇", 181.88], +]; +// angle, orb, colour, dash (conjunctions are not drawn) +const ASPECTS: [number, number, string, string | undefined][] = [ + [0, 7, "", undefined], + [60, 5, "#7fb0ff", "1.2 1"], + [90, 6, "#f08a4b", undefined], + [120, 6, "#7fb0ff", undefined], + [180, 7, "#f08a4b", "1.8 1"], +]; +const VS = "︎"; // text presentation, not emoji -function point(deg: number, r: number) { - const t = ((180 - deg) * Math.PI) / 180; +const norm = (a: number) => ((a % 360) + 360) % 360; + +function point(lon: number, r: number) { + const t = ((180 + lon - ASC) * Math.PI) / 180; return { x: 50 + r * Math.cos(t), y: 50 - r * Math.sin(t) }; } -export function ZodiacWheel({ className }: { className?: string }) { - const lines: { a: number; b: number; hard: boolean }[] = []; - SAMPLE.forEach((a, i) => - SAMPLE.slice(i + 1).forEach((b) => { - let d = Math.abs(a - b) % 360; +/** Glyph positions pushed at least 12° apart. */ +function spread(): { g: string; lon: number; at: number }[] { + const out = PLANETS.map(([g, lon]) => ({ g, lon, at: lon })).sort((a, b) => a.at - b.at); + for (let it = 0; it < 14; it++) { + for (let k = 0; k < out.length; k++) { + const a = out[k]; + const b = out[(k + 1) % out.length]; + const gap = norm(b.at - a.at); + if (gap < 12) { + a.at -= (12 - gap) / 2; + b.at += (12 - gap) / 2; + } + } + } + return out; +} + +function aspectLines() { + const lines: { a: number; b: number; color: string; dash?: string }[] = []; + PLANETS.forEach(([, a], i) => + PLANETS.slice(i + 1).forEach(([, b]) => { + let d = Math.abs(norm(a) - norm(b)); if (d > 180) d = 360 - d; - if (Math.abs(d - 120) < 8 || Math.abs(d - 60) < 6) lines.push({ a, b, hard: false }); - else if (Math.abs(d - 90) < 7 || Math.abs(d - 180) < 8) lines.push({ a, b, hard: true }); + const hit = ASPECTS.find(([angle, orb]) => Math.abs(d - angle) <= orb); + if (hit && hit[0] > 0) lines.push({ a, b, color: hit[2], dash: hit[3] }); }), ); + return lines; +} + +export function ZodiacWheel({ className }: { className?: string }) { return ( );