Login page: newer design from the canvas
CI / test (push) Successful in 39s
CI / build (push) Successful in 3m35s
CI / deploy (push) Successful in 34s

- wheel with sample planets, ticks and aspect lines
- "Continue with Google" in the site's button style (Google's own
  button lies invisibly on top and still returns the ID token)
- new subtitle and account note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-17 05:51:30 +00:00
co-authored by Claude Opus 5.5
parent 3cfbe439dd
commit 163612e527
4 changed files with 152 additions and 43 deletions
@@ -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 (
<svg className={className} viewBox="0 0 100 100" aria-hidden="true">
<circle cx="50" cy="50" r="49" fill="none" stroke="#2c3654" strokeWidth="0.5" />
<circle cx="50" cy="50" r="38" fill="none" stroke="#2c3654" strokeWidth="0.35" />
<circle cx="50" cy="50" r="24" fill="#0f1426" stroke="#263049" strokeWidth="0.35" />
{GLYPHS.map((_, i) => {
const a = point(i * 30, 38);
const b = point(i * 30, 49);
return <line key={`d${i}`} x1={a.x} y1={a.y} x2={b.x} y2={b.y} stroke="#263049" strokeWidth="0.35" />;
})}
{GLYPHS.map((g, i) => {
const p = point(i * 30 + 15, 43.5);
<circle cx="50" cy="50" r="49.6" fill="none" stroke="#2c3654" strokeWidth="0.35" />
<circle cx="50" cy="50" r="36" fill="none" stroke="#2c3654" strokeWidth="0.25" />
<circle cx="50" cy="50" r="16" fill="#0f1426" stroke="#263049" strokeWidth="0.25" />
{SIGNS.map((g, i) => {
const p = point(i * 30 + 15, 43);
return (
<text
key={g}
@@ -38,18 +76,17 @@ export function ZodiacWheel({ className }: { className?: string }) {
y={p.y}
textAnchor="middle"
dominantBaseline="central"
fontSize="5"
fontSize="6.5"
fill={i % 3 === 0 ? "#d9b46a" : "#5a6790"}
style={{ fontFamily: "var(--font-symbols)" }}
>
{g}
{"︎"}
{g + VS}
</text>
);
})}
{lines.map(({ a, b, hard }) => {
const p = point(a, 24);
const q = point(b, 24);
{aspectLines().map(({ a, b, color, dash }) => {
const p = point(a, 16);
const q = point(b, 16);
return (
<line
key={`${a}-${b}`}
@@ -57,16 +94,33 @@ export function ZodiacWheel({ className }: { className?: string }) {
y1={p.y}
x2={q.x}
y2={q.y}
stroke={hard ? "#f08a4b" : "#7fb0ff"}
strokeWidth="0.4"
strokeDasharray={hard ? undefined : "1.4 0.8"}
opacity="0.8"
stroke={color}
strokeWidth="0.32"
strokeDasharray={dash}
opacity="0.85"
/>
);
})}
{SAMPLE.map((d) => {
const p = point(d, 24);
return <circle key={d} cx={p.x} cy={p.y} r="0.9" fill="#ece6d8" />;
{spread().map(({ g, lon, at }) => {
const t1 = point(lon, 16);
const t2 = point(lon, 19.5);
const p = point(at, 26.5);
return (
<g key={g}>
<line x1={t1.x} y1={t1.y} x2={t2.x} y2={t2.y} stroke="#ece6d8" strokeWidth="0.35" opacity="0.9" />
<text
x={p.x}
y={p.y}
textAnchor="middle"
dominantBaseline="central"
fontSize="5"
fill="#ece6d8"
style={{ fontFamily: "var(--font-symbols)" }}
>
{g + VS}
</text>
</g>
);
})}
</svg>
);