After improving the design for the web part3
This commit is contained in:
parent
5bff8fb747
commit
3a5ebdeb97
@ -156,14 +156,18 @@ export function LandingPage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="tl-live-grid">
|
||||
<div className="tl-live-col">
|
||||
{typeof activePlayers === 'number' && activePlayers > 0 && (
|
||||
<span className="tl-live-pill">
|
||||
<span className="tl-dot" />
|
||||
{t('landing.live.subtitleWithCount', { count: activePlayers })}
|
||||
</span>
|
||||
)}
|
||||
<div
|
||||
className={`tl-live-grid${
|
||||
typeof activePlayers === 'number' && activePlayers > 0 ? ' tl-live-grid--with-pill' : ''
|
||||
}`}
|
||||
>
|
||||
{typeof activePlayers === 'number' && activePlayers > 0 && (
|
||||
<span className="tl-live-pill">
|
||||
<span className="tl-dot" />
|
||||
{t('landing.live.subtitleWithCount', { count: activePlayers })}
|
||||
</span>
|
||||
)}
|
||||
<div className="tl-live-feed tl-live-feed--activity">
|
||||
<LandingFeedStrip
|
||||
title={t('landing.feeds.activityTitle')}
|
||||
subtitle={t('landing.feeds.activitySubtitle')}
|
||||
@ -173,14 +177,16 @@ export function LandingPage() {
|
||||
accent="#34D399"
|
||||
/>
|
||||
</div>
|
||||
<LandingFeedStrip
|
||||
title={t('landing.feeds.withdrawalsTitle')}
|
||||
subtitle={t('landing.feeds.withdrawalsSubtitle')}
|
||||
rows={withdrawalRows}
|
||||
loading={withdrawalsQ.isLoading}
|
||||
emptyLabel={t('landing.feeds.withdrawalsEmpty')}
|
||||
accent="#D4AF37"
|
||||
/>
|
||||
<div className="tl-live-feed tl-live-feed--withdrawals">
|
||||
<LandingFeedStrip
|
||||
title={t('landing.feeds.withdrawalsTitle')}
|
||||
subtitle={t('landing.feeds.withdrawalsSubtitle')}
|
||||
rows={withdrawalRows}
|
||||
loading={withdrawalsQ.isLoading}
|
||||
emptyLabel={t('landing.feeds.withdrawalsEmpty')}
|
||||
accent="#D4AF37"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -136,7 +136,7 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
|
||||
>
|
||||
<ApkDownloadIcon busy={apkBusy} />
|
||||
</button>
|
||||
<RouterLink to="/login" style={ghostBtnStyle} className="tl-hide-xs">
|
||||
<RouterLink to="/login" style={ghostBtnStyle} className="tl-header-login">
|
||||
{t('landing.nav.login')}
|
||||
</RouterLink>
|
||||
<RouterLink to="/register" style={solidBtnStyle} className="tl-header-register">
|
||||
@ -273,21 +273,23 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
|
||||
}
|
||||
@media (max-width: 899px) {
|
||||
.tl-nav-burger { display: inline-flex !important; align-items: center; justify-content: center; }
|
||||
.tl-hide-xs { display: none !important; }
|
||||
.tl-header-bar { gap: 0.4rem !important; padding: 0.45rem 0.55rem !important; }
|
||||
.tl-header-actions { gap: 4px !important; }
|
||||
.tl-header-register {
|
||||
padding: 0.45rem 0.75rem !important;
|
||||
/* Hero already has Create account — prefer Log in in the bar. */
|
||||
.tl-header-register { display: none !important; }
|
||||
.tl-header-login {
|
||||
color: #04110c !important;
|
||||
background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%) !important;
|
||||
border: 0 !important;
|
||||
box-shadow: 0 10px 30px rgba(16,185,129,0.28);
|
||||
padding: 0.45rem 0.85rem !important;
|
||||
font-size: 0.78rem !important;
|
||||
max-width: 7.5rem;
|
||||
font-weight: 800 !important;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
@media (max-width: 380px) {
|
||||
.tl-header-wordmark { display: none !important; }
|
||||
.tl-header-register { display: none !important; }
|
||||
}
|
||||
`}</style>
|
||||
</header>
|
||||
|
||||
@ -627,20 +627,41 @@
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: clamp(1.1rem, 2vw, 1.75rem);
|
||||
align-items: start;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.tl-live-col {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
min-width: 0;
|
||||
align-content: start;
|
||||
/* Pill sits above Live activity only; both cards share the same row → aligned tops. */
|
||||
.tl-live-grid--with-pill {
|
||||
grid-template-rows: auto 1fr;
|
||||
}
|
||||
|
||||
.tl-live-col .tl-live-pill {
|
||||
.tl-live-grid--with-pill .tl-live-pill {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
justify-self: start;
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.tl-live-grid--with-pill .tl-live-feed--activity {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.tl-live-grid--with-pill .tl-live-feed--withdrawals {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.tl-live-feed {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.tl-live-feed .tl-feed {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.tl-feed {
|
||||
@ -1132,8 +1153,17 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tl-live-grid {
|
||||
.tl-live-grid,
|
||||
.tl-live-grid--with-pill {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: none;
|
||||
}
|
||||
|
||||
.tl-live-grid--with-pill .tl-live-pill,
|
||||
.tl-live-grid--with-pill .tl-live-feed--activity,
|
||||
.tl-live-grid--with-pill .tl-live-feed--withdrawals {
|
||||
grid-column: 1;
|
||||
grid-row: auto;
|
||||
}
|
||||
|
||||
.tl-live-head {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user