From 3f7eb5358d84a7688b15fc3c368abb34e4ed94d0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 30 Oct 2026 13:59:23 +0200 Subject: [PATCH] After adding the public webwelcome page3 --- prediqo_web/index.html | 2 +- .../src/features/landing/LandingPage.tsx | 73 ++++++------------- .../landing/components/LandingGamePeek.tsx | 2 +- .../landing/components/LandingHeader.tsx | 26 +++++-- .../landing/components/LandingHero.tsx | 8 +- prediqo_web/src/features/landing/landing.css | 26 +++---- prediqo_web/src/shared/i18n/locales/en.ts | 14 ++-- prediqo_web/src/shared/i18n/locales/fr.ts | 14 ++-- 8 files changed, 69 insertions(+), 96 deletions(-) diff --git a/prediqo_web/index.html b/prediqo_web/index.html index 9820383b..c6b0c7bd 100644 --- a/prediqo_web/index.html +++ b/prediqo_web/index.html @@ -12,7 +12,7 @@ Tloto diff --git a/prediqo_web/src/features/landing/LandingPage.tsx b/prediqo_web/src/features/landing/LandingPage.tsx index 4152fa29..2be85fb3 100644 --- a/prediqo_web/src/features/landing/LandingPage.tsx +++ b/prediqo_web/src/features/landing/LandingPage.tsx @@ -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() { - {/* Offers — one full-bleed cinematic promotional band from the first hero ad */} + {/* Offers — one promotional band (campaign CTA only, not generic auth) */}
{offerMedia &&
}
@@ -141,18 +117,20 @@ export function LandingPage() { <>

{heroAd.title}

{heroAd.subtitle &&

{heroAd.subtitle}

} - - {heroAd.ctaLabel || t('landing.hero.ctaPrimary')} - + {heroAd.ctaLabel && ( + + {heroAd.ctaLabel} + + )} )}
@@ -160,7 +138,7 @@ export function LandingPage() { - {/* Live — dual ticker boards side by side */} + {/* Live — dual ticker boards */}
@@ -200,7 +178,7 @@ export function LandingPage() {
- {/* Why — three numbered columns with hairline separators */} + {/* Why — three numbered columns */}
@@ -222,8 +200,8 @@ export function LandingPage() {
- {/* Closing CTA band */} -
+ {/* FAQ only — no second signup CTA */} +

{t('landing.faqCta.kicker')} @@ -234,9 +212,6 @@ export function LandingPage() { {t('landing.faqCta.openFaq')} - - {t('landing.faqCta.createAccount')} -

@@ -247,12 +222,6 @@ export function LandingPage() { {PLATFORM_WORDMARK}
- - {t('landing.nav.login')} - - - {t('landing.nav.register')} - {t('landing.nav.faq')} diff --git a/prediqo_web/src/features/landing/components/LandingGamePeek.tsx b/prediqo_web/src/features/landing/components/LandingGamePeek.tsx index 39b7df63..65fbf5bc 100644 --- a/prediqo_web/src/features/landing/components/LandingGamePeek.tsx +++ b/prediqo_web/src/features/landing/components/LandingGamePeek.tsx @@ -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')}
diff --git a/prediqo_web/src/features/landing/components/LandingHeader.tsx b/prediqo_web/src/features/landing/components/LandingHeader.tsx index 2aebab7d..b0f4790c 100644 --- a/prediqo_web/src/features/landing/components/LandingHeader.tsx +++ b/prediqo_web/src/features/landing/components/LandingHeader.tsx @@ -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) => ( - ))} + + {t('landing.nav.faq')} +
@@ -141,10 +139,24 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp {item.label} ))} + setOpen(false)} + style={{ + ...navLinkStyle, + justifyContent: 'flex-start', + width: '100%', + padding: '0.85rem 1rem', + textDecoration: 'none', + }} + > + {t('landing.nav.faq')} + setOpen(false)} style={{ ...ghostBtnStyle, textAlign: 'center', padding: '0.85rem 1rem' }} + className="tl-hide-xs-invert" > {t('landing.nav.login')} diff --git a/prediqo_web/src/features/landing/components/LandingHero.tsx b/prediqo_web/src/features/landing/components/LandingHero.tsx index 46ebe752..e083fd5c 100644 --- a/prediqo_web/src/features/landing/components/LandingHero.tsx +++ b/prediqo_web/src/features/landing/components/LandingHero.tsx @@ -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 (
- {/* Full-bleed market atmosphere plane (right ~60% on desktop) */}
@@ -62,9 +61,6 @@ export function LandingHero() { {t('landing.hero.ctaPrimary')} - - {t('landing.hero.ctaSecondary')} -
diff --git a/prediqo_web/src/features/landing/landing.css b/prediqo_web/src/features/landing/landing.css index af367162..b250e6ef 100644 --- a/prediqo_web/src/features/landing/landing.css +++ b/prediqo_web/src/features/landing/landing.css @@ -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; } diff --git a/prediqo_web/src/shared/i18n/locales/en.ts b/prediqo_web/src/shared/i18n/locales/en.ts index a1e98bfa..bc3fb570 100644 --- a/prediqo_web/src/shared/i18n/locales/en.ts +++ b/prediqo_web/src/shared/i18n/locales/en.ts @@ -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.', diff --git a/prediqo_web/src/shared/i18n/locales/fr.ts b/prediqo_web/src/shared/i18n/locales/fr.ts index cbbb8503..471492a3 100644 --- a/prediqo_web/src/shared/i18n/locales/fr.ts +++ b/prediqo_web/src/shared/i18n/locales/fr.ts @@ -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.',