Rework the pending expedition card in two columns with a larger landscape, a clear outcome summary, card-sized slots and a one-hour default recruitment
A pending expedition now spans the full width in two columns: the destination landscape, the members as small cards with free slots of the same size, and the departure buttons on the left; the departure countdown with its time and progress bar, the projected outcome, powers and bonuses in small tiles, a recap of the destination's requirements against the team's stats, and the invite link on the right. The outcome tile shows the tier, the score and a sentence on how the tier changes the loot. Pending, running and finished expeditions use the destination landscape instead of the old cover card, and the default recruitment period drops from 12 hours to one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a38d4fd02a
commit
9b9d64fd01
9 changed files with 229 additions and 44 deletions
|
|
@ -14,6 +14,9 @@
|
|||
.nebula-expedition-reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-4); }
|
||||
.nds-card.nebula-expedition-report { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-4); }
|
||||
.nds-card-cover.nebula-expedition-report-cover { width: 88px; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius-md); }
|
||||
// Paysage de la destination, dans le coup de pinceau, à la place de la carte de couverture.
|
||||
.nebula-expedition-report-cover[data-scene] { width: 200px; }
|
||||
.nebula-expedition-report-cover[data-scene] img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
||||
.nebula-expedition-report-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
||||
.nds-card-body.nebula-expedition-report-body { display: grid; gap: var(--space-2); justify-items: start; min-width: 0; padding: 0; }
|
||||
.nebula-expedition-report-body p { margin: 0; }
|
||||
|
|
@ -163,13 +166,76 @@
|
|||
.nebula-admin-expedition-destinations .nds-list-row > .nds-button { flex: 0 0 auto; width: auto; }
|
||||
|
||||
// Expédition ouverte : membres avec leur carte (places libres en pointillés), inscription sous sa carte.
|
||||
.nebula-expedition-group h4 { margin: 0; }
|
||||
.nebula-expedition-group-members { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
|
||||
// Expédition en préparation : toute la largeur, paysage plus grand, participants en cartes `sm` et places libres de même taille.
|
||||
// Expédition en préparation, sur toute la largeur, en deux colonnes (40 %, 60 %) : à gauche le paysage, l'équipe et les boutons de
|
||||
// départ ; à droite les informations (départ automatique avec sa barre, résultat prévu), le rappel des exigences et le lien
|
||||
// d'invitation. L'une sous l'autre en écran étroit.
|
||||
.nebula-expedition-reports > .nebula-expedition-group { grid-column: 1 / -1; }
|
||||
.nds-card.nebula-expedition-group { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-4) var(--space-6); align-items: start; padding: var(--space-5); }
|
||||
.nebula-group-side { display: grid; gap: var(--space-3); min-width: 0; }
|
||||
// Colonne d'informations aérée : un bloc par sujet, bien espacés.
|
||||
.nebula-group-main { display: grid; gap: var(--space-5); min-width: 0; }
|
||||
.nebula-group-heading { display: grid; gap: var(--space-1); }
|
||||
.nebula-expedition-group .nebula-expedition-report-cover[data-scene] { width: 100%; }
|
||||
.nebula-group-main h4, .nebula-group-main p { margin: 0; }
|
||||
.nebula-group-deadline { display: grid; gap: var(--space-1); max-width: 520px; color: var(--color-text-primary); font-size: var(--font-size-sm); }
|
||||
// Résultat prévu, butin, pouvoirs et bonus : de petits encarts côte à côte, intitulé au-dessus de la valeur.
|
||||
.nebula-group-outcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); margin: 0; }
|
||||
.nebula-group-outcome > div { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
|
||||
.nebula-group-outcome dt, .nebula-group-team h5, .nebula-group-recap h5 { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
|
||||
// Résultat prévu : le palier à gauche, le score en grand à droite ; dessous, une phrase sur l'effet du palier sur le butin.
|
||||
.nebula-group-tier-line { display: flex; flex-basis: 100%; align-items: center; justify-content: space-between; gap: var(--space-3); }
|
||||
.nebula-group-score { display: inline-flex; align-items: baseline; gap: 0.35em; }
|
||||
.nebula-group-score strong { color: var(--color-text-primary); font-size: var(--font-size-lg); font-variant-numeric: tabular-nums; }
|
||||
.nebula-group-score small { color: var(--color-text-secondary); font-size: var(--font-size-xs); }
|
||||
.nebula-group-outcome dd .nebula-group-tier-loot { flex-basis: 100%; margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); }
|
||||
.nebula-group-tier-loot strong[data-trend="up"] { color: var(--color-success); }
|
||||
.nebula-group-tier-loot strong[data-trend="down"] { color: var(--color-danger); }
|
||||
.nebula-group-outcome dd { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; color: var(--color-text-primary); font-size: var(--font-size-sm); }
|
||||
.nebula-group-team { display: grid; gap: var(--space-2); min-width: 0; }
|
||||
.nebula-group-team .nebula-form-help { margin: 0; }
|
||||
// Les places du groupe tiennent sur une rangée, en se resserrant (118 px au plus, la taille d'une carte `sm`).
|
||||
.nebula-group-team .nebula-expedition-group-members { display: grid; grid-template-columns: repeat(4, minmax(0, 118px)); }
|
||||
.nebula-group-team .nebula-expedition-group-members li { width: auto; }
|
||||
@media (max-width: 520px) {
|
||||
.nebula-group-team .nebula-expedition-group-members { grid-template-columns: repeat(2, minmax(0, 118px)); }
|
||||
}
|
||||
.nebula-group-main > .nebula-expedition-invite { max-width: 640px; }
|
||||
.nebula-expedition-invite .nds-button { flex: 0 0 auto; white-space: nowrap; }
|
||||
// Écran étroit : une seule colonne, les deux colonnes s'effacent (`display: contents`) pour remettre les blocs dans l'ordre de lecture.
|
||||
@media (max-width: 960px) {
|
||||
.nds-card.nebula-expedition-group { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
|
||||
.nebula-group-side, .nebula-group-main { display: contents; }
|
||||
.nebula-expedition-group .nebula-group-side > .nebula-expedition-report-cover[data-scene] { order: 1; }
|
||||
// Chaque bloc prend toute la largeur.
|
||||
.nebula-group-deadline, .nebula-group-main > .nebula-expedition-invite { max-width: none; }
|
||||
.nebula-group-main > :not(.nebula-group-recap, .nebula-expedition-invite) { order: 2; }
|
||||
.nebula-group-team { order: 3; }
|
||||
.nebula-group-recap { order: 4; }
|
||||
.nebula-group-side > .nebula-expedition-group-actions { order: 5; }
|
||||
.nebula-group-main > .nebula-expedition-invite { order: 6; }
|
||||
}
|
||||
.nebula-expedition-group-members { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
|
||||
.nebula-expedition-group-members li, .nebula-expedition-report-team li { width: 118px; }
|
||||
@media (max-width: 640px) {
|
||||
.nds-card.nebula-expedition-report { grid-template-columns: minmax(0, 1fr); }
|
||||
.nebula-expedition-report-cover[data-scene], .nebula-expedition-group .nebula-expedition-report-cover[data-scene] { width: 100%; }
|
||||
}
|
||||
.nebula-expedition-group-members li, .nebula-expedition-report-team li { min-width: 0; }
|
||||
.nebula-expedition-group-members li { display: grid; gap: var(--space-1); justify-items: center; color: var(--color-text-secondary); font-size: var(--font-size-xs); text-align: center; }
|
||||
.nebula-expedition-group-members li span { display: grid; }
|
||||
.nebula-expedition-group-members strong { color: var(--color-text-primary); }
|
||||
.nebula-expedition-group-free { display: grid; place-items: center; min-width: 96px; min-height: 64px; padding: var(--space-2); border: 1px dashed var(--color-border); border-radius: var(--radius-md); }
|
||||
.nebula-expedition-group-free { display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 7; padding: var(--space-2); border: 2px dashed var(--color-border); border-radius: 16px; background: rgba(0, 0, 0, 0.18); }
|
||||
// Rappel des exigences d'une expédition en préparation : une ligne par stat, puis condition et dangers, pouce vert ou rouge.
|
||||
.nebula-group-recap { display: grid; gap: var(--space-3); width: 100%; box-sizing: border-box; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.18); }
|
||||
.nebula-group-recap-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
|
||||
// Condition et dangers, sous les stats, séparés par un filet.
|
||||
.nebula-group-recap-list[data-kind="hazards"] { gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
|
||||
.nebula-group-recap-row { display: flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-sm); }
|
||||
.nebula-group-recap-name { display: inline-flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 0 0.35em; min-width: 0; color: var(--color-text-primary); }
|
||||
.nebula-group-recap-name small { flex-basis: 100%; color: var(--color-text-secondary); font-size: var(--font-size-xs); }
|
||||
.nebula-group-recap-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.nebula-group-recap-row strong[data-met="true"] { color: var(--color-success); }
|
||||
.nebula-group-recap-row strong[data-met="false"] { color: var(--color-danger); }
|
||||
.nebula-expedition-group-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||||
.nebula-expedition-join { display: grid; gap: var(--space-3); justify-self: stretch; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue