Packages: from one analysis to unlimited, admin can give them
A fixed catalog (packages.rs, reasoning in docs/csomagok.md): Egy elemzés
2 990 Ft, Páros 6 990 Ft, Család 11 990 Ft (featured), Korlátlan 17 990 Ft
for a year, and two top-ups. Every grant is a package_orders row; units are
credit_ledger rows with reason 'package' and never expire. The unlimited
package is a time-limited 'unlimited' entitlement: analyses use no unit and
persons have no limit, with a daily fair-use cap (UNLIMITED_DAILY_LIMIT, 5);
buying it again extends it by a year.
- GET /v1/packages, mock payment by package id, /v1/me unlimited_until
- POST /v1/admin/users/{id}/packages: give a package as a gift
- /csomagok page; the paid step of an analysis offers three packages with
the bigger one featured; person packs use the catalog; admin user list
has a package column
- PERSON_PACK_SIZE is replaced by the catalog's +5 személy top-up
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -216,8 +216,8 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
@media (max-width: 640px) { .loading { flex-direction: column; text-align: center; } }
|
||||
|
||||
/* Payment step */
|
||||
.pay-box { display: flex; flex-direction: column; gap: 16px; padding: 20px; max-width: 520px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel-2); }
|
||||
.pay-line { display: flex; justify-content: space-between; gap: 12px; }
|
||||
.pay-box { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel-2); }
|
||||
.pay-lead { margin: 0; }
|
||||
.chart-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 24px; align-items: stretch; }
|
||||
.chart-side { gap: 16px; }
|
||||
.chart-side .summary-card { flex: 1 1 auto; }
|
||||
@@ -353,13 +353,6 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.person-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 0 12px 12px; border-top: 1px solid var(--line); padding-top: 8px; margin: 0 8px; }
|
||||
.btn-danger { border-color: var(--danger); color: var(--danger); }
|
||||
.btn-danger:hover { background: rgba(242, 160, 160, 0.08); color: var(--danger); border-color: var(--danger); }
|
||||
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
|
||||
.pack {
|
||||
display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px 18px;
|
||||
background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius);
|
||||
}
|
||||
.pack strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
|
||||
.pack .btn { margin-top: 8px; }
|
||||
|
||||
/* Chart switcher (the chart page title) */
|
||||
.switcher { position: relative; align-self: flex-start; }
|
||||
@@ -517,3 +510,42 @@ a.pair-row:hover strong { color: var(--gold); }
|
||||
.nav a { white-space: nowrap; padding: 10px 9px; }
|
||||
.cross-grid td.cross-corner { min-width: 56px; font-size: 9px; }
|
||||
}
|
||||
|
||||
/* Packages */
|
||||
.pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
|
||||
.pkg-grid-compact { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
|
||||
.pkg {
|
||||
position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px;
|
||||
background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
|
||||
}
|
||||
.pkg-grid-compact .pkg { padding: 18px 16px 16px; gap: 8px; background: var(--panel-2); }
|
||||
.pkg-featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 12px 32px rgba(217, 180, 106, 0.12); }
|
||||
.pkg-tags { display: flex; gap: 6px; min-height: 22px; flex-wrap: wrap; }
|
||||
.pkg-badge, .pkg-save {
|
||||
display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px;
|
||||
font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
|
||||
}
|
||||
.pkg-badge { background: var(--gold); color: var(--gold-ink); }
|
||||
.pkg-save { border: 1px solid rgba(159, 216, 176, 0.5); color: var(--ok); }
|
||||
.pkg-name { font-size: 26px; }
|
||||
.pkg-grid-compact .pkg-name { font-size: 22px; }
|
||||
.pkg-tagline { margin: 0; font-size: 14px; min-height: 42px; }
|
||||
.pkg-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
|
||||
.pkg-price strong { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink); }
|
||||
.pkg-grid-compact .pkg-price strong { font-size: 26px; }
|
||||
.pkg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); flex: 1; }
|
||||
.pkg-list li { padding-left: 22px; position: relative; }
|
||||
.pkg-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }
|
||||
.pkg-per { margin: 0; }
|
||||
.pkg-step { margin: 0; font-size: 13px; color: var(--gold); }
|
||||
.pkg .btn { margin-top: 4px; width: 100%; }
|
||||
.holdings { gap: 6px; padding: 16px 20px; }
|
||||
.holdings p { margin: 0; color: var(--ink-2); }
|
||||
.faq { margin: 0; display: flex; flex-direction: column; gap: 14px; }
|
||||
.faq dt { font-weight: 600; margin-bottom: 4px; }
|
||||
.faq dd { margin: 0; }
|
||||
@media (max-width: 1000px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@media (max-width: 640px) {
|
||||
.pkg-grid, .pkg-grid-compact { grid-template-columns: 1fr; }
|
||||
.pkg-tagline { min-height: 0; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user