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.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap"
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"
/>
<title>Tloto</title>

View File

@ -1,6 +1,6 @@
/**
* Public Tloto web landing — desktop-first "nocturnal prediction exchange".
* One composition per section, dense editorial rhythm, no empty voids.
* Public Tloto web landing — desktop-first nocturnal prediction exchange.
* One job per section; auth CTAs only in header + hero (no repeats).
*/
import { useEffect, useMemo } from 'react';
import { Link as RouterLink } from 'react-router-dom';
@ -18,25 +18,6 @@ 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;
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.
* Soft-fails (reveals everything) when IntersectionObserver is unavailable or
@ -74,10 +55,6 @@ export function LandingPage() {
const activityQ = useActivityFeed();
const withdrawalsQ = useWithdrawalFeed();
useEffect(() => {
ensureLandingFonts();
}, []);
useScrollReveal();
const navItems = useMemo(
@ -86,7 +63,6 @@ export function LandingPage() {
{ 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]
);
@ -121,7 +97,7 @@ export function LandingPage() {
<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 }}>
{offerMedia && <div className="tl-offers__media" aria-hidden style={{ background: offerMedia }} />}
<div className="tl-offers__scrim" aria-hidden />
@ -141,8 +117,9 @@ export function LandingPage() {
<>
<h2 className="tl-display tl-offers__title">{heroAd.title}</h2>
{heroAd.subtitle && <p className="tl-offers__sub">{heroAd.subtitle}</p>}
{heroAd.ctaLabel && (
<RouterLink
to={heroAd.linkUrl?.startsWith('/') ? '/login' : '/register'}
to={heroAd.linkUrl?.startsWith('/') ? heroAd.linkUrl : '/register'}
className="tl-btn"
style={{
justifySelf: 'start',
@ -151,8 +128,9 @@ export function LandingPage() {
background: heroAd.accentColor || '#10B981',
}}
>
{heroAd.ctaLabel || t('landing.hero.ctaPrimary')}
{heroAd.ctaLabel}
</RouterLink>
)}
</>
)}
</div>
@ -160,7 +138,7 @@ export function LandingPage() {
<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">
<div className="tl-container">
<div className="tl-live-head">
@ -200,7 +178,7 @@ export function LandingPage() {
</div>
</section>
{/* Why — three numbered columns with hairline separators */}
{/* Why — three numbered columns */}
<section id="why" className="tl-section tl-divider-top tl-reveal">
<div className="tl-container">
<div className="tl-why-head">
@ -222,8 +200,8 @@ export function LandingPage() {
</div>
</section>
{/* Closing CTA band */}
<section id="faq-cta" className="tl-closing tl-reveal">
{/* FAQ only — no second signup CTA */}
<section className="tl-closing tl-reveal">
<div className="tl-container">
<p className="tl-eyebrow" style={{ justifyContent: 'center' }}>
{t('landing.faqCta.kicker')}
@ -234,9 +212,6 @@ export function LandingPage() {
<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>
@ -247,12 +222,6 @@ export function LandingPage() {
{PLATFORM_WORDMARK}
</span>
<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">
{t('landing.nav.faq')}
</RouterLink>

View File

@ -76,7 +76,7 @@ export function LandingGamePeek({ games, loading }: LandingGamePeekProps) {
className="tl-btn tl-btn--sm tl-game__cta"
style={{ color: '#04110c', background: accent }}
>
{t('landing.games.playCta')}
{t('landing.games.exploreCta')}
</span>
</div>
</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 { Link as RouterLink } from 'react-router-dom';
@ -72,15 +72,13 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
className="tl-nav-desktop"
>
{navItems.map((item) => (
<button
key={item.id}
type="button"
onClick={() => onNavigateSection(item.id)}
style={navLinkStyle}
>
<button key={item.id} type="button" onClick={() => onNavigateSection(item.id)} style={navLinkStyle}>
{item.label}
</button>
))}
<RouterLink to="/faq" style={{ ...navLinkStyle, textDecoration: 'none', display: 'inline-flex' }}>
{t('landing.nav.faq')}
</RouterLink>
</nav>
<div style={{ marginLeft: 'auto', display: 'flex', alignItems: 'center', gap: 8 }}>
@ -141,10 +139,24 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp
{item.label}
</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
to="/login"
onClick={() => setOpen(false)}
style={{ ...ghostBtnStyle, textAlign: 'center', padding: '0.85rem 1rem' }}
className="tl-hide-xs-invert"
>
{t('landing.nav.login')}
</RouterLink>

View File

@ -1,6 +1,6 @@
/**
* Desktop-first hero — left copy stack (brand dominates) + right full-bleed
* market-atmosphere plane built entirely from CSS (candlesticks, glow, brand light).
* Desktop-first hero — brand + one headline + one sentence + one primary CTA.
* Login lives in the header only (no duplicate auth buttons here).
*/
import { Link as RouterLink } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
@ -29,7 +29,6 @@ export function LandingHero() {
return (
<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" />
@ -62,9 +61,6 @@ export function LandingHero() {
<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">

View File

@ -16,8 +16,8 @@
--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-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
--tl-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
--tl-max: 1360px;
--tl-gutter: clamp(1.25rem, 4vw, 2.75rem);
@ -61,7 +61,8 @@
.tloto-landing h3,
.tloto-landing .tl-display {
font-family: var(--tl-display);
letter-spacing: -0.03em;
letter-spacing: -0.015em;
font-synthesis: none;
}
/* ---- Layout primitives --------------------------------------------------- */
@ -216,24 +217,23 @@
.tl-wordmark {
margin: 0;
font-size: clamp(3.6rem, 9.5vw, 8.5rem);
font-size: clamp(3.4rem, 8.5vw, 7.25rem);
font-weight: 800;
line-height: 0.86;
letter-spacing: -0.04em;
line-height: 0.92;
letter-spacing: -0.02em;
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;
margin: 1.35rem 0 0;
max-width: 28ch;
font-size: clamp(1.2rem, 2.1vw, 1.55rem);
font-weight: 600;
line-height: 1.35;
letter-spacing: -0.01em;
color: #f4f8ff;
}

View File

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

View File

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