After adding the public webwelcome page
This commit is contained in:
parent
d0fae94d61
commit
feedb77779
@ -67,6 +67,11 @@ export const FaqPublicPage = lazyNamed(
|
||||
() => import('../../features/faq/FaqPublicPage'),
|
||||
'FaqPublicPage'
|
||||
);
|
||||
export const LandingEntry = lazyNamed(
|
||||
'LandingEntry',
|
||||
() => import('../../features/landing/LandingEntry'),
|
||||
'LandingEntry'
|
||||
);
|
||||
export const ShareResultVerifyPage = lazyNamed(
|
||||
'ShareResultVerifyPage',
|
||||
() => import('../../features/share-cards/ShareResultVerifyPage'),
|
||||
@ -226,6 +231,7 @@ const PATH_PRELOAD: Array<{ path: string; preload: () => Promise<unknown> }> = [
|
||||
{ path: '/forgot-password', preload: ForgotPasswordPage.preload },
|
||||
{ path: '/reset-password', preload: ResetPasswordPage.preload },
|
||||
{ path: '/faq', preload: FaqPublicPage.preload },
|
||||
{ path: '/', preload: LandingEntry.preload },
|
||||
{ path: '/share/r', preload: ShareResultVerifyPage.preload },
|
||||
{ path: '/home', preload: HomePage.preload },
|
||||
{ path: '/games', preload: GamePlayRoute.preload },
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
* Heavy feature pages are lazy-loaded so a hard refresh only parses the shell + active route.
|
||||
*/
|
||||
import { Suspense, type ReactNode } from 'react';
|
||||
import { createBrowserRouter, Navigate } from 'react-router-dom';
|
||||
import { createBrowserRouter } from 'react-router-dom';
|
||||
import { Box, CircularProgress } from '@mui/material';
|
||||
import { AppShell } from '../../shared/layout/AppShell';
|
||||
import { RequireAuth } from '../../shared/auth/RequireAuth';
|
||||
@ -15,6 +15,7 @@ import {
|
||||
ForgotPasswordPage,
|
||||
ResetPasswordPage,
|
||||
FaqPublicPage,
|
||||
LandingEntry,
|
||||
ShareResultVerifyPage,
|
||||
HomePage,
|
||||
GamePlayRoute,
|
||||
@ -121,12 +122,19 @@ export const router = createBrowserRouter([
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
element: (
|
||||
<L>
|
||||
<LandingEntry />
|
||||
</L>
|
||||
),
|
||||
},
|
||||
{
|
||||
// Pathless layout: protects /home, /wallet, /admin/*, etc. without owning `/`.
|
||||
element: <RequireAuth />,
|
||||
children: [
|
||||
{
|
||||
element: <AppShell />,
|
||||
children: [
|
||||
{ index: true, element: <Navigate to="/home" replace /> },
|
||||
{
|
||||
path: 'home',
|
||||
element: (
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
*/
|
||||
import { Alert, Box, Button, Card, CardContent, Link, Stack, TextField, Typography } from '@mui/material';
|
||||
import { useState, useCallback } from 'react';
|
||||
import { useLocation, useNavigate, Link as RouterLink } from 'react-router-dom';
|
||||
import { Navigate, useLocation, useNavigate, Link as RouterLink } from 'react-router-dom';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { api } from '../../shared/services/api';
|
||||
@ -48,7 +48,7 @@ export function LoginPage() {
|
||||
const { t } = useTranslation();
|
||||
const nav = useNavigate();
|
||||
const loc = useLocation() as any;
|
||||
const { setAuth } = useAuth();
|
||||
const { setAuth, isAuthenticated } = useAuth();
|
||||
|
||||
const [email, setEmail] = useState('');
|
||||
const [password, setPassword] = useState('');
|
||||
@ -111,6 +111,10 @@ export function LoginPage() {
|
||||
},
|
||||
});
|
||||
|
||||
if (isAuthenticated) {
|
||||
return <Navigate to={typeof from === 'string' ? from : '/home'} replace />;
|
||||
}
|
||||
|
||||
const resendVerification = async () => {
|
||||
setResendSuccess(null);
|
||||
setDevVerifyUrl(null);
|
||||
|
||||
@ -13,13 +13,14 @@ import {
|
||||
Typography,
|
||||
} from '@mui/material';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Link as RouterLink, useNavigate, useSearchParams } from 'react-router-dom';
|
||||
import { Link as RouterLink, Navigate, useNavigate, useSearchParams } from 'react-router-dom';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { Trans, useTranslation } from 'react-i18next';
|
||||
import { CountryAutocomplete, type CountryOption } from '../../shared/components/CountryAutocomplete';
|
||||
import { GenderSelect } from '../../shared/components/GenderSelect';
|
||||
import type { UserGender } from '../../shared/constants/userGender';
|
||||
import { api } from '../../shared/services/api';
|
||||
import { useAuth } from '../../shared/auth/AuthContext';
|
||||
import { LanguageSwitcher } from '../../shared/i18n/LanguageSwitcher';
|
||||
import { PrediqoLogo } from '../../shared/brand/PrediqoLogo';
|
||||
import { apiErrorMessage } from '../../shared/utils/apiError';
|
||||
@ -34,6 +35,7 @@ type RegisterResponse = {
|
||||
export function RegisterPage() {
|
||||
const { t } = useTranslation();
|
||||
const nav = useNavigate();
|
||||
const { isAuthenticated } = useAuth();
|
||||
const [searchParams] = useSearchParams();
|
||||
const refFromUrl = searchParams.get('ref') ?? '';
|
||||
|
||||
@ -93,6 +95,10 @@ export function RegisterPage() {
|
||||
return () => clearTimeout(timer);
|
||||
}, [referralCode]);
|
||||
|
||||
if (isAuthenticated) {
|
||||
return <Navigate to="/home" replace />;
|
||||
}
|
||||
|
||||
const localizeReferralReason = (reason: string | null | undefined): string => {
|
||||
if (!reason?.trim()) return t('auth.referralUnknown');
|
||||
const key = `auth.referralReasons.${reason}` as const;
|
||||
|
||||
@ -167,7 +167,7 @@ export function FaqPage({ showPublicHeader = false }: FaqPageProps) {
|
||||
>
|
||||
<Box
|
||||
component={RouterLink}
|
||||
to={isLoggedIn ? '/home' : '/login'}
|
||||
to={isLoggedIn ? '/home' : '/'}
|
||||
sx={{ textDecoration: 'none', color: 'inherit', display: 'inline-flex' }}
|
||||
>
|
||||
<PrediqoLogo size={28} />
|
||||
|
||||
14
prediqo_web/src/features/landing/LandingEntry.tsx
Normal file
14
prediqo_web/src/features/landing/LandingEntry.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Root index: public landing for guests, home redirect for signed-in users.
|
||||
*/
|
||||
import { Navigate } from 'react-router-dom';
|
||||
import { useAuth } from '../../shared/auth/AuthContext';
|
||||
import { LandingPage } from './LandingPage';
|
||||
|
||||
export function LandingEntry() {
|
||||
const { isAuthenticated } = useAuth();
|
||||
if (isAuthenticated) {
|
||||
return <Navigate to="/home" replace />;
|
||||
}
|
||||
return <LandingPage />;
|
||||
}
|
||||
293
prediqo_web/src/features/landing/LandingPage.tsx
Normal file
293
prediqo_web/src/features/landing/LandingPage.tsx
Normal file
@ -0,0 +1,293 @@
|
||||
/**
|
||||
* Public Tloto marketing landing — first page for unauthenticated web visitors.
|
||||
*/
|
||||
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 { 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); }
|
||||
`;
|
||||
|
||||
function scrollToId(id: string) {
|
||||
const el = document.getElementById(id);
|
||||
if (!el) return;
|
||||
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||
}
|
||||
|
||||
/** Guest marketing home for the Tloto web app. */
|
||||
export function LandingPage() {
|
||||
const { t } = useTranslation();
|
||||
const gamesQ = useGames();
|
||||
const heroQ = useHeroAdvertisements();
|
||||
const activityQ = useActivityFeed();
|
||||
const withdrawalsQ = useWithdrawalFeed();
|
||||
|
||||
const navItems = useMemo(
|
||||
() => [
|
||||
{ id: 'offers', label: t('landing.nav.offers') },
|
||||
{ id: 'games', label: t('landing.nav.games') },
|
||||
{ id: 'live', label: t('landing.nav.live') },
|
||||
{ id: 'why', label: t('landing.nav.why') },
|
||||
{ id: 'faq-cta', label: t('landing.nav.faq') },
|
||||
],
|
||||
[t]
|
||||
);
|
||||
|
||||
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'),
|
||||
},
|
||||
];
|
||||
|
||||
const activityRows = (activityQ.data?.items ?? []).map((item) => ({
|
||||
id: item.id,
|
||||
left: item.publicId,
|
||||
right: item.statusLabel,
|
||||
}));
|
||||
|
||||
const withdrawalRows = (withdrawalsQ.data?.items ?? []).map((item) => ({
|
||||
id: item.id,
|
||||
left: item.publicId,
|
||||
right: `${item.amountLabel} USDT`,
|
||||
}));
|
||||
|
||||
const activePlayers = activityQ.data?.activePlayersCount;
|
||||
|
||||
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%)',
|
||||
}}
|
||||
>
|
||||
<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`,
|
||||
}}
|
||||
>
|
||||
<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={{
|
||||
display: 'grid',
|
||||
gap: 2,
|
||||
gridTemplateColumns: { xs: '1fr', md: '1fr 1fr' },
|
||||
}}
|
||||
>
|
||||
<LandingFeedStrip
|
||||
title={t('landing.feeds.activityTitle')}
|
||||
subtitle={t('landing.feeds.activitySubtitle')}
|
||||
rows={activityRows}
|
||||
loading={activityQ.isLoading}
|
||||
rotateSeconds={activityQ.data?.listRotateSeconds ?? 8}
|
||||
emptyLabel={t('landing.feeds.activityEmpty')}
|
||||
accent="#10B981"
|
||||
/>
|
||||
<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>
|
||||
|
||||
<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={{
|
||||
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' }}
|
||||
>
|
||||
<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>
|
||||
);
|
||||
}
|
||||
120
prediqo_web/src/features/landing/components/LandingFeedStrip.tsx
Normal file
120
prediqo_web/src/features/landing/components/LandingFeedStrip.tsx
Normal file
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* Rotating live activity / withdrawal strips for social proof (API-backed only).
|
||||
*/
|
||||
import { Box, Stack, Typography, keyframes, Skeleton } from '@mui/material';
|
||||
import { useEffect, useState } 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;
|
||||
right: string;
|
||||
};
|
||||
|
||||
type LandingFeedStripProps = {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
rows: FeedRow[];
|
||||
loading?: boolean;
|
||||
rotateSeconds?: number;
|
||||
emptyLabel: string;
|
||||
accent?: string;
|
||||
};
|
||||
|
||||
export function LandingFeedStrip({
|
||||
title,
|
||||
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]);
|
||||
|
||||
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 }}>
|
||||
{title}
|
||||
</Typography>
|
||||
<Typography variant="body2" sx={{ opacity: 0.65, mb: 2 }}>
|
||||
{subtitle}
|
||||
</Typography>
|
||||
|
||||
{loading && (
|
||||
<Stack spacing={1.25}>
|
||||
{[0, 1, 2].map((i) => (
|
||||
<Skeleton key={i} variant="rounded" height={36} sx={{ borderRadius: 1.5 }} />
|
||||
))}
|
||||
</Stack>
|
||||
)}
|
||||
|
||||
{!loading && visible.length === 0 && (
|
||||
<Typography variant="body2" sx={{ opacity: 0.55, py: 2 }}>
|
||||
{emptyLabel}
|
||||
</Typography>
|
||||
)}
|
||||
|
||||
{!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' }}
|
||||
>
|
||||
{row.right}
|
||||
</Typography>
|
||||
</Stack>
|
||||
))}
|
||||
<Typography variant="caption" sx={{ opacity: 0.45, pt: 0.5 }}>
|
||||
{t('landing.feeds.anonymized')}
|
||||
</Typography>
|
||||
</Stack>
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
138
prediqo_web/src/features/landing/components/LandingGamePeek.tsx
Normal file
138
prediqo_web/src/features/landing/components/LandingGamePeek.tsx
Normal file
@ -0,0 +1,138 @@
|
||||
/**
|
||||
* Featured games peek — guest taps route to login (not play).
|
||||
*/
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
Chip,
|
||||
Stack,
|
||||
Typography,
|
||||
Skeleton,
|
||||
alpha,
|
||||
} from '@mui/material';
|
||||
import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded';
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import type { Game } from '../../home/types';
|
||||
|
||||
type LandingGamePeekProps = {
|
||||
games: Game[];
|
||||
loading?: boolean;
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
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={{
|
||||
display: 'grid',
|
||||
gap: 2,
|
||||
gridTemplateColumns: { xs: '1fr', sm: '1fr 1fr', md: 'repeat(4, 1fr)' },
|
||||
}}
|
||||
>
|
||||
{[0, 1, 2, 3].map((i) => (
|
||||
<Skeleton key={i} variant="rounded" height={220} sx={{ borderRadius: 2 }} />
|
||||
))}
|
||||
</Box>
|
||||
)}
|
||||
|
||||
{!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),
|
||||
},
|
||||
}}
|
||||
>
|
||||
<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%)`,
|
||||
}}
|
||||
/>
|
||||
<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) },
|
||||
}}
|
||||
>
|
||||
{t('landing.games.playCta')}
|
||||
</Button>
|
||||
</Stack>
|
||||
</Box>
|
||||
);
|
||||
})}
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
162
prediqo_web/src/features/landing/components/LandingHeader.tsx
Normal file
162
prediqo_web/src/features/landing/components/LandingHeader.tsx
Normal file
@ -0,0 +1,162 @@
|
||||
/**
|
||||
* Sticky public header for the Tloto landing page.
|
||||
*/
|
||||
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 { Link as RouterLink } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { PrediqoLogo } from '../../../shared/brand/PrediqoLogo';
|
||||
import { LanguageSwitcher } from '../../../shared/i18n/LanguageSwitcher';
|
||||
|
||||
type NavItem = { id: string; label: string };
|
||||
|
||||
type LandingHeaderProps = {
|
||||
navItems: NavItem[];
|
||||
onNavigateSection: (id: string) => void;
|
||||
};
|
||||
|
||||
export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProps) {
|
||||
const { t } = useTranslation();
|
||||
const [mobileOpen, setMobileOpen] = useState(false);
|
||||
|
||||
const go = (id: string) => {
|
||||
setMobileOpen(false);
|
||||
onNavigateSection(id);
|
||||
};
|
||||
|
||||
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)',
|
||||
}}
|
||||
>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
{navItems.map((item) => (
|
||||
<ListItemButton key={item.id} onClick={() => go(item.id)}>
|
||||
<ListItemText primary={item.label} primaryTypographyProps={{ fontWeight: 700 }} />
|
||||
</ListItemButton>
|
||||
))}
|
||||
</List>
|
||||
<Divider sx={{ opacity: 0.2 }} />
|
||||
<Stack spacing={1.25} sx={{ p: 2 }}>
|
||||
<Button component={RouterLink} to="/login" variant="outlined" fullWidth sx={{ fontWeight: 800 }}>
|
||||
{t('landing.nav.login')}
|
||||
</Button>
|
||||
<Button component={RouterLink} to="/register" variant="contained" fullWidth sx={{ fontWeight: 800 }}>
|
||||
{t('landing.nav.register')}
|
||||
</Button>
|
||||
<Button component={RouterLink} to="/faq" color="inherit" fullWidth sx={{ fontWeight: 700 }}>
|
||||
{t('landing.nav.faq')}
|
||||
</Button>
|
||||
</Stack>
|
||||
</Drawer>
|
||||
</>
|
||||
);
|
||||
}
|
||||
145
prediqo_web/src/features/landing/components/LandingHero.tsx
Normal file
145
prediqo_web/src/features/landing/components/LandingHero.tsx
Normal file
@ -0,0 +1,145 @@
|
||||
/**
|
||||
* Full-bleed hero: brand-forward headline + primary CTAs.
|
||||
*/
|
||||
import { Box, Button, Container, Stack, Typography, keyframes } from '@mui/material';
|
||||
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); }
|
||||
`;
|
||||
|
||||
export function LandingHero() {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<Box
|
||||
component="section"
|
||||
id="top"
|
||||
sx={{
|
||||
position: 'relative',
|
||||
overflow: 'hidden',
|
||||
minHeight: { xs: '88vh', md: '92vh' },
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
borderBottom: '1px solid rgba(255,255,255,0.06)',
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
aria-hidden
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
inset: '-10% -5% auto auto',
|
||||
width: { xs: 280, md: 520 },
|
||||
height: { xs: 280, md: 520 },
|
||||
borderRadius: '50%',
|
||||
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',
|
||||
}}
|
||||
/>
|
||||
<Box
|
||||
aria-hidden
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
inset: 'auto auto -15% -8%',
|
||||
width: { xs: 260, md: 480 },
|
||||
height: { xs: 260, md: 480 },
|
||||
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`,
|
||||
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`,
|
||||
}}
|
||||
>
|
||||
<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>
|
||||
);
|
||||
}
|
||||
32
prediqo_web/src/features/landing/hooks/useMarketingFeeds.ts
Normal file
32
prediqo_web/src/features/landing/hooks/useMarketingFeeds.ts
Normal file
@ -0,0 +1,32 @@
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { api } from '../../../shared/services/api';
|
||||
import type { MarketingActivityFeed, MarketingWithdrawalFeed } from '../types';
|
||||
|
||||
export function useActivityFeed() {
|
||||
return useQuery({
|
||||
queryKey: ['marketing', 'activity-feed'],
|
||||
queryFn: async () => {
|
||||
const res = await api.get<MarketingActivityFeed>('/api/v1/marketing/activity-feed');
|
||||
return res.data;
|
||||
},
|
||||
staleTime: 15_000,
|
||||
refetchInterval: (query) => {
|
||||
const seconds = query.state.data?.clientRefreshSeconds ?? 30;
|
||||
return Math.min(120_000, Math.max(10_000, seconds * 1000));
|
||||
},
|
||||
retry: 1,
|
||||
});
|
||||
}
|
||||
|
||||
export function useWithdrawalFeed() {
|
||||
return useQuery({
|
||||
queryKey: ['marketing', 'withdrawal-feed'],
|
||||
queryFn: async () => {
|
||||
const res = await api.get<MarketingWithdrawalFeed>('/api/v1/marketing/withdrawal-feed');
|
||||
return res.data;
|
||||
},
|
||||
staleTime: 20_000,
|
||||
refetchInterval: 45_000,
|
||||
retry: 1,
|
||||
});
|
||||
}
|
||||
31
prediqo_web/src/features/landing/types.ts
Normal file
31
prediqo_web/src/features/landing/types.ts
Normal file
@ -0,0 +1,31 @@
|
||||
export type MarketingActivityItem = {
|
||||
id: string;
|
||||
publicId: string;
|
||||
kind: 'bet';
|
||||
amountLabel: string;
|
||||
statusLabel: string;
|
||||
createdAt: string;
|
||||
synthetic: boolean;
|
||||
};
|
||||
|
||||
export type MarketingWithdrawalItem = {
|
||||
id: string;
|
||||
publicId: string;
|
||||
amountLabel: string;
|
||||
statusLabel: string;
|
||||
createdAt: string;
|
||||
synthetic: boolean;
|
||||
};
|
||||
|
||||
export type MarketingActivityFeed = {
|
||||
items: MarketingActivityItem[];
|
||||
activePlayersCount: number;
|
||||
clientRefreshSeconds: number;
|
||||
listRotateSeconds: number;
|
||||
syntheticEnabled: boolean;
|
||||
};
|
||||
|
||||
export type MarketingWithdrawalFeed = {
|
||||
items: MarketingWithdrawalItem[];
|
||||
clientRefreshSeconds?: number;
|
||||
};
|
||||
@ -74,6 +74,68 @@ export const en = {
|
||||
security: 'Security',
|
||||
settings: 'Settings',
|
||||
},
|
||||
landing: {
|
||||
nav: {
|
||||
login: 'Log in',
|
||||
register: 'Sign up',
|
||||
offers: 'Offers',
|
||||
games: 'Games',
|
||||
live: 'Live',
|
||||
why: 'Why Tloto',
|
||||
faq: 'FAQ',
|
||||
},
|
||||
hero: {
|
||||
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',
|
||||
ctaSecondary: 'Log in',
|
||||
},
|
||||
offers: {
|
||||
title: 'Current offers',
|
||||
subtitle: 'Active promotions and campaigns from the Tloto catalog.',
|
||||
},
|
||||
games: {
|
||||
title: 'Featured games',
|
||||
subtitle: 'Explore what you can play after you sign in.',
|
||||
empty: 'Games will appear here when the catalog is available.',
|
||||
playCta: 'Sign in to play',
|
||||
},
|
||||
live: {
|
||||
title: 'Live on the platform',
|
||||
subtitle: 'Recent player activity and confirmed withdrawals.',
|
||||
subtitleWithCount: '{{count}} players currently active — recent activity below.',
|
||||
},
|
||||
feeds: {
|
||||
activityTitle: 'Live activity',
|
||||
activitySubtitle: 'Players currently in a round.',
|
||||
activityEmpty: 'No live activity to show right now.',
|
||||
withdrawalsTitle: 'Recent withdrawals',
|
||||
withdrawalsSubtitle: 'Confirmed payouts (anonymized).',
|
||||
withdrawalsEmpty: 'No recent withdrawals to display.',
|
||||
anonymized: 'Identifiers are anonymized for privacy.',
|
||||
},
|
||||
why: {
|
||||
title: 'Why Tloto',
|
||||
subtitle: 'Built for clarity, speed, and secure USDT settlement.',
|
||||
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.',
|
||||
referralTitle: 'Referral',
|
||||
referralBody: 'Grow with a multi-level network and 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.',
|
||||
openFaq: 'Open FAQ',
|
||||
createAccount: 'Create account',
|
||||
},
|
||||
footer: {
|
||||
rights: '© Tloto. All rights reserved.',
|
||||
},
|
||||
},
|
||||
auth: {
|
||||
brandSubtitle: 'Prediction games platform — sign in to manage or play.',
|
||||
signIn: 'Sign in',
|
||||
|
||||
@ -74,6 +74,68 @@ export const fr = {
|
||||
security: 'Sécurité',
|
||||
settings: 'Paramètres',
|
||||
},
|
||||
landing: {
|
||||
nav: {
|
||||
login: 'Se connecter',
|
||||
register: "S'inscrire",
|
||||
offers: 'Offres',
|
||||
games: 'Jeux',
|
||||
live: 'En direct',
|
||||
why: 'Pourquoi Tloto',
|
||||
faq: 'FAQ',
|
||||
},
|
||||
hero: {
|
||||
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',
|
||||
ctaSecondary: 'Se connecter',
|
||||
},
|
||||
offers: {
|
||||
title: 'Offres du moment',
|
||||
subtitle: 'Promotions et campagnes actives du catalogue Tloto.',
|
||||
},
|
||||
games: {
|
||||
title: 'Jeux à la une',
|
||||
subtitle: 'Découvrez ce que vous pourrez jouer après connexion.',
|
||||
empty: 'Les jeux apparaîtront ici lorsque le catalogue sera disponible.',
|
||||
playCta: 'Se connecter pour jouer',
|
||||
},
|
||||
live: {
|
||||
title: 'En direct sur la plateforme',
|
||||
subtitle: 'Activité récente des joueurs et retraits confirmés.',
|
||||
subtitleWithCount: '{{count}} joueurs actuellement actifs — activité récente ci-dessous.',
|
||||
},
|
||||
feeds: {
|
||||
activityTitle: 'Activité en direct',
|
||||
activitySubtitle: 'Joueurs actuellement dans une manche.',
|
||||
activityEmpty: 'Aucune activité à afficher pour le moment.',
|
||||
withdrawalsTitle: 'Retraits récents',
|
||||
withdrawalsSubtitle: 'Paiements confirmés (anonymisés).',
|
||||
withdrawalsEmpty: 'Aucun retrait récent à afficher.',
|
||||
anonymized: 'Les identifiants sont anonymisés pour la confidentialité.',
|
||||
},
|
||||
why: {
|
||||
title: 'Pourquoi Tloto',
|
||||
subtitle: 'Clarté, rapidité et règlement USDT sécurisé.',
|
||||
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.',
|
||||
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.',
|
||||
openFaq: 'Ouvrir la FAQ',
|
||||
createAccount: 'Créer un compte',
|
||||
},
|
||||
footer: {
|
||||
rights: '© Tloto. Tous droits réservés.',
|
||||
},
|
||||
},
|
||||
auth: {
|
||||
brandSubtitle:
|
||||
'Plateforme de jeux de prédiction — connectez-vous pour gérer ou jouer.',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user