After adding the public webwelcome page2

This commit is contained in:
Your Name 2026-10-30 13:35:36 +02:00
parent 685cad9869
commit 3b5cbfe2a8
8 changed files with 1099 additions and 594 deletions

View File

@ -1,7 +1,8 @@
/**
* Public Tloto web landing — cinematic composition, not a mobile dashboard clone.
* Public Tloto web landing — desktop-first "nocturnal prediction exchange".
* One composition per section, dense editorial rhythm, no empty voids.
*/
import { useEffect, useMemo, type CSSProperties } from 'react';
import { useEffect, useMemo } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { useGames, useHeroAdvertisements } from '../home/hooks/useCatalog';
@ -17,6 +18,7 @@ function scrollToId(id: string) {
document.getElementById(id)?.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
/** Loads the expressive display/body fonts once on mount. */
function ensureLandingFonts() {
const id = 'tloto-landing-fonts';
if (document.getElementById(id)) return;
@ -35,6 +37,35 @@ function ensureLandingFonts() {
document.head.append(preconnect1, preconnect2, stylesheet);
}
/**
* Reveals elements tagged `.tl-reveal` as they enter the viewport.
* Soft-fails (reveals everything) when IntersectionObserver is unavailable or
* the user prefers reduced motion.
*/
function useScrollReveal() {
useEffect(() => {
const nodes = Array.from(document.querySelectorAll<HTMLElement>('.tl-reveal'));
const reduce = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
if (reduce || typeof IntersectionObserver === 'undefined') {
nodes.forEach((n) => n.classList.add('tl-in'));
return;
}
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add('tl-in');
observer.unobserve(entry.target);
}
});
},
{ threshold: 0.14, rootMargin: '0px 0px -8% 0px' }
);
nodes.forEach((n) => observer.observe(n));
return () => observer.disconnect();
}, []);
}
/** Guest marketing home for the Tloto web app. */
export function LandingPage() {
const { t } = useTranslation();
@ -47,6 +78,8 @@ export function LandingPage() {
ensureLandingFonts();
}, []);
useScrollReveal();
const navItems = useMemo(
() => [
{ id: 'offers', label: t('landing.nav.offers') },
@ -78,112 +111,75 @@ export function LandingPage() {
const activePlayers = activityQ.data?.activePlayersCount;
const heroAd = (heroQ.data ?? [])[0] ?? null;
const offerMedia = heroAd?.imageUrl
? `linear-gradient(100deg, rgba(5,8,14,0.72), rgba(5,8,14,0.28) 55%, rgba(5,8,14,0.62)), center/cover no-repeat url(${heroAd.imageUrl})`
: heroAd?.backgroundGradient || undefined;
return (
<div className="tloto-landing">
<LandingHeader navItems={navItems} onNavigateSection={scrollToId} />
<LandingHero />
{/* 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',
}}
>
<div
style={{
maxWidth: 1180,
margin: '0 auto',
padding: 'clamp(2.5rem, 6vw, 4.5rem) 1.5rem',
display: 'grid',
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>
{/* Offers — one full-bleed cinematic promotional band from the first hero ad */}
<section id="offers" className="tl-offers tl-reveal" style={{ scrollMarginTop: 96 }}>
{offerMedia && <div className="tl-offers__media" aria-hidden style={{ background: offerMedia }} />}
<div className="tl-offers__scrim" aria-hidden />
<div className="tl-container tl-offers__inner">
<p className="tl-eyebrow tl-eyebrow--gold">{t('landing.offers.kicker')}</p>
{heroQ.isLoading && <p className="tl-muted">{t('common.loading')}</p>}
{!heroQ.isLoading && !heroAd && (
<>
<h2 className="tl-display tl-offers__title">{t('landing.offers.title')}</h2>
<p className="tl-offers__sub">{t('landing.offers.empty')}</p>
</>
)}
{heroAd && (
<>
<h2 className="tl-display tl-offers__title">{heroAd.title}</h2>
{heroAd.subtitle && <p className="tl-offers__sub">{heroAd.subtitle}</p>}
<RouterLink
to={heroAd.linkUrl?.startsWith('/') ? '/login' : '/register'}
className="tl-btn"
style={{
justifySelf: 'start',
marginTop: '0.75rem',
color: '#04110c',
background: heroAd.accentColor || '#10B981',
}}
>
{heroAd.ctaLabel || t('landing.hero.ctaPrimary')}
</RouterLink>
</>
)}
</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',
}}
>
{/* Live — dual ticker boards side by side */}
<section id="live" className="tl-section tl-divider-top tl-reveal">
<div className="tl-container">
<div className="tl-live-head">
<div>
<p className="tl-eyebrow">{t('landing.live.kicker')}</p>
<h2 className="tl-display tl-h2">{t('landing.live.title')}</h2>
<p className="tl-muted" style={{ marginTop: '0.75rem', maxWidth: '32rem' }}>
{t('landing.live.subtitle')}
</p>
</div>
{typeof activePlayers === 'number' && activePlayers > 0 && (
<span className="tl-live-pill">
<span className="tl-dot" />
{t('landing.live.subtitleWithCount', { count: activePlayers })}
</span>
)}
</div>
<div className="tl-live-grid">
<LandingFeedStrip
title={t('landing.feeds.activityTitle')}
subtitle={t('landing.feeds.activitySubtitle')}
@ -204,189 +200,66 @@ export function LandingPage() {
</div>
</section>
<section
id="why"
style={{
padding: '5rem 0',
scrollMarginTop: 96,
borderTop: '1px solid rgba(255,255,255,0.08)',
}}
>
<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>
{/* Why — three numbered columns with hairline separators */}
<section id="why" className="tl-section tl-divider-top tl-reveal">
<div className="tl-container">
<div className="tl-why-head">
<p className="tl-eyebrow">{t('landing.why.kicker')}</p>
<h2 className="tl-display tl-h2">{t('landing.why.title')}</h2>
<p className="tl-muted" style={{ 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"
>
<div className="tl-why-grid">
{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 key={item.title} className="tl-why-col">
<p className="tl-display tl-why-num">{String(i + 1).padStart(2, '0')}</p>
<h3 className="tl-display tl-why-title">{item.title}</h3>
<p className="tl-why-body">{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>
{/* Closing CTA band */}
<section id="faq-cta" className="tl-closing tl-reveal">
<div className="tl-container">
<p className="tl-eyebrow" style={{ justifyContent: 'center' }}>
{t('landing.faqCta.kicker')}
</p>
<h2 className="tl-display tl-closing__title">{t('landing.faqCta.title')}</h2>
<p className="tl-closing__sub">{t('landing.faqCta.subtitle')}</p>
<div className="tl-closing__ctas">
<RouterLink to="/faq" className="tl-btn tl-btn--ghost">
{t('landing.faqCta.openFaq')}
</RouterLink>
<RouterLink to="/register" className="tl-btn tl-btn--primary">
{t('landing.faqCta.createAccount')}
</RouterLink>
</div>
</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',
}}
>
<footer className="tl-footer">
<div className="tl-container tl-footer__inner">
<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}>
<div className="tl-footer__links">
<RouterLink to="/login" className="tl-footer__link">
{t('landing.nav.login')}
</RouterLink>
<RouterLink to="/register" style={footerLink}>
<RouterLink to="/register" className="tl-footer__link">
{t('landing.nav.register')}
</RouterLink>
<RouterLink to="/faq" style={footerLink}>
<RouterLink to="/faq" className="tl-footer__link">
{t('landing.nav.faq')}
</RouterLink>
</div>
<span style={{ fontSize: '0.78rem', color: 'rgba(238,243,251,0.4)' }}>
{t('landing.footer.rights')}
</span>
<span className="tl-footer__rights">{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,5 +1,6 @@
/**
* Continuous marquee of live activity / withdrawals — editorial, not card stacks.
* Compact live ticker board — a bordered panel with a continuous marquee of
* anonymized activity. Designed to sit side-by-side with a sibling board.
*/
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@ -31,14 +32,16 @@ export function LandingFeedStrip({
const loop = useMemo(() => (rows.length ? [...rows, ...rows] : []), [rows]);
return (
<div style={{ minWidth: 0 }}>
<h3 className="tl-display" style={{ margin: '0 0 0.4rem', fontSize: '1.45rem', fontWeight: 800 }}>
{title}
</h3>
<p style={{ margin: '0 0 1.25rem', color: 'var(--tl-mute)', fontSize: '0.95rem' }}>{subtitle}</p>
<div className="tl-feed">
<div className="tl-feed__head">
<div>
<h3 className="tl-display tl-feed__title">{title}</h3>
<p className="tl-feed__sub">{subtitle}</p>
</div>
</div>
{loading && (
<div style={{ height: 56, borderRadius: 999, background: 'rgba(255,255,255,0.04)' }} />
<div style={{ height: 52, borderRadius: 999, background: 'rgba(255,255,255,0.04)' }} />
)}
{!loading && rows.length === 0 && (
@ -46,44 +49,21 @@ export function LandingFeedStrip({
)}
{!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',
}}
>
<span style={{ fontWeight: 700, fontSize: '0.92rem' }}>{row.left}</span>
<span style={{ fontWeight: 800, color: accent, fontSize: '0.92rem' }}>{row.right}</span>
</div>
))}
<>
<div className="tl-feed__viewport">
<div className={`tl-feed__track${rows.length > 2 ? ' tl-feed__track--animate' : ''}`}>
{loop.map((row, i) => (
<div key={`${row.id}-${i}`} className="tl-chip">
<span className="tl-chip__left">{row.left}</span>
<span className="tl-chip__right" style={{ color: accent }}>
{row.right}
</span>
</div>
))}
</div>
</div>
<p style={{ margin: '0.85rem 0 0', fontSize: '0.75rem', color: 'rgba(238,243,251,0.4)' }}>
{t('landing.feeds.anonymized')}
</p>
</div>
<p className="tl-feed__foot">{t('landing.feeds.anonymized')}</p>
</>
)}
</div>
);

View File

@ -1,5 +1,6 @@
/**
* Editorial games strip — large visual rows, not a card grid.
* Large split product showcases for 1–2 featured games — fills horizontal space,
* feels product-like on desktop (atmosphere/image | copy + CTA).
*/
import type { CSSProperties } from 'react';
import { Link as RouterLink } from 'react-router-dom';
@ -13,38 +14,29 @@ type LandingGamePeekProps = {
export function LandingGamePeek({ games, loading }: LandingGamePeekProps) {
const { t } = useTranslation();
const featured = games.filter((g) => g.isFeatured).slice(0, 3);
const list = featured.length > 0 ? featured : games.slice(0, 3);
const featured = games.filter((g) => g.isFeatured).slice(0, 2);
const list = featured.length > 0 ? featured : games.slice(0, 2);
return (
<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: '1.5rem',
gridTemplateColumns: 'minmax(0, 1fr)',
alignItems: 'end',
marginBottom: '2.75rem',
}}
className="tl-games-head"
>
<section id="games" className="tl-section tl-reveal">
<div className="tl-container">
<div className="tl-games-head">
<div>
<p style={eyebrow}>{t('landing.games.kicker')}</p>
<h2 className="tl-display" style={sectionTitle}>
{t('landing.games.title')}
</h2>
<p className="tl-eyebrow">{t('landing.games.kicker')}</p>
<h2 className="tl-display tl-h2">{t('landing.games.title')}</h2>
</div>
<p style={{ ...muted, maxWidth: 380, margin: 0 }}>{t('landing.games.subtitle')}</p>
<p className="tl-muted" style={{ maxWidth: '24rem', margin: 0 }}>
{t('landing.games.subtitle')}
</p>
</div>
{loading && (
<div style={{ display: 'grid', gap: 16 }}>
<div className="tl-games-list">
{[0, 1].map((i) => (
<div
key={i}
style={{
height: 220,
minHeight: 320,
borderRadius: 28,
background: 'rgba(255,255,255,0.04)',
border: '1px solid rgba(255,255,255,0.06)',
@ -54,78 +46,35 @@ export function LandingGamePeek({ games, loading }: LandingGamePeekProps) {
</div>
)}
{!loading && list.length === 0 && <p style={muted}>{t('landing.games.empty')}</p>}
{!loading && list.length === 0 && <p className="tl-muted">{t('landing.games.empty')}</p>}
{!loading && list.length > 0 && (
<div style={{ display: 'grid', gap: 18 }}>
<div className="tl-games-list">
{list.map((game, index) => {
const accent = game.accentColor || '#10B981';
const reverse = index % 2 === 1;
const mediaBg = game.thumbnailUrl
? `linear-gradient(135deg, ${accent}2e, transparent 60%), center/cover no-repeat url(${game.thumbnailUrl})`
: `radial-gradient(circle at 32% 30%, ${accent}66, transparent 58%), linear-gradient(145deg, #121a2a, #0a0e16)`;
return (
<RouterLink
key={game.id}
to="/login"
className={`tl-game${reverse ? ' tl-game--reverse' : ''}`}
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',
background: `linear-gradient(135deg, ${accent}1f 0%, rgba(10,14,22,0.94) 50%)`,
}}
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',
}}
>
<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>
)}
<div className="tl-game__media" style={{ background: mediaBg }} />
<div className="tl-game__body">
<span className="tl-eyebrow" style={{ color: accent, ...accentEyebrow }}>
{game.category}
</span>
<h3 className="tl-display tl-game__title">{game.title}</h3>
{game.description && <p className="tl-muted tl-game__desc">{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,
}}
className="tl-btn tl-btn--sm tl-game__cta"
style={{ color: '#04110c', background: accent }}
>
{t('landing.games.playCta')}
</span>
@ -136,38 +85,11 @@ export function LandingGamePeek({ games, loading }: LandingGamePeekProps) {
</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',
/** Override the eyebrow's leading-line color to match the game accent. */
const accentEyebrow: CSSProperties = {
marginBottom: 0,
};

View File

@ -30,7 +30,7 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
>
<div
style={{
maxWidth: 1180,
maxWidth: 1360,
margin: '0 auto',
display: 'flex',
alignItems: 'center',
@ -115,7 +115,7 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
{open && (
<div
style={{
maxWidth: 1180,
maxWidth: 1360,
margin: '0.6rem auto 0',
padding: '1rem',
borderRadius: 20,

View File

@ -1,174 +1,78 @@
/**
* Full-bleed cinematic hero — brand dominates; one message; one CTA group.
* Desktop-first hero — left copy stack (brand dominates) + right full-bleed
* market-atmosphere plane built entirely from CSS (candlesticks, glow, brand light).
*/
import type { CSSProperties } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { PLATFORM_WORDMARK } from '../../../shared/brand/platformName';
/** Candlestick heights/direction for the atmospheric chart (deterministic, not data). */
const CANDLES: Array<{ h: number; up: boolean; live?: boolean }> = [
{ h: 38, up: true },
{ h: 54, up: false },
{ h: 30, up: true },
{ h: 62, up: true },
{ h: 44, up: false },
{ h: 72, up: true },
{ h: 50, up: false },
{ h: 84, up: true },
{ h: 60, up: true },
{ h: 46, up: false },
{ h: 78, up: true },
{ h: 92, up: true, live: true },
{ h: 66, up: false },
{ h: 100, up: true },
];
export function LandingHero() {
const { t } = useTranslation();
return (
<section
id="top"
style={{
position: 'relative',
minHeight: '100svh',
display: 'grid',
alignItems: 'end',
overflow: 'hidden',
isolation: 'isolate',
}}
>
{/* Full-bleed atmospheric plane */}
<div
aria-hidden
style={{
position: 'absolute',
inset: 0,
zIndex: 0,
background:
'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%)',
}}
/>
<div
aria-hidden
style={{
position: 'absolute',
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(16,185,129,0.35), transparent 68%)',
filter: 'blur(8px)',
animation: 'tl-glow 7s ease-in-out infinite',
pointerEvents: 'none',
}}
/>
<section id="top" className="tl-hero">
{/* Full-bleed market atmosphere plane (right ~60% on desktop) */}
<div className="tl-hero-visual" aria-hidden>
<div className="tl-hero-glow" />
<div className="tl-hero-mark" />
<div className="tl-candles">
{CANDLES.map((c, i) => (
<span
key={i}
className={`tl-candle ${c.up ? 'tl-candle--up' : 'tl-candle--down'}${
c.live ? ' tl-candle--live' : ''
}`}
style={{ height: `${c.h}%`, animationDelay: `${i * 0.06}s` }}
/>
))}
</div>
</div>
<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)',
}}
>
{t('landing.hero.tagline')}
</p>
<div className="tl-container tl-hero-inner">
<div className="tl-hero-copy">
<p className="tl-eyebrow tl-hero-tagline tl-rise">{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>
<h1 className="tl-display tl-wordmark tl-rise tl-rise-delay-1">{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-display tl-hero-headline tl-rise tl-rise-delay-2">
{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>
<p className="tl-hero-sentence tl-rise tl-rise-delay-2">{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 className="tl-hero-ctas tl-rise tl-rise-delay-3">
<RouterLink to="/register" className="tl-btn tl-btn--primary">
{t('landing.hero.ctaPrimary')}
</RouterLink>
<RouterLink to="/login" className="tl-btn tl-btn--ghost">
{t('landing.hero.ctaSecondary')}
</RouterLink>
</div>
<span className="tl-hero-live tl-rise tl-rise-delay-4">
<span className="tl-dot" />
{t('landing.hero.liveSignal')}
</span>
</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

@ -1,24 +1,55 @@
/* Scoped landing atmosphere — does not alter the authenticated app shell. */
/* ==========================================================================
Tloto public landing — desktop-first "nocturnal prediction exchange".
Scoped to .tloto-landing so the authenticated app shell is untouched.
========================================================================== */
.tloto-landing {
--tl-ink: #070a10;
--tl-ink: #0b0f1a;
--tl-ink-2: #070a12;
--tl-fog: #0e1420;
--tl-emerald: #10b981;
--tl-emerald-bright: #34d399;
--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-line: rgba(255, 255, 255, 0.08);
--tl-line-strong: rgba(255, 255, 255, 0.14);
--tl-mute: rgba(232, 238, 248, 0.6);
--tl-text: #eef3fb;
--tl-display: 'Syne', 'Segoe UI', sans-serif;
--tl-body: 'Manrope', 'Segoe UI', sans-serif;
--tl-max: 1360px;
--tl-gutter: clamp(1.25rem, 4vw, 2.75rem);
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%);
position: relative;
overflow-x: hidden;
background:
radial-gradient(120vw 70vh at 82% -12%, rgba(16, 185, 129, 0.16), transparent 55%),
radial-gradient(80vw 55vh at -12% 32%, rgba(212, 175, 55, 0.08), transparent 52%),
radial-gradient(60vw 60vh at 50% 118%, rgba(16, 185, 129, 0.08), transparent 50%),
linear-gradient(180deg, var(--tl-ink) 0%, var(--tl-fog) 46%, var(--tl-ink-2) 100%);
}
/* Faint atmospheric market grid drawn across the whole page. */
.tloto-landing::before {
content: '';
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
background-image:
linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
background-size: 64px 64px;
mask-image: radial-gradient(130vw 120vh at 50% 0%, #000 35%, transparent 80%);
-webkit-mask-image: radial-gradient(130vw 120vh at 50% 0%, #000 35%, transparent 80%);
}
.tloto-landing > * {
position: relative;
z-index: 1;
}
.tloto-landing * {
@ -33,10 +64,688 @@
letter-spacing: -0.03em;
}
/* ---- Layout primitives --------------------------------------------------- */
.tl-container {
width: 100%;
max-width: var(--tl-max);
margin: 0 auto;
padding: 0 var(--tl-gutter);
}
.tl-section {
padding-block: clamp(3.5rem, 7vw, 6rem);
scroll-margin-top: 96px;
}
.tl-section--tight {
padding-block: clamp(2.75rem, 5vw, 4.25rem);
}
.tl-divider-top {
border-top: 1px solid var(--tl-line);
}
/* ---- Typographic helpers ------------------------------------------------- */
.tl-eyebrow {
display: inline-flex;
align-items: center;
gap: 0.65rem;
margin: 0 0 1rem;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.26em;
text-transform: uppercase;
color: rgba(52, 211, 153, 0.95);
}
.tl-eyebrow::before {
content: '';
width: 26px;
height: 1px;
background: linear-gradient(90deg, var(--tl-emerald), transparent);
}
.tl-eyebrow--gold {
color: rgba(212, 175, 55, 0.95);
}
.tl-eyebrow--gold::before {
background: linear-gradient(90deg, var(--tl-gold), transparent);
}
.tl-h2 {
margin: 0;
font-size: clamp(2rem, 4vw, 3.1rem);
font-weight: 800;
line-height: 1.03;
}
.tl-muted {
color: var(--tl-mute);
line-height: 1.6;
font-size: 1.02rem;
}
/* ---- Buttons ------------------------------------------------------------- */
.tl-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
text-decoration: none;
border: 0;
border-radius: 999px;
padding: 0.95rem 1.6rem;
font-family: var(--tl-body);
font-weight: 800;
font-size: 1rem;
line-height: 1;
cursor: pointer;
transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.tl-btn--sm {
padding: 0.6rem 1.1rem;
font-size: 0.88rem;
}
.tl-btn--primary {
color: #04110c;
background: linear-gradient(135deg, var(--tl-emerald-bright) 0%, var(--tl-emerald) 58%, #059669 100%);
box-shadow: 0 16px 40px rgba(16, 185, 129, 0.3);
}
.tl-btn--primary:hover {
transform: translateY(-2px);
box-shadow: 0 22px 54px rgba(16, 185, 129, 0.42);
}
.tl-btn--gold {
color: #130f02;
background: linear-gradient(135deg, #f0d579 0%, var(--tl-gold) 60%, #b8902a 100%);
box-shadow: 0 16px 40px rgba(212, 175, 55, 0.28);
}
.tl-btn--gold:hover {
transform: translateY(-2px);
box-shadow: 0 22px 54px rgba(212, 175, 55, 0.4);
}
.tl-btn--ghost {
color: #eef3fb;
border: 1px solid var(--tl-line-strong);
background: rgba(255, 255, 255, 0.03);
font-weight: 700;
}
.tl-btn--ghost:hover {
border-color: rgba(255, 255, 255, 0.34);
background: rgba(255, 255, 255, 0.06);
}
/* ==========================================================================
HERO — left copy stack + right full-bleed market atmosphere plane
========================================================================== */
.tl-hero {
position: relative;
display: flex;
align-items: center;
min-height: min(94vh, 920px);
padding-block: clamp(6.5rem, 12vh, 9rem) clamp(3rem, 7vh, 5.5rem);
overflow: hidden;
isolation: isolate;
}
.tl-hero-inner {
position: relative;
z-index: 3;
display: block;
}
.tl-hero-copy {
max-width: 40rem;
}
.tl-hero-tagline {
margin: 0 0 1.4rem;
}
.tl-wordmark {
margin: 0;
font-size: clamp(3.6rem, 9.5vw, 8.5rem);
font-weight: 800;
line-height: 0.86;
letter-spacing: -0.04em;
background: linear-gradient(180deg, #ffffff 0%, #d6e2ee 58%, rgba(214, 226, 238, 0.65) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 30px 80px rgba(16, 185, 129, 0.12);
}
.tl-hero-headline {
margin: 1.5rem 0 0;
max-width: 20ch;
font-size: clamp(1.25rem, 2.3vw, 1.75rem);
font-weight: 700;
line-height: 1.22;
letter-spacing: -0.02em;
color: #f4f8ff;
}
.tl-hero-sentence {
margin: 1.05rem 0 0;
max-width: 34rem;
font-size: 1.08rem;
line-height: 1.6;
color: var(--tl-mute);
}
.tl-hero-ctas {
display: flex;
flex-wrap: wrap;
gap: 0.85rem;
margin-top: 2.2rem;
}
/* Ambient "markets open" live signal — motion, not a stat card. */
.tl-hero-live {
display: inline-flex;
align-items: center;
gap: 0.6rem;
margin-top: 2rem;
font-size: 0.82rem;
font-weight: 600;
letter-spacing: 0.04em;
color: rgba(232, 238, 248, 0.7);
}
.tl-hero-live .tl-dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--tl-emerald-bright);
box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
animation: tl-pulse 2.4s ease-out infinite;
}
/* Full-bleed visual plane, anchored to the right of the viewport. */
.tl-hero-visual {
position: absolute;
inset: 0 0 0 auto;
width: 60%;
z-index: 1;
overflow: hidden;
pointer-events: none;
}
.tl-hero-visual::after {
/* Fade the plane into the page background on its left edge for readable copy. */
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
90deg,
var(--tl-ink) 0%,
rgba(11, 15, 26, 0.82) 20%,
rgba(11, 15, 26, 0) 58%
);
}
/* Large brand mark rendered as soft light inside the plane. */
.tl-hero-mark {
position: absolute;
top: 46%;
right: 8%;
width: min(42vw, 560px);
aspect-ratio: 1;
transform: translateY(-50%);
background: url(/brand/prediqo-mark.png) center / contain no-repeat;
opacity: 0.16;
filter: saturate(1.2) drop-shadow(0 0 60px rgba(16, 185, 129, 0.4));
animation: tl-float 16s ease-in-out infinite;
}
.tl-hero-glow {
position: absolute;
top: 14%;
right: 6%;
width: 46vw;
height: 46vw;
max-width: 620px;
max-height: 620px;
border-radius: 50%;
background: radial-gradient(circle, rgba(16, 185, 129, 0.32), transparent 66%);
filter: blur(10px);
animation: tl-glow 7s ease-in-out infinite;
}
/* ---- Candlestick market chart (pure CSS atmosphere) ---------------------- */
.tl-candles {
position: absolute;
inset: auto 0 0 0;
height: 66%;
display: flex;
align-items: flex-end;
justify-content: flex-end;
gap: clamp(7px, 1.3vw, 18px);
padding: 0 7% 11%;
}
.tl-candle {
position: relative;
flex: 0 0 auto;
width: clamp(9px, 1.5vw, 20px);
border-radius: 3px;
animation: tl-candle-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tl-candle::before {
/* wick */
content: '';
position: absolute;
left: 50%;
top: -16%;
width: 2px;
height: 132%;
transform: translateX(-50%);
background: currentColor;
opacity: 0.3;
}
.tl-candle--up {
color: var(--tl-emerald);
background: linear-gradient(180deg, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0.32));
box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}
.tl-candle--down {
color: var(--tl-gold);
background: linear-gradient(180deg, rgba(212, 175, 55, 0.88), rgba(212, 175, 55, 0.28));
box-shadow: 0 0 16px rgba(212, 175, 55, 0.24);
}
.tl-candle--live {
animation: tl-candle-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both,
tl-candle-live 3.2s ease-in-out 1.1s infinite;
}
/* ==========================================================================
OFFERS — one full-bleed cinematic promotional band
========================================================================== */
.tl-offers {
position: relative;
overflow: hidden;
min-height: clamp(320px, 46vh, 460px);
display: flex;
align-items: center;
border-top: 1px solid var(--tl-line);
border-bottom: 1px solid var(--tl-line);
background: linear-gradient(110deg, rgba(16, 185, 129, 0.16), rgba(7, 10, 18, 0.95) 48%, rgba(212, 175, 55, 0.1));
}
.tl-offers__media {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
}
.tl-offers__scrim {
position: absolute;
inset: 0;
background: linear-gradient(100deg, rgba(5, 8, 14, 0.9) 0%, rgba(5, 8, 14, 0.45) 52%, rgba(5, 8, 14, 0.78) 100%);
}
.tl-offers__inner {
position: relative;
z-index: 2;
width: 100%;
padding-block: clamp(2.5rem, 6vw, 4.25rem);
display: grid;
gap: 1rem;
align-content: center;
}
.tl-offers__title {
margin: 0;
max-width: 18ch;
font-size: clamp(2rem, 4.6vw, 3.4rem);
font-weight: 800;
line-height: 1.04;
}
.tl-offers__sub {
margin: 0;
max-width: 46ch;
font-size: 1.08rem;
line-height: 1.55;
color: rgba(238, 243, 251, 0.82);
}
/* ==========================================================================
GAMES — large split product showcases
========================================================================== */
.tl-games-head {
display: grid;
gap: 1.25rem;
align-items: end;
margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tl-games-list {
display: grid;
gap: clamp(1.1rem, 2vw, 1.75rem);
}
.tl-game {
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
min-height: clamp(300px, 38vw, 420px);
border-radius: 28px;
overflow: hidden;
border: 1px solid var(--tl-line);
text-decoration: none;
color: inherit;
transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.tl-game:hover {
transform: translateY(-4px);
border-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.tl-game--reverse {
direction: rtl;
}
.tl-game__media {
direction: ltr;
position: relative;
min-height: 240px;
background-size: cover;
background-position: center;
}
.tl-game__media::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 40%, rgba(7, 10, 18, 0.55) 100%);
}
.tl-game__body {
direction: ltr;
display: grid;
align-content: center;
gap: 0.85rem;
padding: clamp(1.75rem, 3vw, 3rem);
}
.tl-game__title {
margin: 0;
font-size: clamp(1.7rem, 3vw, 2.5rem);
font-weight: 800;
line-height: 1.05;
}
.tl-game__desc {
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.tl-game__cta {
justify-self: start;
margin-top: 0.4rem;
}
/* ==========================================================================
LIVE — dual ticker boards side by side
========================================================================== */
.tl-live-head {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 1rem;
margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.tl-live-pill {
display: inline-flex;
align-items: center;
gap: 0.6rem;
padding: 0.55rem 1.05rem;
border-radius: 999px;
border: 1px solid rgba(52, 211, 153, 0.3);
background: rgba(16, 185, 129, 0.08);
font-size: 0.85rem;
font-weight: 700;
color: #d8fbee;
white-space: nowrap;
}
.tl-live-pill .tl-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--tl-emerald-bright);
box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
animation: tl-pulse 2.4s ease-out infinite;
}
.tl-live-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: clamp(1.1rem, 2vw, 1.75rem);
}
.tl-feed {
min-width: 0;
padding: clamp(1.25rem, 2vw, 1.75rem);
border-radius: 22px;
border: 1px solid var(--tl-line);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
.tl-feed__head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.75rem;
margin-bottom: 1.1rem;
}
.tl-feed__title {
margin: 0;
font-size: 1.25rem;
font-weight: 800;
}
.tl-feed__sub {
margin: 0.2rem 0 0;
color: var(--tl-mute);
font-size: 0.9rem;
}
.tl-feed__viewport {
overflow: hidden;
mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tl-feed__track {
display: flex;
width: max-content;
gap: 10px;
}
.tl-feed__track--animate {
animation: tl-marquee 38s linear infinite;
}
.tl-chip {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 0.8rem 1.1rem;
border-radius: 999px;
border: 1px solid var(--tl-line);
background: rgba(255, 255, 255, 0.03);
white-space: nowrap;
}
.tl-chip__left {
font-weight: 700;
font-size: 0.9rem;
}
.tl-chip__right {
font-weight: 800;
font-size: 0.9rem;
}
.tl-feed__foot {
margin: 0.85rem 0 0;
font-size: 0.74rem;
color: rgba(238, 243, 251, 0.4);
}
/* ==========================================================================
WHY — three numbered columns with hairline separators
========================================================================== */
.tl-why-head {
max-width: 48rem;
margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tl-why-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
border-top: 1px solid var(--tl-line-strong);
}
.tl-why-col {
padding: clamp(1.5rem, 2.2vw, 2rem) clamp(1.5rem, 2.4vw, 2.25rem);
border-left: 1px solid var(--tl-line);
}
.tl-why-col:first-child {
padding-left: 0;
border-left: 0;
}
.tl-why-num {
margin: 0 0 1rem;
font-size: 2.75rem;
font-weight: 800;
line-height: 1;
color: rgba(16, 185, 129, 0.4);
}
.tl-why-title {
margin: 0 0 0.6rem;
font-size: 1.4rem;
font-weight: 800;
}
.tl-why-body {
margin: 0;
color: var(--tl-mute);
font-size: 0.98rem;
line-height: 1.6;
}
/* ==========================================================================
CLOSING CTA + FOOTER
========================================================================== */
.tl-closing {
position: relative;
text-align: center;
padding-block: clamp(3.5rem, 7vw, 5.5rem);
scroll-margin-top: 96px;
background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.12) 0%, transparent 58%);
}
.tl-closing__title {
margin: 0 auto;
max-width: 18ch;
font-size: clamp(2rem, 4.4vw, 3.3rem);
font-weight: 800;
line-height: 1.04;
}
.tl-closing__sub {
margin: 1.1rem auto 0;
max-width: 34rem;
color: var(--tl-mute);
}
.tl-closing__ctas {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
margin-top: 2rem;
}
.tl-footer {
border-top: 1px solid var(--tl-line);
padding: 1.75rem 0 2.5rem;
}
.tl-footer__inner {
display: flex;
flex-wrap: wrap;
gap: 1rem 1.5rem;
align-items: center;
justify-content: space-between;
}
.tl-footer__links {
display: flex;
flex-wrap: wrap;
gap: 1.25rem;
}
.tl-footer__link {
text-decoration: none;
color: rgba(238, 243, 251, 0.72);
font-weight: 600;
font-size: 0.9rem;
}
.tl-footer__link:hover {
color: var(--tl-text);
}
.tl-footer__rights {
font-size: 0.78rem;
color: rgba(238, 243, 251, 0.4);
}
/* ==========================================================================
MOTION
========================================================================== */
@keyframes tl-rise {
from {
opacity: 0;
transform: translateY(28px);
transform: translateY(26px);
}
to {
opacity: 1;
@ -44,15 +753,6 @@
}
}
@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);
@ -65,32 +765,156 @@
@keyframes tl-glow {
0%,
100% {
opacity: 0.45;
opacity: 0.4;
}
50% {
opacity: 0.85;
}
}
@keyframes tl-float {
0%,
100% {
transform: translateY(-50%) scale(1);
}
50% {
transform: translateY(-54%) scale(1.03);
}
}
@keyframes tl-pulse {
0% {
box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
}
70% {
box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
}
}
@keyframes tl-candle-rise {
from {
opacity: 0;
transform: translateY(18px) scaleY(0.4);
transform-origin: bottom;
}
to {
opacity: 1;
transform: translateY(0) scaleY(1);
transform-origin: bottom;
}
}
@keyframes tl-candle-live {
0%,
100% {
transform: scaleY(1);
filter: brightness(1);
transform-origin: bottom;
}
50% {
transform: scaleY(1.18);
filter: brightness(1.25);
transform-origin: bottom;
}
}
/* Entrance helpers (hero copy) */
.tl-rise {
animation: tl-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tl-rise-delay-1 {
animation-delay: 0.12s;
animation-delay: 0.1s;
}
.tl-rise-delay-2 {
animation-delay: 0.24s;
animation-delay: 0.2s;
}
.tl-rise-delay-3 {
animation-delay: 0.36s;
animation-delay: 0.32s;
}
.tl-rise-delay-4 {
animation-delay: 0.44s;
}
/* Scroll-reveal for mid sections (toggled by IntersectionObserver). */
.tl-reveal {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
will-change: opacity, transform;
}
.tl-reveal.tl-in {
opacity: 1;
transform: none;
}
/* ==========================================================================
RESPONSIVE
========================================================================== */
@media (max-width: 1024px) {
.tl-game {
min-height: clamp(260px, 44vw, 360px);
}
}
@media (max-width: 900px) {
.tl-hero-visual {
width: 100%;
}
.tl-hero-visual::after {
background: linear-gradient(
180deg,
rgba(11, 15, 26, 0.55) 0%,
rgba(11, 15, 26, 0.82) 55%,
var(--tl-ink) 100%
);
}
.tl-live-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 800px) {
.tl-game {
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;
}
}
@media (min-width: 1025px) {
.tl-games-head {
grid-template-columns: 1.25fr 0.75fr;
}
}
@media (prefers-reduced-motion: reduce) {
.tl-rise,
.tloto-landing * {
.tloto-landing *,
.tloto-landing *::before,
.tloto-landing *::after {
animation: none !important;
transition: none !important;
}
.tl-reveal {
opacity: 1;
transform: none;
}
}

View File

@ -86,11 +86,12 @@ export const en = {
},
hero: {
tagline: 'Premium prediction platform',
title: 'Predict markets. Grow with confidence.',
title: 'Read the candle. Call the close. Settle instantly.',
subtitle:
'Instant settlement, secure USDT wallets, and a referral network built for serious players.',
ctaPrimary: 'Create account',
ctaSecondary: 'Log in',
liveSignal: 'Markets open · settlement live',
},
offers: {
kicker: 'Campaigns',

View File

@ -86,11 +86,12 @@ export const fr = {
},
hero: {
tagline: 'Plateforme de prédiction premium',
title: 'Prédisez les marchés. Progressez en confiance.',
title: 'Lisez la bougie. Anticipez la clôture. Réglé à l’instant.',
subtitle:
'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',
liveSignal: 'Marchés ouverts · règlement en direct',
},
offers: {
kicker: 'Campagnes',