Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
250 changes: 250 additions & 0 deletions NainOrder.Api/wwwroot/assets/css/views.css
Original file line number Diff line number Diff line change
Expand Up @@ -997,9 +997,259 @@

.drop-recent__item { cursor: pointer; }

/* --------------------------------------------------------------------------
Drop landing: a wordless story, 12 s loop
-------------------------------------------------------------------------- */
.landing {
display: grid;
justify-items: center;
gap: var(--space-5);
padding-block: var(--space-4);
text-align: center;
}

.landing__title {
font-size: var(--text-2xl);
font-weight: 750;
letter-spacing: -0.02em;
line-height: var(--leading-tight);
background: var(--brand-gradient);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}

.landing__sub {
max-width: 46ch;
color: var(--text-secondary);
font-size: var(--text-md);
}

.landing__actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-3);
}

.story {
margin: 0;
width: min(100%, 760px);
padding: var(--space-4);
border-radius: var(--radius-lg);
border: 1px solid var(--border-subtle);
background: var(--surface-1);
}

.story__svg {
display: block;
width: 100%;
height: auto;
}

.story__cell {
fill: color-mix(in srgb, var(--success) 18%, transparent);
stroke: var(--success);
stroke-width: 1.5;
}

.story__cell--sold { animation: story-sold 12s infinite; }
.story__cell--back { animation: story-back 12s infinite; }

.story__crowd {
fill: var(--brand-3);
opacity: 0.16;
}

.story__dot {
fill: var(--brand-3);
opacity: 0;
animation: story-walk 12s var(--ease) infinite;
animation-delay: calc(var(--i) * 45ms);
}

@keyframes story-walk {
0% { transform: translate(0, 0); opacity: 0; }
4% { opacity: 1; }
22% { transform: translate(var(--dx), var(--dy)); opacity: 1; }
27%, 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

@keyframes story-sold {
0%, 22% { fill: color-mix(in srgb, var(--success) 18%, transparent); stroke: var(--success); }
28%, 70% { fill: color-mix(in srgb, var(--warning) 38%, transparent); stroke: var(--warning); }
76%, 96% { fill: var(--brand-2); stroke: transparent; }
100% { fill: color-mix(in srgb, var(--success) 18%, transparent); stroke: var(--success); }
}

@keyframes story-back {
0%, 22% { fill: color-mix(in srgb, var(--success) 18%, transparent); stroke: var(--success); }
28%, 50% { fill: color-mix(in srgb, var(--warning) 38%, transparent); stroke: var(--warning); }
56%, 76% { fill: color-mix(in srgb, var(--success) 18%, transparent); stroke: var(--success); }
82%, 96% { fill: var(--brand-2); stroke: transparent; }
100% { fill: color-mix(in srgb, var(--success) 18%, transparent); stroke: var(--success); }
}

.story__captions {
position: relative;
height: 1.6em;
margin-top: var(--space-3);
font-weight: 650;
font-size: var(--text-md);
}

.story__caption {
position: absolute;
inset: 0;
opacity: 0;
animation: story-caption 12s infinite;
animation-delay: calc(var(--n) * 3s);
}

@keyframes story-caption {
0% { opacity: 0; transform: translateY(4px); }
3%, 22% { opacity: 1; transform: none; }
25%, 100% { opacity: 0; }
}

.btn--lg { min-height: 48px; padding-inline: var(--space-5); font-size: var(--text-md); }
.btn--xl { min-height: 64px; padding-inline: var(--space-6); font-size: var(--text-lg); width: 100%; }

/* Roles: one segmented control, two lenses on the same drop */
.seg {
display: inline-flex;
padding: 3px;
border-radius: var(--radius-pill);
border: 1px solid var(--border-default);
background: var(--surface-2);
}

.seg__btn {
padding: var(--space-1) var(--space-4);
border: 0;
border-radius: var(--radius-pill);
background: transparent;
color: var(--text-secondary);
font: inherit;
font-size: var(--text-sm);
cursor: pointer;
}

.seg__btn[aria-pressed="true"] {
background: var(--brand-gradient);
color: #fff;
font-weight: 650;
}

.buyer {
display: grid;
gap: var(--space-5);
max-width: 520px;
margin-inline: auto;
width: 100%;
}

.buyer__scarcity {
display: grid;
justify-items: center;
gap: var(--space-2);
}

.buyer__count {
font-size: 4.5rem;
font-weight: 800;
line-height: 1;
color: var(--success);
}

.buyer__scarcity small { color: var(--text-muted); }
.buyer__scarcity .drop__hold-bar { width: 100%; }
.buyer__scarcity .drop__hold-bar i { background: var(--success); }

.organizer {
display: grid;
gap: var(--space-5);
}

.organizer__pulse {
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
gap: var(--space-4);
}

.organizer__chart,
.organizer__next {
padding: var(--space-3) var(--space-4);
border-radius: var(--radius-md);
border: 1px solid var(--border-subtle);
background: var(--surface-2);
}

.organizer__label {
font-size: var(--text-xs);
color: var(--text-muted);
}

.organizer__value {
font-size: var(--text-xl);
font-weight: 650;
}

.spark {
display: block;
width: 100%;
height: 56px;
}

.spark__line {
fill: none;
stroke: var(--brand-2);
stroke-width: 1.8;
vector-effect: non-scaling-stroke;
}

.spark__area { fill: color-mix(in srgb, var(--brand-2) 20%, transparent); stroke: none; }

/* Language switch in the top bar */
.lang {
display: inline-flex;
border-radius: var(--radius-pill);
border: 1px solid var(--border-default);
overflow: hidden;
}

.lang__btn {
padding: var(--space-1) var(--space-3);
border: 0;
background: transparent;
color: var(--text-secondary);
font: inherit;
font-size: var(--text-xs);
font-weight: 650;
cursor: pointer;
}

.lang__btn[aria-pressed="true"] {
background: var(--surface-3);
color: var(--text-primary);
}

@media (max-width: 620px) {
.organizer__pulse { grid-template-columns: 1fr; }
.drop__head .seg { width: 100%; }
.seg__btn { flex: 1; }
}

/* Reduced motion: the story shows its end state, still */
@media (prefers-reduced-motion: reduce) {
.race__tile { animation: none; }
.drop__cell, .drop__hold-bar i { transition: none; }

.story__cell--sold,
.story__cell--back { animation: none; fill: var(--brand-2); stroke: transparent; }
.story__dot { animation: none; opacity: 0; }
.story__caption { animation: none; opacity: 0; }
.story__caption:last-child { opacity: 1; }
}

@media (max-width: 620px) {
Expand Down
Loading
Loading