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>
|
</div>
|
||||||
|
|
||||||
<div className="tl-live-grid">
|
<div
|
||||||
<div className="tl-live-col">
|
className={`tl-live-grid${
|
||||||
|
typeof activePlayers === 'number' && activePlayers > 0 ? ' tl-live-grid--with-pill' : ''
|
||||||
|
}`}
|
||||||
|
>
|
||||||
{typeof activePlayers === 'number' && activePlayers > 0 && (
|
{typeof activePlayers === 'number' && activePlayers > 0 && (
|
||||||
<span className="tl-live-pill">
|
<span className="tl-live-pill">
|
||||||
<span className="tl-dot" />
|
<span className="tl-dot" />
|
||||||
{t('landing.live.subtitleWithCount', { count: activePlayers })}
|
{t('landing.live.subtitleWithCount', { count: activePlayers })}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
<div className="tl-live-feed tl-live-feed--activity">
|
||||||
<LandingFeedStrip
|
<LandingFeedStrip
|
||||||
title={t('landing.feeds.activityTitle')}
|
title={t('landing.feeds.activityTitle')}
|
||||||
subtitle={t('landing.feeds.activitySubtitle')}
|
subtitle={t('landing.feeds.activitySubtitle')}
|
||||||
@ -173,6 +177,7 @@ export function LandingPage() {
|
|||||||
accent="#34D399"
|
accent="#34D399"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="tl-live-feed tl-live-feed--withdrawals">
|
||||||
<LandingFeedStrip
|
<LandingFeedStrip
|
||||||
title={t('landing.feeds.withdrawalsTitle')}
|
title={t('landing.feeds.withdrawalsTitle')}
|
||||||
subtitle={t('landing.feeds.withdrawalsSubtitle')}
|
subtitle={t('landing.feeds.withdrawalsSubtitle')}
|
||||||
@ -183,6 +188,7 @@ export function LandingPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{/* Why — three numbered columns */}
|
{/* Why — three numbered columns */}
|
||||||
|
|||||||
@ -136,7 +136,7 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
|
|||||||
>
|
>
|
||||||
<ApkDownloadIcon busy={apkBusy} />
|
<ApkDownloadIcon busy={apkBusy} />
|
||||||
</button>
|
</button>
|
||||||
<RouterLink to="/login" style={ghostBtnStyle} className="tl-hide-xs">
|
<RouterLink to="/login" style={ghostBtnStyle} className="tl-header-login">
|
||||||
{t('landing.nav.login')}
|
{t('landing.nav.login')}
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
<RouterLink to="/register" style={solidBtnStyle} className="tl-header-register">
|
<RouterLink to="/register" style={solidBtnStyle} className="tl-header-register">
|
||||||
@ -273,21 +273,23 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
|
|||||||
}
|
}
|
||||||
@media (max-width: 899px) {
|
@media (max-width: 899px) {
|
||||||
.tl-nav-burger { display: inline-flex !important; align-items: center; justify-content: center; }
|
.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-bar { gap: 0.4rem !important; padding: 0.45rem 0.55rem !important; }
|
||||||
.tl-header-actions { gap: 4px !important; }
|
.tl-header-actions { gap: 4px !important; }
|
||||||
.tl-header-register {
|
/* Hero already has Create account — prefer Log in in the bar. */
|
||||||
padding: 0.45rem 0.75rem !important;
|
.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;
|
font-size: 0.78rem !important;
|
||||||
max-width: 7.5rem;
|
font-weight: 800 !important;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 380px) {
|
@media (max-width: 380px) {
|
||||||
.tl-header-wordmark { display: none !important; }
|
.tl-header-wordmark { display: none !important; }
|
||||||
.tl-header-register { display: none !important; }
|
|
||||||
}
|
}
|
||||||
`}</style>
|
`}</style>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
@ -627,20 +627,41 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: clamp(1.1rem, 2vw, 1.75rem);
|
gap: clamp(1.1rem, 2vw, 1.75rem);
|
||||||
align-items: start;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tl-live-col {
|
/* Pill sits above Live activity only; both cards share the same row → aligned tops. */
|
||||||
display: grid;
|
.tl-live-grid--with-pill {
|
||||||
gap: 0.75rem;
|
grid-template-rows: auto 1fr;
|
||||||
min-width: 0;
|
|
||||||
align-content: start;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tl-live-col .tl-live-pill {
|
.tl-live-grid--with-pill .tl-live-pill {
|
||||||
|
grid-column: 1;
|
||||||
|
grid-row: 1;
|
||||||
justify-self: start;
|
justify-self: start;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
max-width: 100%;
|
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 {
|
.tl-feed {
|
||||||
@ -1132,8 +1153,17 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tl-live-grid {
|
.tl-live-grid,
|
||||||
|
.tl-live-grid--with-pill {
|
||||||
grid-template-columns: 1fr;
|
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 {
|
.tl-live-head {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user