Put trading and giving up front and suggest the players who need each card
The Échanges et dons page now opens on two illustrated tiles, centred and 360 px wide at most: trade (L'Échange Écarlate) and give (the Dawn card, renamed Le Don de l'Aube with a gift story). Each counts the cards missing on either side and previews a few. In the composer, the most useful players come first in the list and as suggested chips, and missing duplicates lead with a badge; nothing is filtered, so owned duplicates stay tradeable for Awakenings. GET /api/cards/traders adds `wants`: which of the viewer's own duplicates each player lacks, and nothing else of their collection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2f3c371d7b
commit
17e5cd5e63
12 changed files with 302 additions and 46 deletions
|
|
@ -1034,9 +1034,27 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
|
|||
.nebula-admin-layout h2 { margin-top: 0; }
|
||||
.nebula-form { display: grid; gap: var(--space-3); }
|
||||
.nebula-form-help { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-xs); }
|
||||
.nebula-transfers { display: grid; gap: var(--space-5); min-width: 0; }
|
||||
.nebula-transfers { container: transfers / inline-size; display: grid; gap: var(--space-5); min-width: 0; }
|
||||
.nebula-transfers-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: var(--space-4); }
|
||||
.nebula-transfers-finished { margin-top: var(--space-3); }
|
||||
// Accueil des échanges : deux tuiles (échanger en or, donner) de 360 px au plus, côte à côte dès 620 px de panneau et
|
||||
// centrées, l'illustration de L'Échange Écarlate ou du Don de l'Aube en bandeau 2:1, fondue vers le texte. La largeur
|
||||
// est plafonnée pour que le bandeau garde les visages des personnages.
|
||||
.nebula-transfer-actions { display: grid; grid-template-columns: minmax(0, 360px); justify-content: center; gap: var(--space-4); }
|
||||
.nds-card.nebula-transfer-action { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
|
||||
.nds-card.nebula-transfer-action[data-kind="trade"] { border-color: rgba(246, 196, 83, 0.45); }
|
||||
.nebula-transfer-action-cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 30%; mask-image: linear-gradient(to bottom, #000 60%, transparent); }
|
||||
.nebula-transfer-action-body { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: var(--space-2); padding: 0 var(--space-5) var(--space-5); }
|
||||
.nebula-transfer-action-body h3 { margin: 0; font-size: var(--font-size-lg); }
|
||||
.nebula-transfer-action-body p { margin: 0; color: var(--color-text-muted); font-size: var(--font-size-sm); }
|
||||
.nebula-transfer-action-body .nebula-transfer-action-hint { color: var(--color-text); font-weight: 600; }
|
||||
.nebula-transfer-action-body .nebula-transfer-action-hint[data-found] { color: var(--color-accent-gold); }
|
||||
.nebula-transfer-action-cards { display: flex; gap: var(--space-1); }
|
||||
.nebula-transfer-action-cards > .nebula-card { width: 44px; }
|
||||
.nebula-transfer-action-body > .nds-button { margin-top: var(--space-2); }
|
||||
@container transfers (min-width: 620px) {
|
||||
.nebula-transfer-actions { grid-template-columns: repeat(2, minmax(0, 360px)); }
|
||||
}
|
||||
.nds-card.nebula-transfer-card { display: grid; gap: var(--space-3); padding: var(--space-4); }
|
||||
.nebula-transfer-card header, .nebula-transfer-card footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
|
||||
.nebula-transfer-card footer { justify-content: flex-end; }
|
||||
|
|
@ -1049,6 +1067,10 @@ main:has(.nebula-dashboard) { overflow-x: clip; }
|
|||
.nebula-trade-composer.nds-modal { box-sizing: border-box; display: grid; gap: var(--space-3); width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
|
||||
.nebula-trade-composer h2 { margin: 0; }
|
||||
.nds-section-heading.nebula-section-heading:has(.nds-radio-button-group) { flex-wrap: wrap; margin-bottom: 0; }
|
||||
.nebula-trade-recipient { display: grid; gap: var(--space-2); }
|
||||
.nebula-trade-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
|
||||
.nebula-trade-suggestions > span { color: var(--color-text-muted); font-size: var(--font-size-xs); }
|
||||
.nebula-trade-suggestions .nds-chip { grid-auto-flow: column; }
|
||||
.nebula-trade-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
|
||||
.nebula-trade-columns[data-type="trade"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
|
||||
.nebula-trade-picker { display: grid; align-content: start; gap: var(--space-2); min-width: 0; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue