After adding the public webwelcome page1

This commit is contained in:
Your Name 2026-10-30 13:14:17 +02:00
parent feedb77779
commit 685cad9869
9 changed files with 966 additions and 681 deletions

View File

@ -9,6 +9,12 @@
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<meta name="theme-color" content="#0B0F1A" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap"
rel="stylesheet"
/>
<title>Tloto</title>
</head>
<body>

View File

@ -1,39 +1,38 @@
/**
* Public Tloto marketing landing — first page for unauthenticated web visitors.
* Public Tloto web landing — cinematic composition, not a mobile dashboard clone.
*/
import {
Box,
Button,
Container,
Stack,
Typography,
keyframes,
} from '@mui/material';
import BoltRoundedIcon from '@mui/icons-material/BoltRounded';
import AccountBalanceWalletRoundedIcon from '@mui/icons-material/AccountBalanceWalletRounded';
import GroupAddRoundedIcon from '@mui/icons-material/GroupAddRounded';
import HelpOutlineRoundedIcon from '@mui/icons-material/HelpOutlineRounded';
import { useEffect, useMemo, type CSSProperties } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { PromoCarousel } from '../home/components/PromoCarousel';
import { useGames, useHeroAdvertisements } from '../home/hooks/useCatalog';
import { LandingHeader } from './components/LandingHeader';
import { LandingHero } from './components/LandingHero';
import { LandingGamePeek } from './components/LandingGamePeek';
import { LandingFeedStrip } from './components/LandingFeedStrip';
import { useActivityFeed, useWithdrawalFeed } from './hooks/useMarketingFeeds';
import { PrediqoLogo } from '../../shared/brand/PrediqoLogo';
const fadeUp = keyframes`
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
`;
import { PLATFORM_WORDMARK } from '../../shared/brand/platformName';
import './landing.css';
function scrollToId(id: string) {
const el = document.getElementById(id);
if (!el) return;
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
document.getElementById(id)?.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
function ensureLandingFonts() {
const id = 'tloto-landing-fonts';
if (document.getElementById(id)) return;
const preconnect1 = document.createElement('link');
preconnect1.rel = 'preconnect';
preconnect1.href = 'https://fonts.googleapis.com';
const preconnect2 = document.createElement('link');
preconnect2.rel = 'preconnect';
preconnect2.href = 'https://fonts.gstatic.com';
preconnect2.crossOrigin = 'anonymous';
const stylesheet = document.createElement('link');
stylesheet.id = id;
stylesheet.rel = 'stylesheet';
stylesheet.href =
'https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap';
document.head.append(preconnect1, preconnect2, stylesheet);
}
/** Guest marketing home for the Tloto web app. */
@ -44,6 +43,10 @@ export function LandingPage() {
const activityQ = useActivityFeed();
const withdrawalsQ = useWithdrawalFeed();
useEffect(() => {
ensureLandingFonts();
}, []);
const navItems = useMemo(
() => [
{ id: 'offers', label: t('landing.nav.offers') },
@ -56,21 +59,9 @@ export function LandingPage() {
);
const whyItems = [
{
icon: <BoltRoundedIcon sx={{ color: '#10B981' }} />,
title: t('landing.why.predictTitle'),
body: t('landing.why.predictBody'),
},
{
icon: <AccountBalanceWalletRoundedIcon sx={{ color: '#D4AF37' }} />,
title: t('landing.why.walletTitle'),
body: t('landing.why.walletBody'),
},
{
icon: <GroupAddRoundedIcon sx={{ color: '#34D399' }} />,
title: t('landing.why.referralTitle'),
body: t('landing.why.referralBody'),
},
{ title: t('landing.why.predictTitle'), body: t('landing.why.predictBody') },
{ title: t('landing.why.walletTitle'), body: t('landing.why.walletBody') },
{ title: t('landing.why.referralTitle'), body: t('landing.why.referralBody') },
];
const activityRows = (activityQ.data?.items ?? []).map((item) => ({
@ -86,62 +77,111 @@ export function LandingPage() {
}));
const activePlayers = activityQ.data?.activePlayersCount;
const heroAd = (heroQ.data ?? [])[0] ?? null;
return (
<Box
sx={{
minHeight: '100vh',
color: 'text.primary',
background:
'linear-gradient(180deg, rgba(11,15,26,1) 0%, rgba(14,20,34,1) 42%, rgba(10,13,22,1) 100%)',
}}
>
<div className="tloto-landing">
<LandingHeader navItems={navItems} onNavigateSection={scrollToId} />
<LandingHero />
<Container maxWidth="lg" sx={{ px: { xs: 2, sm: 3 } }}>
<Box
component="section"
id="offers"
sx={{
py: { xs: 5, md: 7 },
scrollMarginTop: 80,
animation: `${fadeUp} 0.55s ease-out both`,
{/* Offers: one full-bleed promotional plane, not a carousel card stack */}
<section id="offers" style={{ scrollMarginTop: 96, padding: '0 0 1rem' }}>
<div style={{ maxWidth: 1180, margin: '0 auto', padding: '0 1.5rem' }}>
<p style={eyebrow}>{t('landing.offers.kicker')}</p>
<h2 className="tl-display" style={sectionTitle}>
{t('landing.offers.title')}
</h2>
</div>
<div
style={{
marginTop: '1.75rem',
minHeight: 'clamp(280px, 42vh, 420px)',
position: 'relative',
overflow: 'hidden',
borderTop: '1px solid rgba(255,255,255,0.08)',
borderBottom: '1px solid rgba(255,255,255,0.08)',
background: heroAd?.backgroundGradient
|| heroAd?.imageUrl
|| 'linear-gradient(120deg, rgba(16,185,129,0.2), rgba(7,10,16,0.95) 45%, rgba(212,175,55,0.12))',
backgroundImage: heroAd?.imageUrl
? `linear-gradient(100deg, rgba(5,8,14,0.82) 0%, rgba(5,8,14,0.35) 55%, rgba(5,8,14,0.7) 100%), url(${heroAd.imageUrl})`
: undefined,
backgroundSize: 'cover',
backgroundPosition: 'center',
}}
>
<Stack spacing={1} sx={{ mb: 2.5, maxWidth: 640 }}>
<Typography variant="h4" sx={{ fontWeight: 900, fontSize: { xs: '1.75rem', md: '2.1rem' } }}>
{t('landing.offers.title')}
</Typography>
<Typography sx={{ opacity: 0.7 }}>{t('landing.offers.subtitle')}</Typography>
</Stack>
<PromoCarousel ads={heroQ.data ?? []} loading={heroQ.isLoading} />
</Box>
<Box sx={{ scrollMarginTop: 80 }}>
<LandingGamePeek games={gamesQ.data ?? []} loading={gamesQ.isLoading} />
</Box>
<Box
component="section"
id="live"
sx={{ py: { xs: 5, md: 7 }, scrollMarginTop: 80 }}
>
<Stack spacing={1} sx={{ mb: 3, maxWidth: 640 }}>
<Typography variant="h4" sx={{ fontWeight: 900, fontSize: { xs: '1.75rem', md: '2.1rem' } }}>
{t('landing.live.title')}
</Typography>
<Typography sx={{ opacity: 0.7 }}>
{typeof activePlayers === 'number' && activePlayers > 0
? t('landing.live.subtitleWithCount', { count: activePlayers })
: t('landing.live.subtitle')}
</Typography>
</Stack>
<Box
sx={{
<div
style={{
maxWidth: 1180,
margin: '0 auto',
padding: 'clamp(2.5rem, 6vw, 4.5rem) 1.5rem',
display: 'grid',
gap: 2,
gridTemplateColumns: { xs: '1fr', md: '1fr 1fr' },
gap: '1rem',
alignContent: 'center',
minHeight: 'clamp(280px, 42vh, 420px)',
}}
>
{heroQ.isLoading && <p style={{ color: 'var(--tl-mute)' }}>{t('common.loading')}</p>}
{!heroQ.isLoading && !heroAd && (
<p style={{ color: 'var(--tl-mute)', maxWidth: 420 }}>{t('landing.offers.empty')}</p>
)}
{heroAd && (
<>
<h3
className="tl-display"
style={{
margin: 0,
fontSize: 'clamp(2rem, 5vw, 3.4rem)',
fontWeight: 800,
maxWidth: 14,
lineHeight: 1.05,
}}
>
{heroAd.title}
</h3>
{heroAd.subtitle && (
<p style={{ margin: 0, maxWidth: 480, color: 'rgba(238,243,251,0.78)', fontSize: '1.08rem', lineHeight: 1.55 }}>
{heroAd.subtitle}
</p>
)}
<RouterLink
to={heroAd.linkUrl?.startsWith('/') ? '/login' : '/register'}
style={{
justifySelf: 'start',
marginTop: 8,
textDecoration: 'none',
color: '#04110c',
background: heroAd.accentColor || '#10B981',
fontWeight: 800,
padding: '0.85rem 1.35rem',
borderRadius: 999,
}}
>
{heroAd.ctaLabel || t('landing.hero.ctaPrimary')}
</RouterLink>
</>
)}
</div>
</div>
</section>
<LandingGamePeek games={gamesQ.data ?? []} loading={gamesQ.isLoading} />
<section id="live" style={{ padding: '4.5rem 0 5.5rem', scrollMarginTop: 96 }}>
<div style={{ maxWidth: 1180, margin: '0 auto', padding: '0 1.5rem' }}>
<p style={eyebrow}>{t('landing.live.kicker')}</p>
<h2 className="tl-display" style={{ ...sectionTitle, marginBottom: '0.75rem' }}>
{t('landing.live.title')}
</h2>
<p style={{ ...muted, marginBottom: '2.5rem', maxWidth: 520 }}>
{typeof activePlayers === 'number' && activePlayers > 0
? t('landing.live.subtitleWithCount', { count: activePlayers })
: t('landing.live.subtitle')}
</p>
<div
style={{
display: 'grid',
gap: '2.75rem',
}}
>
<LandingFeedStrip
@ -149,145 +189,204 @@ export function LandingPage() {
subtitle={t('landing.feeds.activitySubtitle')}
rows={activityRows}
loading={activityQ.isLoading}
rotateSeconds={activityQ.data?.listRotateSeconds ?? 8}
emptyLabel={t('landing.feeds.activityEmpty')}
accent="#10B981"
accent="#34D399"
/>
<LandingFeedStrip
title={t('landing.feeds.withdrawalsTitle')}
subtitle={t('landing.feeds.withdrawalsSubtitle')}
rows={withdrawalRows}
loading={withdrawalsQ.isLoading}
rotateSeconds={10}
emptyLabel={t('landing.feeds.withdrawalsEmpty')}
accent="#D4AF37"
/>
</Box>
</Box>
</div>
</div>
</section>
<Box
component="section"
id="why"
sx={{ py: { xs: 5, md: 7 }, scrollMarginTop: 80 }}
>
<Stack spacing={1} sx={{ mb: 3.5, maxWidth: 640 }}>
<Typography variant="h4" sx={{ fontWeight: 900, fontSize: { xs: '1.75rem', md: '2.1rem' } }}>
{t('landing.why.title')}
</Typography>
<Typography sx={{ opacity: 0.7 }}>{t('landing.why.subtitle')}</Typography>
</Stack>
<Box
sx={{
display: 'grid',
gap: 2.5,
gridTemplateColumns: { xs: '1fr', md: 'repeat(3, 1fr)' },
}}
>
{whyItems.map((item) => (
<Box
key={item.title}
sx={{
p: 2.75,
borderRadius: 2,
border: '1px solid rgba(255,255,255,0.08)',
background:
'linear-gradient(165deg, rgba(27,36,56,0.75) 0%, rgba(14,20,34,0.9) 100%)',
}}
>
<Box sx={{ mb: 1.5 }}>{item.icon}</Box>
<Typography variant="h6" sx={{ fontWeight: 900, mb: 1 }}>
{item.title}
</Typography>
<Typography variant="body2" sx={{ opacity: 0.72, lineHeight: 1.6 }}>
{item.body}
</Typography>
</Box>
))}
</Box>
</Box>
<Box
component="section"
id="faq-cta"
sx={{
py: { xs: 6, md: 8 },
scrollMarginTop: 80,
textAlign: 'center',
}}
>
<Stack
spacing={2}
sx={{
alignItems: 'center',
maxWidth: 560,
mx: 'auto',
p: { xs: 3, md: 4 },
borderRadius: 3,
border: '1px solid rgba(16,185,129,0.25)',
background:
'radial-gradient(ellipse at top, rgba(16,185,129,0.14) 0%, rgba(18,23,36,0.4) 55%)',
}}
>
<HelpOutlineRoundedIcon color="primary" sx={{ fontSize: 36 }} />
<Typography variant="h5" sx={{ fontWeight: 900 }}>
{t('landing.faqCta.title')}
</Typography>
<Typography sx={{ opacity: 0.72 }}>{t('landing.faqCta.subtitle')}</Typography>
<Stack direction={{ xs: 'column', sm: 'row' }} spacing={1.25}>
<Button
component={RouterLink}
to="/faq"
variant="outlined"
color="inherit"
sx={{ fontWeight: 800, borderColor: 'rgba(255,255,255,0.25)' }}
>
{t('landing.faqCta.openFaq')}
</Button>
<Button
component={RouterLink}
to="/register"
variant="contained"
sx={{ fontWeight: 900 }}
>
{t('landing.faqCta.createAccount')}
</Button>
</Stack>
</Stack>
</Box>
</Container>
<Box
component="footer"
sx={{
<section
id="why"
style={{
padding: '5rem 0',
scrollMarginTop: 96,
borderTop: '1px solid rgba(255,255,255,0.08)',
py: 3.5,
mt: 2,
}}
>
<Container maxWidth="lg">
<Stack
direction={{ xs: 'column', sm: 'row' }}
spacing={2}
sx={{ alignItems: { sm: 'center' }, justifyContent: 'space-between' }}
<div style={{ maxWidth: 1180, margin: '0 auto', padding: '0 1.5rem' }}>
<div style={{ maxWidth: 640, marginBottom: '3rem' }}>
<p style={eyebrow}>{t('landing.why.kicker')}</p>
<h2 className="tl-display" style={sectionTitle}>
{t('landing.why.title')}
</h2>
<p style={{ ...muted, marginTop: '1rem' }}>{t('landing.why.subtitle')}</p>
</div>
<div
style={{
display: 'grid',
gridTemplateColumns: 'repeat(3, minmax(0, 1fr))',
gap: '2rem 2.5rem',
borderTop: '1px solid rgba(255,255,255,0.1)',
paddingTop: '2rem',
}}
className="tl-why-grid"
>
<PrediqoLogo size={26} />
<Stack direction="row" spacing={1.5} useFlexGap sx={{ flexWrap: 'wrap' }}>
<Button component={RouterLink} to="/login" size="small" color="inherit" sx={{ fontWeight: 700 }}>
{t('landing.nav.login')}
</Button>
<Button component={RouterLink} to="/register" size="small" color="inherit" sx={{ fontWeight: 700 }}>
{t('landing.nav.register')}
</Button>
<Button component={RouterLink} to="/faq" size="small" color="inherit" sx={{ fontWeight: 700 }}>
{t('landing.nav.faq')}
</Button>
</Stack>
<Typography variant="caption" sx={{ opacity: 0.45 }}>
{t('landing.footer.rights')}
</Typography>
</Stack>
</Container>
</Box>
</Box>
{whyItems.map((item, i) => (
<div key={item.title}>
<p
className="tl-display"
style={{
margin: '0 0 1rem',
fontSize: '3rem',
fontWeight: 800,
color: 'rgba(16,185,129,0.35)',
lineHeight: 1,
}}
>
{String(i + 1).padStart(2, '0')}
</p>
<h3 className="tl-display" style={{ margin: '0 0 0.75rem', fontSize: '1.45rem', fontWeight: 800 }}>
{item.title}
</h3>
<p style={{ ...muted, margin: 0, fontSize: '0.98rem' }}>{item.body}</p>
</div>
))}
</div>
</div>
</section>
<section
id="faq-cta"
style={{
padding: '5.5rem 1.5rem 6rem',
scrollMarginTop: 96,
textAlign: 'center',
background:
'radial-gradient(ellipse at center, rgba(16,185,129,0.12) 0%, transparent 55%)',
}}
>
<p style={{ ...eyebrow, textAlign: 'center' }}>{t('landing.faqCta.kicker')}</p>
<h2
className="tl-display"
style={{
margin: '0 auto',
maxWidth: 16,
fontSize: 'clamp(2.1rem, 5vw, 3.4rem)',
fontWeight: 800,
lineHeight: 1.05,
}}
>
{t('landing.faqCta.title')}
</h2>
<p style={{ ...muted, margin: '1.1rem auto 0', maxWidth: 440 }}>{t('landing.faqCta.subtitle')}</p>
<div
style={{
display: 'flex',
flexWrap: 'wrap',
gap: 12,
justifyContent: 'center',
marginTop: '2rem',
}}
>
<RouterLink
to="/faq"
style={{
textDecoration: 'none',
color: '#eef3fb',
border: '1px solid rgba(255,255,255,0.2)',
padding: '0.9rem 1.4rem',
borderRadius: 999,
fontWeight: 700,
}}
>
{t('landing.faqCta.openFaq')}
</RouterLink>
<RouterLink
to="/register"
style={{
textDecoration: 'none',
color: '#04110c',
background: 'linear-gradient(135deg, #34d399, #10b981)',
padding: '0.9rem 1.4rem',
borderRadius: 999,
fontWeight: 800,
}}
>
{t('landing.faqCta.createAccount')}
</RouterLink>
</div>
</section>
<footer
style={{
borderTop: '1px solid rgba(255,255,255,0.08)',
padding: '2rem 1.5rem 2.75rem',
}}
>
<div
style={{
maxWidth: 1180,
margin: '0 auto',
display: 'flex',
flexWrap: 'wrap',
gap: '1rem 1.5rem',
alignItems: 'center',
justifyContent: 'space-between',
}}
>
<span className="tl-display" style={{ fontWeight: 800, fontSize: '1.15rem' }}>
{PLATFORM_WORDMARK}
</span>
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '1rem' }}>
<RouterLink to="/login" style={footerLink}>
{t('landing.nav.login')}
</RouterLink>
<RouterLink to="/register" style={footerLink}>
{t('landing.nav.register')}
</RouterLink>
<RouterLink to="/faq" style={footerLink}>
{t('landing.nav.faq')}
</RouterLink>
</div>
<span style={{ fontSize: '0.78rem', color: 'rgba(238,243,251,0.4)' }}>
{t('landing.footer.rights')}
</span>
</div>
</footer>
<style>{`
@media (max-width: 800px) {
.tl-why-grid { grid-template-columns: 1fr !important; }
}
`}</style>
</div>
);
}
const eyebrow: CSSProperties = {
margin: '0 0 0.75rem',
fontSize: '0.75rem',
fontWeight: 700,
letterSpacing: '0.24em',
textTransform: 'uppercase',
color: 'rgba(52,211,153,0.9)',
};
const sectionTitle: CSSProperties = {
margin: 0,
fontSize: 'clamp(2.1rem, 5vw, 3.4rem)',
fontWeight: 800,
lineHeight: 1.05,
};
const muted: CSSProperties = {
color: 'var(--tl-mute)',
lineHeight: 1.65,
fontSize: '1.05rem',
};
const footerLink: CSSProperties = {
textDecoration: 'none',
color: 'rgba(238,243,251,0.72)',
fontWeight: 600,
fontSize: '0.9rem',
};

View File

@ -1,15 +1,9 @@
/**
* Rotating live activity / withdrawal strips for social proof (API-backed only).
* Continuous marquee of live activity / withdrawals — editorial, not card stacks.
*/
import { Box, Stack, Typography, keyframes, Skeleton } from '@mui/material';
import { useEffect, useState } from 'react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
const slide = keyframes`
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
`;
type FeedRow = {
id: string;
left: string;
@ -21,7 +15,6 @@ type LandingFeedStripProps = {
subtitle: string;
rows: FeedRow[];
loading?: boolean;
rotateSeconds?: number;
emptyLabel: string;
accent?: string;
};
@ -31,90 +24,67 @@ export function LandingFeedStrip({
subtitle,
rows,
loading,
rotateSeconds = 8,
emptyLabel,
accent = '#10B981',
}: LandingFeedStripProps) {
const { t } = useTranslation();
const [offset, setOffset] = useState(0);
const windowSize = 4;
const visible = rows.length
? Array.from({ length: Math.min(windowSize, rows.length) }, (_, i) => rows[(offset + i) % rows.length]!)
: [];
useEffect(() => {
if (rows.length <= windowSize) return;
const id = window.setInterval(() => {
setOffset((o) => (o + 1) % rows.length);
}, Math.max(5, rotateSeconds) * 1000);
return () => window.clearInterval(id);
}, [rows.length, rotateSeconds]);
const loop = useMemo(() => (rows.length ? [...rows, ...rows] : []), [rows]);
return (
<Box
sx={{
p: { xs: 2.25, sm: 2.75 },
borderRadius: 2,
border: '1px solid rgba(255,255,255,0.08)',
background:
'linear-gradient(160deg, rgba(27,36,56,0.92) 0%, rgba(18,24,40,0.88) 100%)',
minHeight: 220,
}}
>
<Typography variant="h6" sx={{ fontWeight: 900, mb: 0.35 }}>
<div style={{ minWidth: 0 }}>
<h3 className="tl-display" style={{ margin: '0 0 0.4rem', fontSize: '1.45rem', fontWeight: 800 }}>
{title}
</Typography>
<Typography variant="body2" sx={{ opacity: 0.65, mb: 2 }}>
{subtitle}
</Typography>
</h3>
<p style={{ margin: '0 0 1.25rem', color: 'var(--tl-mute)', fontSize: '0.95rem' }}>{subtitle}</p>
{loading && (
<Stack spacing={1.25}>
{[0, 1, 2].map((i) => (
<Skeleton key={i} variant="rounded" height={36} sx={{ borderRadius: 1.5 }} />
))}
</Stack>
<div style={{ height: 56, borderRadius: 999, background: 'rgba(255,255,255,0.04)' }} />
)}
{!loading && visible.length === 0 && (
<Typography variant="body2" sx={{ opacity: 0.55, py: 2 }}>
{emptyLabel}
</Typography>
{!loading && rows.length === 0 && (
<p style={{ margin: 0, color: 'var(--tl-mute)', fontSize: '0.95rem' }}>{emptyLabel}</p>
)}
{!loading && visible.length > 0 && (
<Stack spacing={1} key={offset} sx={{ animation: `${slide} 0.35s ease-out` }}>
{visible.map((row) => (
<Stack
key={row.id}
direction="row"
spacing={1.5}
sx={{
alignItems: 'center',
justifyContent: 'space-between',
px: 1.25,
py: 1,
borderRadius: 1.5,
backgroundColor: 'rgba(255,255,255,0.03)',
border: '1px solid rgba(255,255,255,0.05)',
}}
>
<Typography variant="body2" sx={{ fontWeight: 700, minWidth: 0 }}>
{row.left}
</Typography>
<Typography
variant="body2"
sx={{ fontWeight: 800, color: accent, whiteSpace: 'nowrap' }}
{!loading && rows.length > 0 && (
<div
style={{
overflow: 'hidden',
maskImage: 'linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)',
WebkitMaskImage: 'linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)',
}}
>
<div
style={{
display: 'flex',
width: 'max-content',
gap: 12,
animation: rows.length > 2 ? 'tl-marquee 36s linear infinite' : undefined,
}}
>
{loop.map((row, i) => (
<div
key={`${row.id}-${i}`}
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 14,
padding: '0.85rem 1.15rem',
borderRadius: 999,
border: '1px solid rgba(255,255,255,0.08)',
background: 'rgba(255,255,255,0.03)',
whiteSpace: 'nowrap',
}}
>
{row.right}
</Typography>
</Stack>
))}
<Typography variant="caption" sx={{ opacity: 0.45, pt: 0.5 }}>
<span style={{ fontWeight: 700, fontSize: '0.92rem' }}>{row.left}</span>
<span style={{ fontWeight: 800, color: accent, fontSize: '0.92rem' }}>{row.right}</span>
</div>
))}
</div>
<p style={{ margin: '0.85rem 0 0', fontSize: '0.75rem', color: 'rgba(238,243,251,0.4)' }}>
{t('landing.feeds.anonymized')}
</Typography>
</Stack>
</p>
</div>
)}
</Box>
</div>
);
}

View File

@ -1,16 +1,7 @@
/**
* Featured games peek — guest taps route to login (not play).
* Editorial games strip — large visual rows, not a card grid.
*/
import {
Box,
Button,
Chip,
Stack,
Typography,
Skeleton,
alpha,
} from '@mui/material';
import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
import type { CSSProperties } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import type { Game } from '../../home/types';
@ -22,117 +13,161 @@ type LandingGamePeekProps = {
export function LandingGamePeek({ games, loading }: LandingGamePeekProps) {
const { t } = useTranslation();
const featured = games.filter((g) => g.isFeatured).slice(0, 4);
const list = featured.length > 0 ? featured : games.slice(0, 4);
const featured = games.filter((g) => g.isFeatured).slice(0, 3);
const list = featured.length > 0 ? featured : games.slice(0, 3);
return (
<Box component="section" id="games" sx={{ py: { xs: 6, md: 8 } }}>
<Stack spacing={1} sx={{ mb: 3, maxWidth: 640 }}>
<Typography variant="h4" sx={{ fontWeight: 900, fontSize: { xs: '1.75rem', md: '2.1rem' } }}>
{t('landing.games.title')}
</Typography>
<Typography sx={{ opacity: 0.7 }}>{t('landing.games.subtitle')}</Typography>
</Stack>
{loading && (
<Box
sx={{
<section id="games" style={{ padding: '5.5rem 0', scrollMarginTop: 96 }}>
<div style={{ maxWidth: 1180, margin: '0 auto', padding: '0 1.5rem' }}>
<div
style={{
display: 'grid',
gap: 2,
gridTemplateColumns: { xs: '1fr', sm: '1fr 1fr', md: 'repeat(4, 1fr)' },
gap: '1.5rem',
gridTemplateColumns: 'minmax(0, 1fr)',
alignItems: 'end',
marginBottom: '2.75rem',
}}
className="tl-games-head"
>
{[0, 1, 2, 3].map((i) => (
<Skeleton key={i} variant="rounded" height={220} sx={{ borderRadius: 2 }} />
))}
</Box>
)}
<div>
<p style={eyebrow}>{t('landing.games.kicker')}</p>
<h2 className="tl-display" style={sectionTitle}>
{t('landing.games.title')}
</h2>
</div>
<p style={{ ...muted, maxWidth: 380, margin: 0 }}>{t('landing.games.subtitle')}</p>
</div>
{!loading && list.length === 0 && (
<Typography sx={{ opacity: 0.6 }}>{t('landing.games.empty')}</Typography>
)}
{!loading && list.length > 0 && (
<Box
sx={{
display: 'grid',
gap: 2,
gridTemplateColumns: { xs: '1fr', sm: '1fr 1fr', md: 'repeat(4, 1fr)' },
}}
>
{list.map((game) => {
const accent = game.accentColor || '#10B981';
return (
<Box
key={game.id}
component={RouterLink}
to="/login"
sx={{
textDecoration: 'none',
color: 'inherit',
borderRadius: 2,
overflow: 'hidden',
border: `1px solid ${alpha(accent, 0.28)}`,
background: `linear-gradient(165deg, ${alpha(accent, 0.18)} 0%, rgba(18,23,36,0.95) 55%)`,
transition: 'transform 0.2s ease, border-color 0.2s ease',
'&:hover': {
transform: { md: 'translateY(-4px)' },
borderColor: alpha(accent, 0.5),
},
{loading && (
<div style={{ display: 'grid', gap: 16 }}>
{[0, 1].map((i) => (
<div
key={i}
style={{
height: 220,
borderRadius: 28,
background: 'rgba(255,255,255,0.04)',
border: '1px solid rgba(255,255,255,0.06)',
}}
>
<Box
sx={{
height: 110,
background: game.thumbnailUrl
? `url(${game.thumbnailUrl}) center/cover no-repeat`
: `linear-gradient(145deg, ${alpha(accent, 0.4)} 0%, rgba(11,15,26,0.9) 80%)`,
/>
))}
</div>
)}
{!loading && list.length === 0 && <p style={muted}>{t('landing.games.empty')}</p>}
{!loading && list.length > 0 && (
<div style={{ display: 'grid', gap: 18 }}>
{list.map((game, index) => {
const accent = game.accentColor || '#10B981';
const reverse = index % 2 === 1;
return (
<RouterLink
key={game.id}
to="/login"
style={{
textDecoration: 'none',
color: 'inherit',
display: 'grid',
gridTemplateColumns: 'minmax(0, 1.15fr) minmax(0, 0.85fr)',
minHeight: 260,
borderRadius: 28,
overflow: 'hidden',
border: '1px solid rgba(255,255,255,0.08)',
background: `linear-gradient(135deg, ${accent}22 0%, rgba(10,14,22,0.92) 48%)`,
direction: reverse ? 'rtl' : 'ltr',
}}
/>
<Stack spacing={1} sx={{ p: 2 }}>
<Stack direction="row" spacing={0.75} sx={{ alignItems: 'center', flexWrap: 'wrap' }}>
<Typography variant="subtitle1" sx={{ fontWeight: 900, flex: 1, minWidth: 0 }}>
{game.title}
</Typography>
{game.isFeatured && (
<Chip size="small" color="primary" label={t('home.gameStatus.featured')} />
)}
</Stack>
{game.description && (
<Typography
variant="body2"
sx={{
opacity: 0.7,
display: '-webkit-box',
WebkitLineClamp: 2,
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
}}
>
{game.description}
</Typography>
)}
<Button
size="small"
variant="contained"
startIcon={<PlayArrowRoundedIcon />}
sx={{
alignSelf: 'flex-start',
mt: 0.5,
fontWeight: 800,
backgroundColor: accent,
color: '#0B0E14',
'&:hover': { backgroundColor: alpha(accent, 0.88) },
className="tl-game-row"
>
<div
style={{
direction: 'ltr',
minHeight: 220,
background: game.thumbnailUrl
? `center/cover no-repeat url(${game.thumbnailUrl})`
: `radial-gradient(circle at 30% 30%, ${accent}55, transparent 55%), linear-gradient(145deg, #121826, #0a0e16)`,
}}
/>
<div
style={{
direction: 'ltr',
display: 'grid',
alignContent: 'center',
gap: 12,
padding: '2rem 1.75rem',
}}
>
{t('landing.games.playCta')}
</Button>
</Stack>
</Box>
);
})}
</Box>
)}
</Box>
<span style={{ ...eyebrow, color: accent }}>{game.category}</span>
<h3 className="tl-display" style={{ margin: 0, fontSize: 'clamp(1.6rem, 3vw, 2.2rem)', fontWeight: 800 }}>
{game.title}
</h3>
{game.description && (
<p
style={{
...muted,
margin: 0,
display: '-webkit-box',
WebkitLineClamp: 3,
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
}}
>
{game.description}
</p>
)}
<span
style={{
marginTop: 8,
justifySelf: 'start',
fontWeight: 800,
fontSize: '0.92rem',
color: '#04110c',
background: accent,
padding: '0.65rem 1.1rem',
borderRadius: 999,
}}
>
{t('landing.games.playCta')}
</span>
</div>
</RouterLink>
);
})}
</div>
)}
</div>
<style>{`
@media (max-width: 800px) {
.tl-game-row { grid-template-columns: 1fr !important; direction: ltr !important; }
.tl-games-head { grid-template-columns: 1fr !important; }
}
@media (min-width: 801px) {
.tl-games-head { grid-template-columns: 1.2fr 0.8fr !important; }
}
`}</style>
</section>
);
}
const eyebrow: CSSProperties = {
margin: '0 0 0.65rem',
fontSize: '0.75rem',
fontWeight: 700,
letterSpacing: '0.22em',
textTransform: 'uppercase',
color: 'rgba(52,211,153,0.9)',
};
const sectionTitle: CSSProperties = {
margin: 0,
fontSize: 'clamp(2rem, 5vw, 3.2rem)',
fontWeight: 800,
lineHeight: 1.05,
};
const muted: CSSProperties = {
color: 'var(--tl-mute)',
lineHeight: 1.6,
fontSize: '1.02rem',
};

View File

@ -1,27 +1,11 @@
/**
* Sticky public header for the Tloto landing page.
* Minimal floating public nav — brand mark + actions, not a dashboard chrome.
*/
import {
AppBar,
Box,
Button,
Container,
IconButton,
Stack,
Toolbar,
Drawer,
List,
ListItemButton,
ListItemText,
Divider,
} from '@mui/material';
import MenuRoundedIcon from '@mui/icons-material/MenuRounded';
import CloseRoundedIcon from '@mui/icons-material/CloseRounded';
import { useState } from 'react';
import { useState, type CSSProperties } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { PrediqoLogo } from '../../../shared/brand/PrediqoLogo';
import { LanguageSwitcher } from '../../../shared/i18n/LanguageSwitcher';
import { PLATFORM_WORDMARK } from '../../../shared/brand/platformName';
type NavItem = { id: string; label: string };
@ -32,131 +16,185 @@ type LandingHeaderProps = {
export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProps) {
const { t } = useTranslation();
const [mobileOpen, setMobileOpen] = useState(false);
const go = (id: string) => {
setMobileOpen(false);
onNavigateSection(id);
};
const [open, setOpen] = useState(false);
return (
<>
<AppBar
position="sticky"
elevation={0}
color="transparent"
sx={{
backdropFilter: 'blur(14px)',
backgroundColor: 'rgba(11,15,26,0.72)',
borderBottom: '1px solid rgba(255,255,255,0.08)',
<header
style={{
position: 'fixed',
inset: '0 0 auto 0',
zIndex: 40,
padding: '1rem 1.25rem',
pointerEvents: 'none',
}}
>
<div
style={{
maxWidth: 1180,
margin: '0 auto',
display: 'flex',
alignItems: 'center',
gap: '1rem',
padding: '0.7rem 1rem',
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',
}}
>
<Container maxWidth="lg">
<Toolbar disableGutters sx={{ minHeight: 68, gap: 1.5 }}>
<Box
component={RouterLink}
to="/"
sx={{ textDecoration: 'none', color: 'inherit', display: 'inline-flex' }}
>
<PrediqoLogo size={30} />
</Box>
<RouterLink
to="/"
style={{
display: 'inline-flex',
alignItems: 'center',
gap: 10,
textDecoration: 'none',
color: 'inherit',
flexShrink: 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' }}>
{PLATFORM_WORDMARK}
</span>
</RouterLink>
<Stack
direction="row"
spacing={0.5}
sx={{ display: { xs: 'none', md: 'flex' }, ml: 2, flex: 1 }}
>
{navItems.map((item) => (
<Button
key={item.id}
color="inherit"
size="small"
onClick={() => onNavigateSection(item.id)}
sx={{ opacity: 0.85, fontWeight: 700, textTransform: 'none' }}
>
{item.label}
</Button>
))}
</Stack>
<Box sx={{ flex: { xs: 1, md: 0 } }} />
<LanguageSwitcher />
<Stack direction="row" spacing={1} sx={{ display: { xs: 'none', sm: 'flex' } }}>
<Button
component={RouterLink}
to="/login"
size="small"
variant="outlined"
color="inherit"
sx={{ borderColor: 'rgba(255,255,255,0.22)', fontWeight: 800 }}
>
{t('landing.nav.login')}
</Button>
<Button
component={RouterLink}
to="/register"
size="small"
variant="contained"
sx={{ fontWeight: 800 }}
>
{t('landing.nav.register')}
</Button>
</Stack>
<IconButton
edge="end"
color="inherit"
aria-label={t('common.openNav')}
onClick={() => setMobileOpen(true)}
sx={{ display: { md: 'none' } }}
>
<MenuRoundedIcon />
</IconButton>
</Toolbar>
</Container>
</AppBar>
<Drawer
anchor="right"
open={mobileOpen}
onClose={() => setMobileOpen(false)}
PaperProps={{
sx: {
width: 300,
backgroundColor: 'rgba(18,23,36,0.98)',
backgroundImage: 'none',
},
}}
>
<Stack direction="row" sx={{ p: 2, alignItems: 'center', justifyContent: 'space-between' }}>
<PrediqoLogo size={28} />
<IconButton onClick={() => setMobileOpen(false)} aria-label={t('common.close')}>
<CloseRoundedIcon />
</IconButton>
</Stack>
<Divider sx={{ opacity: 0.2 }} />
<List>
<nav
aria-label="Primary"
style={{
display: 'none',
flex: 1,
justifyContent: 'center',
gap: '0.25rem',
}}
className="tl-nav-desktop"
>
{navItems.map((item) => (
<ListItemButton key={item.id} onClick={() => go(item.id)}>
<ListItemText primary={item.label} primaryTypographyProps={{ fontWeight: 700 }} />
</ListItemButton>
<button
key={item.id}
type="button"
onClick={() => onNavigateSection(item.id)}
style={navLinkStyle}
>
{item.label}
</button>
))}
</List>
<Divider sx={{ opacity: 0.2 }} />
<Stack spacing={1.25} sx={{ p: 2 }}>
<Button component={RouterLink} to="/login" variant="outlined" fullWidth sx={{ fontWeight: 800 }}>
</nav>
<div style={{ marginLeft: 'auto', display: 'flex', alignItems: 'center', gap: 8 }}>
<LanguageSwitcher />
<RouterLink to="/login" style={ghostBtnStyle} className="tl-hide-xs">
{t('landing.nav.login')}
</Button>
<Button component={RouterLink} to="/register" variant="contained" fullWidth sx={{ fontWeight: 800 }}>
</RouterLink>
<RouterLink to="/register" style={solidBtnStyle}>
{t('landing.nav.register')}
</Button>
<Button component={RouterLink} to="/faq" color="inherit" fullWidth sx={{ fontWeight: 700 }}>
{t('landing.nav.faq')}
</Button>
</Stack>
</Drawer>
</>
</RouterLink>
<button
type="button"
aria-label={t('common.openNav')}
onClick={() => setOpen((v) => !v)}
className="tl-nav-burger"
style={{
display: 'none',
width: 40,
height: 40,
borderRadius: 999,
border: '1px solid rgba(255,255,255,0.14)',
background: 'transparent',
color: 'inherit',
cursor: 'pointer',
}}
>
{open ? '✕' : '☰'}
</button>
</div>
</div>
{open && (
<div
style={{
maxWidth: 1180,
margin: '0.6rem auto 0',
padding: '1rem',
borderRadius: 20,
border: '1px solid rgba(255,255,255,0.1)',
background: 'rgba(7,10,16,0.92)',
backdropFilter: 'blur(18px)',
pointerEvents: 'auto',
display: 'grid',
gap: 8,
}}
className="tl-nav-mobile-panel"
>
{navItems.map((item) => (
<button
key={item.id}
type="button"
onClick={() => {
setOpen(false);
onNavigateSection(item.id);
}}
style={{ ...navLinkStyle, justifyContent: 'flex-start', width: '100%', padding: '0.85rem 1rem' }}
>
{item.label}
</button>
))}
<RouterLink
to="/login"
onClick={() => setOpen(false)}
style={{ ...ghostBtnStyle, textAlign: 'center', padding: '0.85rem 1rem' }}
>
{t('landing.nav.login')}
</RouterLink>
</div>
)}
<style>{`
@media (min-width: 900px) {
.tl-nav-desktop { display: flex !important; }
.tl-nav-burger { 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; }
}
`}</style>
</header>
);
}
const navLinkStyle: CSSProperties = {
appearance: 'none',
border: 0,
background: 'transparent',
color: 'rgba(238,243,251,0.78)',
fontFamily: 'inherit',
fontWeight: 600,
fontSize: '0.9rem',
padding: '0.55rem 0.85rem',
borderRadius: 999,
cursor: 'pointer',
};
const ghostBtnStyle: CSSProperties = {
textDecoration: 'none',
color: 'rgba(238,243,251,0.9)',
border: '1px solid rgba(255,255,255,0.16)',
borderRadius: 999,
padding: '0.55rem 1rem',
fontWeight: 700,
fontSize: '0.88rem',
};
const solidBtnStyle: CSSProperties = {
textDecoration: 'none',
color: '#04110c',
background: 'linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%)',
borderRadius: 999,
padding: '0.55rem 1.1rem',
fontWeight: 800,
fontSize: '0.88rem',
boxShadow: '0 10px 30px rgba(16,185,129,0.28)',
};

View File

@ -1,145 +1,174 @@
/**
* Full-bleed hero: brand-forward headline + primary CTAs.
* Full-bleed cinematic hero — brand dominates; one message; one CTA group.
*/
import { Box, Button, Container, Stack, Typography, keyframes } from '@mui/material';
import type { CSSProperties } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { PrediqoLogo } from '../../../shared/brand/PrediqoLogo';
const drift = keyframes`
0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
50% { transform: translate3d(2%, -3%, 0) scale(1.06); opacity: 0.8; }
100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
`;
const rise = keyframes`
from { opacity: 0; transform: translateY(18px); }
to { opacity: 1; transform: translateY(0); }
`;
import { PLATFORM_WORDMARK } from '../../../shared/brand/platformName';
export function LandingHero() {
const { t } = useTranslation();
return (
<Box
component="section"
<section
id="top"
sx={{
style={{
position: 'relative',
minHeight: '100svh',
display: 'grid',
alignItems: 'end',
overflow: 'hidden',
minHeight: { xs: '88vh', md: '92vh' },
display: 'flex',
alignItems: 'center',
borderBottom: '1px solid rgba(255,255,255,0.06)',
isolation: 'isolate',
}}
>
<Box
{/* Full-bleed atmospheric plane */}
<div
aria-hidden
sx={{
style={{
position: 'absolute',
inset: '-10% -5% auto auto',
width: { xs: 280, md: 520 },
height: { xs: 280, md: 520 },
borderRadius: '50%',
inset: 0,
zIndex: 0,
background:
'radial-gradient(circle, rgba(16,185,129,0.28) 0%, rgba(16,185,129,0.08) 42%, transparent 70%)',
animation: `${drift} 14s ease-in-out infinite`,
pointerEvents: 'none',
'linear-gradient(115deg, rgba(5,8,14,0.15) 0%, rgba(5,8,14,0.55) 42%, rgba(5,8,14,0.88) 100%), radial-gradient(ellipse at 70% 35%, rgba(16,185,129,0.22), transparent 50%), radial-gradient(ellipse at 20% 80%, rgba(212,175,55,0.12), transparent 45%)',
}}
/>
<Box
<div
aria-hidden
sx={{
style={{
position: 'absolute',
inset: 'auto auto -15% -8%',
width: { xs: 260, md: 480 },
height: { xs: 260, md: 480 },
inset: '-8%',
zIndex: -1,
backgroundImage:
'url(/brand/prediqo-mark.png), linear-gradient(160deg, #0a101c 0%, #070b12 100%)',
backgroundSize: 'min(72vw, 720px), cover',
backgroundPosition: '78% 42%, center',
backgroundRepeat: 'no-repeat, no-repeat',
filter: 'saturate(1.15)',
opacity: 0.35,
animation: 'tl-pan 18s ease-out both',
}}
/>
<div
aria-hidden
style={{
position: 'absolute',
width: '42vw',
height: '42vw',
maxWidth: 560,
maxHeight: 560,
right: '8%',
top: '18%',
borderRadius: '50%',
background:
'radial-gradient(circle, rgba(212,175,55,0.22) 0%, rgba(212,175,55,0.06) 45%, transparent 72%)',
animation: `${drift} 18s ease-in-out infinite reverse`,
background: 'radial-gradient(circle, rgba(16,185,129,0.35), transparent 68%)',
filter: 'blur(8px)',
animation: 'tl-glow 7s ease-in-out infinite',
pointerEvents: 'none',
}}
/>
<Container maxWidth="lg" sx={{ position: 'relative', py: { xs: 8, md: 10 } }}>
<Stack
spacing={2.5}
sx={{
maxWidth: 720,
animation: `${rise} 0.7s ease-out both`,
<div
style={{
position: 'relative',
zIndex: 1,
width: '100%',
maxWidth: 1180,
margin: '0 auto',
padding: '7.5rem 1.5rem 4.5rem',
}}
>
<p
className="tl-rise"
style={{
margin: '0 0 1.25rem',
fontSize: '0.78rem',
fontWeight: 700,
letterSpacing: '0.28em',
textTransform: 'uppercase',
color: 'rgba(52,211,153,0.92)',
}}
>
<Box sx={{ display: { xs: 'none', sm: 'block' } }}>
<PrediqoLogo size={56} />
</Box>
<Typography
variant="overline"
sx={{
letterSpacing: 2.4,
color: 'primary.light',
fontWeight: 800,
fontSize: { xs: '0.75rem', sm: '0.8rem' },
}}
>
{t('landing.hero.tagline')}
</Typography>
<Typography
component="h1"
sx={{
fontWeight: 900,
letterSpacing: -0.5,
lineHeight: 1.05,
fontSize: { xs: '2.45rem', sm: '3.4rem', md: '4rem' },
maxWidth: 680,
}}
>
{t('landing.hero.title')}
</Typography>
<Typography
sx={{
opacity: 0.78,
fontSize: { xs: '1.05rem', sm: '1.2rem' },
lineHeight: 1.55,
maxWidth: 560,
}}
>
{t('landing.hero.subtitle')}
</Typography>
<Stack direction={{ xs: 'column', sm: 'row' }} spacing={1.5} sx={{ pt: 1 }}>
<Button
component={RouterLink}
to="/register"
variant="contained"
size="large"
sx={{
fontWeight: 900,
px: 3.5,
py: 1.35,
fontSize: '1rem',
boxShadow: '0 12px 40px rgba(16,185,129,0.28)',
}}
>
{t('landing.hero.ctaPrimary')}
</Button>
<Button
component={RouterLink}
to="/login"
variant="outlined"
size="large"
color="inherit"
sx={{
fontWeight: 800,
px: 3.5,
py: 1.35,
borderColor: 'rgba(255,255,255,0.28)',
}}
>
{t('landing.hero.ctaSecondary')}
</Button>
</Stack>
</Stack>
</Container>
</Box>
{t('landing.hero.tagline')}
</p>
<h1
className="tl-display tl-rise tl-rise-delay-1"
style={{
margin: 0,
fontSize: 'clamp(3.4rem, 12vw, 7.5rem)',
fontWeight: 800,
lineHeight: 0.92,
maxWidth: '11ch',
}}
>
{PLATFORM_WORDMARK}
</h1>
<p
className="tl-rise tl-rise-delay-2"
style={{
margin: '1.35rem 0 0',
maxWidth: 34,
fontSize: 'clamp(1.15rem, 2.4vw, 1.55rem)',
fontWeight: 700,
lineHeight: 1.25,
letterSpacing: '-0.02em',
}}
>
{t('landing.hero.title')}
</p>
<p
className="tl-rise tl-rise-delay-2"
style={{
margin: '1rem 0 0',
maxWidth: 460,
fontSize: '1.05rem',
lineHeight: 1.6,
color: 'var(--tl-mute)',
}}
>
{t('landing.hero.subtitle')}
</p>
<div
className="tl-rise tl-rise-delay-3"
style={{
display: 'flex',
flexWrap: 'wrap',
gap: '0.85rem',
marginTop: '2rem',
}}
>
<RouterLink to="/register" style={primaryCta}>
{t('landing.hero.ctaPrimary')}
</RouterLink>
<RouterLink to="/login" style={secondaryCta}>
{t('landing.hero.ctaSecondary')}
</RouterLink>
</div>
</div>
</section>
);
}
const primaryCta: CSSProperties = {
textDecoration: 'none',
color: '#04110c',
background: 'linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%)',
padding: '0.95rem 1.6rem',
borderRadius: 999,
fontWeight: 800,
fontSize: '1rem',
boxShadow: '0 16px 40px rgba(16,185,129,0.3)',
};
const secondaryCta: CSSProperties = {
textDecoration: 'none',
color: '#eef3fb',
border: '1px solid rgba(255,255,255,0.22)',
padding: '0.95rem 1.6rem',
borderRadius: 999,
fontWeight: 700,
fontSize: '1rem',
background: 'rgba(255,255,255,0.03)',
};

View File

@ -0,0 +1,96 @@
/* Scoped landing atmosphere — does not alter the authenticated app shell. */
.tloto-landing {
--tl-ink: #070a10;
--tl-fog: #0e1420;
--tl-emerald: #10b981;
--tl-emerald-soft: rgba(16, 185, 129, 0.14);
--tl-gold: #d4af37;
--tl-gold-soft: rgba(212, 175, 55, 0.16);
--tl-line: rgba(255, 255, 255, 0.1);
--tl-mute: rgba(232, 238, 248, 0.62);
--tl-text: #eef3fb;
--tl-display: 'Syne', 'Segoe UI', sans-serif;
--tl-body: 'Manrope', 'Segoe UI', sans-serif;
color: var(--tl-text);
font-family: var(--tl-body);
background:
radial-gradient(90vw 60vh at 78% -10%, rgba(16, 185, 129, 0.18), transparent 55%),
radial-gradient(70vw 50vh at -10% 40%, rgba(212, 175, 55, 0.1), transparent 50%),
linear-gradient(180deg, var(--tl-ink) 0%, var(--tl-fog) 48%, #05070c 100%);
overflow-x: hidden;
}
.tloto-landing * {
box-sizing: border-box;
}
.tloto-landing h1,
.tloto-landing h2,
.tloto-landing h3,
.tloto-landing .tl-display {
font-family: var(--tl-display);
letter-spacing: -0.03em;
}
@keyframes tl-rise {
from {
opacity: 0;
transform: translateY(28px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes tl-pan {
from {
transform: scale(1.08) translate3d(0, 0, 0);
}
to {
transform: scale(1) translate3d(0, -1.5%, 0);
}
}
@keyframes tl-marquee {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}
@keyframes tl-glow {
0%,
100% {
opacity: 0.45;
}
50% {
opacity: 0.85;
}
}
.tl-rise {
animation: tl-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tl-rise-delay-1 {
animation-delay: 0.12s;
}
.tl-rise-delay-2 {
animation-delay: 0.24s;
}
.tl-rise-delay-3 {
animation-delay: 0.36s;
}
@media (prefers-reduced-motion: reduce) {
.tl-rise,
.tloto-landing * {
animation: none !important;
}
}

View File

@ -88,24 +88,28 @@ export const en = {
tagline: 'Premium prediction platform',
title: 'Predict markets. Grow with confidence.',
subtitle:
'A premium prediction platform with instant settlement, secure USDT wallets, and a referral network built for serious players.',
ctaPrimary: 'Get started',
'Instant settlement, secure USDT wallets, and a referral network built for serious players.',
ctaPrimary: 'Create account',
ctaSecondary: 'Log in',
},
offers: {
title: 'Current offers',
subtitle: 'Active promotions and campaigns from the Tloto catalog.',
kicker: 'Campaigns',
title: 'What is live right now',
subtitle: 'Active promotions from the Tloto catalog.',
empty: 'New campaigns will appear here when published.',
},
games: {
title: 'Featured games',
subtitle: 'Explore what you can play after you sign in.',
kicker: 'Catalog',
title: 'Games worth opening an account for',
subtitle: 'Sign in to play — explore the featured titles first.',
empty: 'Games will appear here when the catalog is available.',
playCta: 'Sign in to play',
},
live: {
title: 'Live on the platform',
kicker: 'Pulse',
title: 'The floor never sleeps',
subtitle: 'Recent player activity and confirmed withdrawals.',
subtitleWithCount: '{{count}} players currently active — recent activity below.',
subtitleWithCount: '{{count}} players active now — live pulse below.',
},
feeds: {
activityTitle: 'Live activity',
@ -117,18 +121,20 @@ export const en = {
anonymized: 'Identifiers are anonymized for privacy.',
},
why: {
title: 'Why Tloto',
subtitle: 'Built for clarity, speed, and secure USDT settlement.',
kicker: 'Difference',
title: 'Built for clarity under pressure',
subtitle: 'Speed, security, and settlement you can verify.',
predictTitle: 'Predict',
predictBody: 'Clear markets, fast rounds, and transparent settlement when the candle closes.',
walletTitle: 'Wallet',
walletBody: 'Fund and withdraw in USDT with network rails designed for real on-chain payouts.',
walletBody: 'Fund and withdraw in USDT with rails designed for real on-chain payouts.',
referralTitle: 'Referral',
referralBody: 'Grow with a multi-level network and commissions paid from the platform bonus pool.',
referralBody: 'Grow a multi-level network with commissions paid from the platform bonus pool.',
},
faqCta: {
title: 'Questions before you start?',
subtitle: 'Browse the public FAQ, then create an account when you are ready.',
kicker: 'Ready when you are',
title: 'Start when the timing feels right',
subtitle: 'Browse the FAQ first — then create an account in under a minute.',
openFaq: 'Open FAQ',
createAccount: 'Create account',
},

View File

@ -88,24 +88,28 @@ export const fr = {
tagline: 'Plateforme de prédiction premium',
title: 'Prédisez les marchés. Progressez en confiance.',
subtitle:
'Une plateforme de prédiction premium avec règlement instantané, portefeuilles USDT sécurisés et un réseau de parrainage conçu pour les joueurs exigeants.',
ctaPrimary: 'Commencer',
'Règlement instantané, portefeuilles USDT sécurisés et un réseau de parrainage conçu pour les joueurs exigeants.',
ctaPrimary: 'Créer un compte',
ctaSecondary: 'Se connecter',
},
offers: {
title: 'Offres du moment',
subtitle: 'Promotions et campagnes actives du catalogue Tloto.',
kicker: 'Campagnes',
title: 'Ce qui est actif maintenant',
subtitle: 'Promotions actives du catalogue Tloto.',
empty: 'Les nouvelles campagnes apparaîtront ici dès leur publication.',
},
games: {
title: 'Jeux à la une',
subtitle: 'Découvrez ce que vous pourrez jouer après connexion.',
kicker: 'Catalogue',
title: 'Des jeux qui valent une inscription',
subtitle: 'Connectez-vous pour jouer — commencez par les titres à la une.',
empty: 'Les jeux apparaîtront ici lorsque le catalogue sera disponible.',
playCta: 'Se connecter pour jouer',
},
live: {
title: 'En direct sur la plateforme',
kicker: 'Pulsation',
title: 'Le floor ne dort jamais',
subtitle: 'Activité récente des joueurs et retraits confirmés.',
subtitleWithCount: '{{count}} joueurs actuellement actifs — activité récente ci-dessous.',
subtitleWithCount: '{{count}} joueurs actifs maintenant — pulsation ci-dessous.',
},
feeds: {
activityTitle: 'Activité en direct',
@ -117,18 +121,20 @@ export const fr = {
anonymized: 'Les identifiants sont anonymisés pour la confidentialité.',
},
why: {
title: 'Pourquoi Tloto',
subtitle: 'Clarté, rapidité et règlement USDT sécurisé.',
kicker: 'Différence',
title: 'Conçu pour rester clair sous pression',
subtitle: 'Vitesse, sécurité et un règlement que l’on peut vérifier.',
predictTitle: 'Prédire',
predictBody: 'Marchés clairs, manches rapides et règlement transparent à la clôture.',
walletTitle: 'Portefeuille',
walletBody: 'Déposez et retirez en USDT via des rails on-chain conçus pour de vrais paiements.',
walletBody: 'Déposez et retirez en USDT via des rails conçus pour de vrais paiements on-chain.',
referralTitle: 'Parrainage',
referralBody: 'Développez un réseau multi-niveaux avec des commissions issues du pool bonus.',
},
faqCta: {
title: 'Des questions avant de commencer ?',
subtitle: 'Consultez la FAQ publique, puis créez un compte quand vous êtes prêt.',
kicker: 'Quand vous voulez',
title: 'Commencez au moment qui vous convient',
subtitle: 'Parcourez d’abord la FAQ — puis créez un compte en moins d’une minute.',
openFaq: 'Ouvrir la FAQ',
createAccount: 'Créer un compte',
},