Chart page with a drawn wheel; reuse saved charts for identical birth data

- New /kepletek/[id] page: chart wheel (SVG), big three, elements,
  modalities, moon phase, positions and an aspects table. /keplet opens
  the user's own chart; the home page goes there after login.
- The profile only shows the birth data, with a link to the chart.
- Saving the same birth data again returns the stored chart (200)
  instead of calculating a new one.
- Charts without a birth time (angles null) render without houses.

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-16 06:37:59 +00:00
co-authored by Claude Opus 5.5
parent 1f177f859e
commit e789e5a981
15 changed files with 675 additions and 93 deletions
+49 -1
View File
@@ -13,6 +13,8 @@
--gold-ink: #141a2c;
--danger: #f2a0a0;
--ok: #9fd8b0;
--harmonic: #7fb0e0;
--tense: #e38b8b;
--radius: 10px;
--font-display: var(--font-cormorant), "Cormorant Garamond", Georgia, serif;
--font-body: var(--font-inter), Inter, system-ui, sans-serif;
@@ -145,6 +147,51 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.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; }
/* Chart page */
.chart-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.chart-wheel-card { padding: 16px; gap: 10px; }
.chart-wheel { width: 100%; height: auto; display: block; max-width: 680px; margin: 0 auto; }
.chart-layout .big3 { grid-template-columns: 1fr; }
.wheel-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; justify-content: center; }
.legend-line { display: inline-block; width: 22px; height: 2px; border-radius: 1px; margin-left: 6px; }
.legend-harmonic { background: var(--harmonic); }
.legend-tense { background: var(--tense); }
.aspect-tag { white-space: nowrap; }
.aspect-harmonic { color: var(--harmonic); }
.aspect-tense { color: var(--tense); }
.aspect-neutral { color: var(--gold); }
.w-ring { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.w-faint { stroke: var(--line); }
.w-inner { fill: var(--panel-2); }
.w-sign { stroke: var(--line-2); stroke-width: 1; }
.w-fire { fill: rgba(227, 139, 106, 0.09); }
.w-earth { fill: rgba(159, 216, 176, 0.07); }
.w-air { fill: rgba(217, 180, 106, 0.08); }
.w-water { fill: rgba(127, 176, 224, 0.09); }
.w-sign-glyph { fill: var(--gold); font-family: var(--font-symbols); font-size: 22px; }
.w-tick { stroke: var(--line-2); stroke-width: 1; }
.w-cusp { stroke: var(--line-2); stroke-width: 1; }
.w-axis { stroke: var(--gold); stroke-width: 1.8; }
.w-axis-label { fill: var(--gold); font: 600 14px var(--font-body); letter-spacing: 0.5px; }
.w-house-num { fill: var(--muted); font: 500 12px var(--font-body); }
.w-aspect { stroke-linecap: round; }
.w-harmonic { stroke: var(--harmonic); }
.w-tense { stroke: var(--tense); }
.w-neutral { stroke: var(--gold); }
.w-point-tick { stroke: var(--ink); stroke-width: 1.6; }
.w-leader { stroke: var(--muted); stroke-width: 0.7; stroke-opacity: 0.6; }
.w-point-glyph { fill: var(--ink); font-family: var(--font-symbols); font-size: 22px; }
.w-point-deg { fill: var(--muted); font: 500 10.5px var(--font-body); }
.w-end { fill: var(--ink-2); }
.w-point-glyph, .w-point-deg, .w-house-num, .w-axis-label { paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.w-point:hover .w-point-glyph { fill: var(--gold); }
@media (max-width: 900px) {
.chart-layout { grid-template-columns: 1fr; }
.chart-layout .big3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
h1 { font-size: 32px; }
.site-header { padding: 10px 16px; gap: 12px; }
@@ -152,7 +199,8 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card { padding: 18px; }
.auth-aside { padding: 28px 20px; min-height: 0; }
.wheel { width: 60%; }
.big3 { grid-template-columns: 1fr; }
.big3, .chart-layout .big3 { grid-template-columns: 1fr; }
.chart-wheel-card { padding: 8px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }