// Decorative chart wheel for the login page (pure SVG, sample sky from the design canvas). 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 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) }; } /** 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; 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 ( ); }