After improving the design for the web part

This commit is contained in:
Your Name 2026-11-06 11:33:42 +02:00
parent af8477a987
commit b4038667fd
7 changed files with 199 additions and 15 deletions

View File

@ -76,7 +76,12 @@ export function LandingPage() {
const activityRows = (activityQ.data?.items ?? []).map((item) => ({
id: item.id,
left: item.publicId,
right: item.statusLabel,
right:
item.statusLabel === 'Playing'
? t('landing.feeds.statusPlaying')
: item.statusLabel === 'Completed'
? t('landing.feeds.statusCompleted')
: item.statusLabel,
}));
const withdrawalRows = (withdrawalsQ.data?.items ?? []).map((item) => ({

View File

@ -25,7 +25,7 @@ export function LandingGamePeek({ games, loading }: LandingGamePeekProps) {
<p className="tl-eyebrow">{t('landing.games.kicker')}</p>
<h2 className="tl-display tl-h2">{t('landing.games.title')}</h2>
</div>
<p className="tl-muted" style={{ maxWidth: '24rem', margin: 0 }}>
<p className="tl-muted" style={{ margin: 0 }}>
{t('landing.games.subtitle')}
</p>
</div>

View File

@ -48,28 +48,32 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
return (
<header
className="tl-landing-header"
style={{
position: 'fixed',
inset: '0 0 auto 0',
zIndex: 40,
padding: '1rem 1.25rem',
padding: '0.75rem clamp(0.65rem, 3vw, 1.25rem)',
pointerEvents: 'none',
}}
>
<div
className="tl-header-bar"
style={{
maxWidth: 1360,
margin: '0 auto',
display: 'flex',
alignItems: 'center',
gap: '1rem',
padding: '0.7rem 1rem',
gap: '0.55rem',
padding: '0.55rem 0.7rem',
borderRadius: 999,
border: '1px solid rgba(255,255,255,0.1)',
background: 'rgba(7,10,16,0.55)',
backdropFilter: 'blur(18px)',
WebkitBackdropFilter: 'blur(18px)',
pointerEvents: 'auto',
minWidth: 0,
width: '100%',
}}
>
<RouterLink
@ -77,14 +81,15 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 10,
gap: 8,
textDecoration: 'none',
color: 'inherit',
flexShrink: 0,
minWidth: 0,
}}
>
<img src="/brand/prediqo-mark.png" alt="" width={28} height={28} style={{ borderRadius: 8 }} />
<span className="tl-display" style={{ fontWeight: 800, fontSize: '1.05rem' }}>
<span className="tl-display tl-header-wordmark" style={{ fontWeight: 800, fontSize: '1.05rem' }}>
{PLATFORM_WORDMARK}
</span>
</RouterLink>
@ -109,7 +114,17 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
</RouterLink>
</nav>
<div style={{ marginLeft: 'auto', display: 'flex', alignItems: 'center', gap: 8 }}>
<div
className="tl-header-actions"
style={{
marginLeft: 'auto',
display: 'flex',
alignItems: 'center',
gap: 6,
flexShrink: 0,
minWidth: 0,
}}
>
<LanguageSwitcher />
<button
type="button"
@ -124,12 +139,13 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
<RouterLink to="/login" style={ghostBtnStyle} className="tl-hide-xs">
{t('landing.nav.login')}
</RouterLink>
<RouterLink to="/register" style={solidBtnStyle}>
<RouterLink to="/register" style={solidBtnStyle} className="tl-header-register">
{t('landing.nav.register')}
</RouterLink>
<button
type="button"
aria-label={t('common.openNav')}
aria-expanded={open}
onClick={() => setOpen((v) => !v)}
className="tl-nav-burger"
style={{
@ -141,6 +157,7 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
background: 'transparent',
color: 'inherit',
cursor: 'pointer',
flexShrink: 0,
}}
>
{open ? '✕' : '☰'}
@ -234,10 +251,17 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
to="/login"
onClick={() => setOpen(false)}
style={{ ...ghostBtnStyle, textAlign: 'center', padding: '0.85rem 1rem' }}
className="tl-hide-xs-invert"
>
{t('landing.nav.login')}
</RouterLink>
<RouterLink
to="/register"
onClick={() => setOpen(false)}
style={{ ...solidBtnStyle, textAlign: 'center', padding: '0.85rem 1rem' }}
className="tl-header-register-mobile"
>
{t('landing.nav.register')}
</RouterLink>
</div>
)}
@ -245,10 +269,25 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
@media (min-width: 900px) {
.tl-nav-desktop { display: flex !important; }
.tl-nav-burger { display: none !important; }
.tl-header-register-mobile { display: none !important; }
}
@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;
font-size: 0.78rem !important;
max-width: 7.5rem;
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>
@ -324,4 +363,6 @@ const solidBtnStyle: CSSProperties = {
fontWeight: 800,
fontSize: '0.88rem',
boxShadow: '0 10px 30px rgba(16,185,129,0.28)',
flexShrink: 0,
whiteSpace: 'nowrap',
};

View File

@ -255,18 +255,24 @@
/* Ambient "markets open" live signal — motion, not a stat card. */
.tl-hero-live {
display: inline-flex;
align-items: center;
align-items: flex-start;
gap: 0.6rem;
max-width: 100%;
margin-top: 2rem;
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.04em;
color: rgba(232, 238, 248, 0.7);
white-space: normal;
overflow-wrap: anywhere;
line-height: 1.4;
}
.tl-hero-live .tl-dot {
width: 9px;
height: 9px;
margin-top: 0.28rem;
flex-shrink: 0;
border-radius: 50%;
background: var(--tl-emerald-bright);
box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
@ -438,6 +444,17 @@
gap: 1.25rem;
align-items: end;
margin-bottom: clamp(2rem, 4vw, 3rem);
min-width: 0;
}
.tl-games-head > * {
min-width: 0;
}
.tl-games-head .tl-muted {
max-width: 36rem;
overflow-wrap: anywhere;
word-break: normal;
}
.tl-games-list {
@ -525,8 +542,9 @@
.tl-live-pill {
display: inline-flex;
align-items: center;
align-items: flex-start;
gap: 0.6rem;
max-width: min(100%, 28rem);
padding: 0.55rem 1.05rem;
border-radius: 999px;
border: 1px solid rgba(52, 211, 153, 0.3);
@ -534,7 +552,9 @@
font-size: 0.85rem;
font-weight: 700;
color: #d8fbee;
white-space: nowrap;
white-space: normal;
overflow-wrap: anywhere;
line-height: 1.35;
}
.tl-live-pill .tl-dot {
@ -566,6 +586,11 @@
justify-content: space-between;
gap: 0.75rem;
margin-bottom: 1.1rem;
min-width: 0;
}
.tl-feed__head > div {
min-width: 0;
}
.tl-feed__title {
@ -714,6 +739,7 @@
gap: 1rem 1.5rem;
align-items: center;
justify-content: space-between;
min-width: 0;
}
.tl-footer__links {
@ -866,9 +892,19 @@
}
@media (max-width: 900px) {
.tloto-landing {
--tl-gutter: clamp(1rem, 4vw, 1.5rem);
}
.tl-hero {
min-height: auto;
padding-block: clamp(5.5rem, 10vh, 7rem) clamp(2.5rem, 6vh, 4rem);
}
.tl-hero-visual {
width: 100%;
}
.tl-hero-visual::after {
background: linear-gradient(
180deg,
@ -877,9 +913,76 @@
var(--tl-ink) 100%
);
}
.tl-hero-copy {
max-width: 100%;
}
.tl-hero-headline {
max-width: none;
}
.tl-hero-ctas {
width: 100%;
}
.tl-hero-ctas .tl-btn {
width: 100%;
}
.tl-live-grid {
grid-template-columns: 1fr;
}
.tl-live-head {
flex-direction: column;
align-items: stretch;
}
.tl-live-pill {
max-width: 100%;
border-radius: 16px;
}
.tl-offers__title,
.tl-closing__title {
max-width: none;
}
.tl-offers__sub,
.tl-closing__sub {
max-width: none;
}
.tl-hero-copy,
.tl-hero-sentence,
.tl-offers__title,
.tl-offers__sub,
.tl-game__title,
.tl-game__desc,
.tl-feed__title,
.tl-feed__sub,
.tl-why-title,
.tl-why-body,
.tl-closing__title,
.tl-closing__sub,
.tl-muted,
.tl-h2 {
overflow-wrap: anywhere;
word-break: normal;
}
.tl-btn {
max-width: 100%;
text-align: center;
white-space: normal;
line-height: 1.25;
}
.tl-footer__inner {
flex-direction: column;
align-items: flex-start;
}
}
@media (max-width: 800px) {
@ -887,17 +990,47 @@
grid-template-columns: 1fr;
direction: ltr !important;
}
.tl-why-grid {
grid-template-columns: 1fr;
}
.tl-why-col {
padding: 1.75rem 0;
border-left: 0;
border-top: 1px solid var(--tl-line);
}
.tl-why-col:first-child {
border-top: 0;
}
.tl-why-head {
max-width: none;
}
}
@media (max-width: 480px) {
.tl-section {
padding-block: clamp(2.5rem, 8vw, 3.5rem);
}
.tl-wordmark {
font-size: clamp(2.6rem, 14vw, 3.6rem);
}
.tl-candles {
padding-right: 4%;
gap: 5px;
}
.tl-closing__ctas {
width: 100%;
}
.tl-closing__ctas .tl-btn {
width: 100%;
}
}
@media (min-width: 1025px) {

View File

@ -49,7 +49,8 @@ export function LanguageSwitcher({ display = 'abbrev' }: LanguageSwitcherProps)
startIcon={<LanguageRoundedIcon fontSize="small" />}
sx={{
minWidth: 0,
px: 1.25,
flexShrink: 0,
px: { xs: 0.9, sm: 1.25 },
fontWeight: 800,
letterSpacing: display === 'abbrev' ? '0.04em' : undefined,
border: '1px solid rgba(255,255,255,0.15)',

View File

@ -124,6 +124,8 @@ export const en = {
withdrawalsSubtitle: 'Confirmed payouts (anonymized).',
withdrawalsEmpty: 'No recent withdrawals to display.',
anonymized: 'Identifiers are anonymized for privacy.',
statusPlaying: 'Playing',
statusCompleted: 'Completed',
},
why: {
kicker: 'Difference',

View File

@ -114,7 +114,7 @@ export const fr = {
kicker: 'Pulsation',
title: 'Le floor ne dort jamais',
subtitle: 'Activité récente des joueurs et retraits confirmés.',
subtitleWithCount: '{{count}} joueurs actifs maintenant — pulsation ci-dessous.',
subtitleWithCount: '{{count}} joueurs actifs — pulsation ci-dessous.',
},
feeds: {
activityTitle: 'Activité en direct',
@ -124,6 +124,8 @@ export const fr = {
withdrawalsSubtitle: 'Paiements confirmés (anonymisés).',
withdrawalsEmpty: 'Aucun retrait récent à afficher.',
anonymized: 'Les identifiants sont anonymisés pour la confidentialité.',
statusPlaying: 'En jeu',
statusCompleted: 'Terminé',
},
why: {
kicker: 'Différence',