After adding the public webwelcome page3

This commit is contained in:
Your Name 2026-10-30 13:59:23 +02:00
parent 3b5cbfe2a8
commit 3f7eb5358d
8 changed files with 69 additions and 96 deletions

View File

@ -12,7 +12,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link <link
href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap"
rel="stylesheet" rel="stylesheet"
/> />
<title>Tloto</title> <title>Tloto</title>

View File

@ -1,6 +1,6 @@
/** /**
* Public Tloto web landing — desktop-first "nocturnal prediction exchange". * Public Tloto web landing — desktop-first nocturnal prediction exchange.
* One composition per section, dense editorial rhythm, no empty voids. * One job per section; auth CTAs only in header + hero (no repeats).
*/ */
import { useEffect, useMemo } from 'react'; import { useEffect, useMemo } from 'react';
import { Link as RouterLink } from 'react-router-dom'; import { Link as RouterLink } from 'react-router-dom';
@ -18,25 +18,6 @@ function scrollToId(id: string) {
document.getElementById(id)?.scrollIntoView({ behavior: 'smooth', block: 'start' }); 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;
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);
}
/** /**
* Reveals elements tagged `.tl-reveal` as they enter the viewport. * Reveals elements tagged `.tl-reveal` as they enter the viewport.
* Soft-fails (reveals everything) when IntersectionObserver is unavailable or * Soft-fails (reveals everything) when IntersectionObserver is unavailable or
@ -74,10 +55,6 @@ export function LandingPage() {
const activityQ = useActivityFeed(); const activityQ = useActivityFeed();
const withdrawalsQ = useWithdrawalFeed(); const withdrawalsQ = useWithdrawalFeed();
useEffect(() => {
ensureLandingFonts();
}, []);
useScrollReveal(); useScrollReveal();
const navItems = useMemo( const navItems = useMemo(
@ -86,7 +63,6 @@ export function LandingPage() {
{ id: 'games', label: t('landing.nav.games') }, { id: 'games', label: t('landing.nav.games') },
{ id: 'live', label: t('landing.nav.live') }, { id: 'live', label: t('landing.nav.live') },
{ id: 'why', label: t('landing.nav.why') }, { id: 'why', label: t('landing.nav.why') },
{ id: 'faq-cta', label: t('landing.nav.faq') },
], ],
[t] [t]
); );
@ -121,7 +97,7 @@ export function LandingPage() {
<LandingHero /> <LandingHero />
{/* Offers — one full-bleed cinematic promotional band from the first hero ad */} {/* Offers — one promotional band (campaign CTA only, not generic auth) */}
<section id="offers" className="tl-offers tl-reveal" style={{ scrollMarginTop: 96 }}> <section id="offers" className="tl-offers tl-reveal" style={{ scrollMarginTop: 96 }}>
{offerMedia && <div className="tl-offers__media" aria-hidden style={{ background: offerMedia }} />} {offerMedia && <div className="tl-offers__media" aria-hidden style={{ background: offerMedia }} />}
<div className="tl-offers__scrim" aria-hidden /> <div className="tl-offers__scrim" aria-hidden />
@ -141,18 +117,20 @@ export function LandingPage() {
<> <>
<h2 className="tl-display tl-offers__title">{heroAd.title}</h2> <h2 className="tl-display tl-offers__title">{heroAd.title}</h2>
{heroAd.subtitle && <p className="tl-offers__sub">{heroAd.subtitle}</p>} {heroAd.subtitle && <p className="tl-offers__sub">{heroAd.subtitle}</p>}
<RouterLink {heroAd.ctaLabel && (
to={heroAd.linkUrl?.startsWith('/') ? '/login' : '/register'} <RouterLink
className="tl-btn" to={heroAd.linkUrl?.startsWith('/') ? heroAd.linkUrl : '/register'}
style={{ className="tl-btn"
justifySelf: 'start', style={{
marginTop: '0.75rem', justifySelf: 'start',
color: '#04110c', marginTop: '0.75rem',
background: heroAd.accentColor || '#10B981', color: '#04110c',
}} background: heroAd.accentColor || '#10B981',
> }}
{heroAd.ctaLabel || t('landing.hero.ctaPrimary')} >
</RouterLink> {heroAd.ctaLabel}
</RouterLink>
)}
</> </>
)} )}
</div> </div>
@ -160,7 +138,7 @@ export function LandingPage() {
<LandingGamePeek games={gamesQ.data ?? []} loading={gamesQ.isLoading} /> <LandingGamePeek games={gamesQ.data ?? []} loading={gamesQ.isLoading} />
{/* Live — dual ticker boards side by side */} {/* Live — dual ticker boards */}
<section id="live" className="tl-section tl-divider-top tl-reveal"> <section id="live" className="tl-section tl-divider-top tl-reveal">
<div className="tl-container"> <div className="tl-container">
<div className="tl-live-head"> <div className="tl-live-head">
@ -200,7 +178,7 @@ export function LandingPage() {
</div> </div>
</section> </section>
{/* Why — three numbered columns with hairline separators */} {/* Why — three numbered columns */}
<section id="why" className="tl-section tl-divider-top tl-reveal"> <section id="why" className="tl-section tl-divider-top tl-reveal">
<div className="tl-container"> <div className="tl-container">
<div className="tl-why-head"> <div className="tl-why-head">
@ -222,8 +200,8 @@ export function LandingPage() {
</div> </div>
</section> </section>
{/* Closing CTA band */} {/* FAQ only — no second signup CTA */}
<section id="faq-cta" className="tl-closing tl-reveal"> <section className="tl-closing tl-reveal">
<div className="tl-container"> <div className="tl-container">
<p className="tl-eyebrow" style={{ justifyContent: 'center' }}> <p className="tl-eyebrow" style={{ justifyContent: 'center' }}>
{t('landing.faqCta.kicker')} {t('landing.faqCta.kicker')}
@ -234,9 +212,6 @@ export function LandingPage() {
<RouterLink to="/faq" className="tl-btn tl-btn--ghost"> <RouterLink to="/faq" className="tl-btn tl-btn--ghost">
{t('landing.faqCta.openFaq')} {t('landing.faqCta.openFaq')}
</RouterLink> </RouterLink>
<RouterLink to="/register" className="tl-btn tl-btn--primary">
{t('landing.faqCta.createAccount')}
</RouterLink>
</div> </div>
</div> </div>
</section> </section>
@ -247,12 +222,6 @@ export function LandingPage() {
{PLATFORM_WORDMARK} {PLATFORM_WORDMARK}
</span> </span>
<div className="tl-footer__links"> <div className="tl-footer__links">
<RouterLink to="/login" className="tl-footer__link">
{t('landing.nav.login')}
</RouterLink>
<RouterLink to="/register" className="tl-footer__link">
{t('landing.nav.register')}
</RouterLink>
<RouterLink to="/faq" className="tl-footer__link"> <RouterLink to="/faq" className="tl-footer__link">
{t('landing.nav.faq')} {t('landing.nav.faq')}
</RouterLink> </RouterLink>

View File

@ -76,7 +76,7 @@ export function LandingGamePeek({ games, loading }: LandingGamePeekProps) {
className="tl-btn tl-btn--sm tl-game__cta" className="tl-btn tl-btn--sm tl-game__cta"
style={{ color: '#04110c', background: accent }} style={{ color: '#04110c', background: accent }}
> >
{t('landing.games.playCta')} {t('landing.games.exploreCta')}
</span> </span>
</div> </div>
</RouterLink> </RouterLink>

View File

@ -1,5 +1,5 @@
/** /**
* Minimal floating public nav — brand mark + actions, not a dashboard chrome. * Fixed public nav — brand, section anchors, language, login + signup once.
*/ */
import { useState, type CSSProperties } from 'react'; import { useState, type CSSProperties } from 'react';
import { Link as RouterLink } from 'react-router-dom'; import { Link as RouterLink } from 'react-router-dom';
@ -72,15 +72,13 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
className="tl-nav-desktop" className="tl-nav-desktop"
> >
{navItems.map((item) => ( {navItems.map((item) => (
<button <button key={item.id} type="button" onClick={() => onNavigateSection(item.id)} style={navLinkStyle}>
key={item.id}
type="button"
onClick={() => onNavigateSection(item.id)}
style={navLinkStyle}
>
{item.label} {item.label}
</button> </button>
))} ))}
<RouterLink to="/faq" style={{ ...navLinkStyle, textDecoration: 'none', display: 'inline-flex' }}>
{t('landing.nav.faq')}
</RouterLink>
</nav> </nav>
<div style={{ marginLeft: 'auto', display: 'flex', alignItems: 'center', gap: 8 }}> <div style={{ marginLeft: 'auto', display: 'flex', alignItems: 'center', gap: 8 }}>
@ -141,10 +139,24 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
{item.label} {item.label}
</button> </button>
))} ))}
<RouterLink
to="/faq"
onClick={() => setOpen(false)}
style={{
...navLinkStyle,
justifyContent: 'flex-start',
width: '100%',
padding: '0.85rem 1rem',
textDecoration: 'none',
}}
>
{t('landing.nav.faq')}
</RouterLink>
<RouterLink <RouterLink
to="/login" to="/login"
onClick={() => setOpen(false)} onClick={() => setOpen(false)}
style={{ ...ghostBtnStyle, textAlign: 'center', padding: '0.85rem 1rem' }} style={{ ...ghostBtnStyle, textAlign: 'center', padding: '0.85rem 1rem' }}
className="tl-hide-xs-invert"
> >
{t('landing.nav.login')} {t('landing.nav.login')}
</RouterLink> </RouterLink>

View File

@ -1,6 +1,6 @@
/** /**
* Desktop-first hero — left copy stack (brand dominates) + right full-bleed * Desktop-first hero — brand + one headline + one sentence + one primary CTA.
* market-atmosphere plane built entirely from CSS (candlesticks, glow, brand light). * Login lives in the header only (no duplicate auth buttons here).
*/ */
import { Link as RouterLink } from 'react-router-dom'; import { Link as RouterLink } from 'react-router-dom';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
@ -29,7 +29,6 @@ export function LandingHero() {
return ( return (
<section id="top" className="tl-hero"> <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-visual" aria-hidden>
<div className="tl-hero-glow" /> <div className="tl-hero-glow" />
<div className="tl-hero-mark" /> <div className="tl-hero-mark" />
@ -62,9 +61,6 @@ export function LandingHero() {
<RouterLink to="/register" className="tl-btn tl-btn--primary"> <RouterLink to="/register" className="tl-btn tl-btn--primary">
{t('landing.hero.ctaPrimary')} {t('landing.hero.ctaPrimary')}
</RouterLink> </RouterLink>
<RouterLink to="/login" className="tl-btn tl-btn--ghost">
{t('landing.hero.ctaSecondary')}
</RouterLink>
</div> </div>
<span className="tl-hero-live tl-rise tl-rise-delay-4"> <span className="tl-hero-live tl-rise tl-rise-delay-4">

View File

@ -16,8 +16,8 @@
--tl-line-strong: rgba(255, 255, 255, 0.14); --tl-line-strong: rgba(255, 255, 255, 0.14);
--tl-mute: rgba(232, 238, 248, 0.6); --tl-mute: rgba(232, 238, 248, 0.6);
--tl-text: #eef3fb; --tl-text: #eef3fb;
--tl-display: 'Syne', 'Segoe UI', sans-serif; --tl-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
--tl-body: 'Manrope', 'Segoe UI', sans-serif; --tl-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
--tl-max: 1360px; --tl-max: 1360px;
--tl-gutter: clamp(1.25rem, 4vw, 2.75rem); --tl-gutter: clamp(1.25rem, 4vw, 2.75rem);
@ -61,7 +61,8 @@
.tloto-landing h3, .tloto-landing h3,
.tloto-landing .tl-display { .tloto-landing .tl-display {
font-family: var(--tl-display); font-family: var(--tl-display);
letter-spacing: -0.03em; letter-spacing: -0.015em;
font-synthesis: none;
} }
/* ---- Layout primitives --------------------------------------------------- */ /* ---- Layout primitives --------------------------------------------------- */
@ -216,24 +217,23 @@
.tl-wordmark { .tl-wordmark {
margin: 0; margin: 0;
font-size: clamp(3.6rem, 9.5vw, 8.5rem); font-size: clamp(3.4rem, 8.5vw, 7.25rem);
font-weight: 800; font-weight: 800;
line-height: 0.86; line-height: 0.92;
letter-spacing: -0.04em; letter-spacing: -0.02em;
background: linear-gradient(180deg, #ffffff 0%, #d6e2ee 58%, rgba(214, 226, 238, 0.65) 100%); background: linear-gradient(180deg, #ffffff 0%, #d6e2ee 58%, rgba(214, 226, 238, 0.65) 100%);
-webkit-background-clip: text; -webkit-background-clip: text;
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
text-shadow: 0 30px 80px rgba(16, 185, 129, 0.12);
} }
.tl-hero-headline { .tl-hero-headline {
margin: 1.5rem 0 0; margin: 1.35rem 0 0;
max-width: 20ch; max-width: 28ch;
font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-size: clamp(1.2rem, 2.1vw, 1.55rem);
font-weight: 700; font-weight: 600;
line-height: 1.22; line-height: 1.35;
letter-spacing: -0.02em; letter-spacing: -0.01em;
color: #f4f8ff; color: #f4f8ff;
} }

View File

@ -90,7 +90,6 @@ export const en = {
subtitle: subtitle:
'Instant settlement, secure USDT wallets, and a referral network built for serious players.', 'Instant settlement, secure USDT wallets, and a referral network built for serious players.',
ctaPrimary: 'Create account', ctaPrimary: 'Create account',
ctaSecondary: 'Log in',
liveSignal: 'Markets open · settlement live', liveSignal: 'Markets open · settlement live',
}, },
offers: { offers: {
@ -101,10 +100,10 @@ export const en = {
}, },
games: { games: {
kicker: 'Catalog', kicker: 'Catalog',
title: 'Games worth opening an account for', title: 'Featured games',
subtitle: 'Sign in to play — explore the featured titles first.', subtitle: 'Spotlight titles from the catalog — available after sign-in.',
empty: 'Games will appear here when the catalog is available.', empty: 'Games will appear here when the catalog is available.',
playCta: 'Sign in to play', exploreCta: 'Explore',
}, },
live: { live: {
kicker: 'Pulse', kicker: 'Pulse',
@ -133,11 +132,10 @@ export const en = {
referralBody: 'Grow a multi-level network with commissions paid from the platform bonus pool.', referralBody: 'Grow a multi-level network with commissions paid from the platform bonus pool.',
}, },
faqCta: { faqCta: {
kicker: 'Ready when you are', kicker: 'Help',
title: 'Start when the timing feels right', title: 'Questions before you start?',
subtitle: 'Browse the FAQ first — then create an account in under a minute.', subtitle: 'The FAQ covers deposits, withdrawals, games, and referrals.',
openFaq: 'Open FAQ', openFaq: 'Open FAQ',
createAccount: 'Create account',
}, },
footer: { footer: {
rights: '© Tloto. All rights reserved.', rights: '© Tloto. All rights reserved.',

View File

@ -90,7 +90,6 @@ export const fr = {
subtitle: subtitle:
'Règlement instantané, portefeuilles USDT sécurisés et un réseau de parrainage conçu pour les joueurs exigeants.', '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', ctaPrimary: 'Créer un compte',
ctaSecondary: 'Se connecter',
liveSignal: 'Marchés ouverts · règlement en direct', liveSignal: 'Marchés ouverts · règlement en direct',
}, },
offers: { offers: {
@ -101,10 +100,10 @@ export const fr = {
}, },
games: { games: {
kicker: 'Catalogue', kicker: 'Catalogue',
title: 'Des jeux qui valent une inscription', title: 'Des jeux mis en avant',
subtitle: 'Connectez-vous pour jouer — commencez par les titres à la une.', subtitle: 'Les titres phares du catalogue — accessibles après connexion.',
empty: 'Les jeux apparaîtront ici lorsque le catalogue sera disponible.', empty: 'Les jeux apparaîtront ici lorsque le catalogue sera disponible.',
playCta: 'Se connecter pour jouer', exploreCta: 'Découvrir',
}, },
live: { live: {
kicker: 'Pulsation', kicker: 'Pulsation',
@ -133,11 +132,10 @@ export const fr = {
referralBody: 'Développez un réseau multi-niveaux avec des commissions issues du pool bonus.', referralBody: 'Développez un réseau multi-niveaux avec des commissions issues du pool bonus.',
}, },
faqCta: { faqCta: {
kicker: 'Quand vous voulez', kicker: 'Aide',
title: 'Commencez au moment qui vous convient', title: 'Des questions avant de commencer ?',
subtitle: 'Parcourez d’abord la FAQ — puis créez un compte en moins d’une minute.', subtitle: 'La FAQ couvre dépôt, retrait, jeux et parrainage.',
openFaq: 'Ouvrir la FAQ', openFaq: 'Ouvrir la FAQ',
createAccount: 'Créer un compte',
}, },
footer: { footer: {
rights: '© Tloto. Tous droits réservés.', rights: '© Tloto. Tous droits réservés.',