From 3a5ebdeb9763488df2e8ea091f48e32dfd45f1bf Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 6 Nov 2026 17:45:49 +0200 Subject: [PATCH] After improving the design for the web part3 --- .../src/features/landing/LandingPage.tsx | 38 ++++++++------- .../landing/components/LandingHeader.tsx | 18 ++++---- prediqo_web/src/features/landing/landing.css | 46 +++++++++++++++---- 3 files changed, 70 insertions(+), 32 deletions(-) diff --git a/prediqo_web/src/features/landing/LandingPage.tsx b/prediqo_web/src/features/landing/LandingPage.tsx index 575892e3..6644a291 100644 --- a/prediqo_web/src/features/landing/LandingPage.tsx +++ b/prediqo_web/src/features/landing/LandingPage.tsx @@ -156,14 +156,18 @@ export function LandingPage() { -
-
- {typeof activePlayers === 'number' && activePlayers > 0 && ( - - - {t('landing.live.subtitleWithCount', { count: activePlayers })} - - )} +
0 ? ' tl-live-grid--with-pill' : '' + }`} + > + {typeof activePlayers === 'number' && activePlayers > 0 && ( + + + {t('landing.live.subtitleWithCount', { count: activePlayers })} + + )} +
- +
+ +
diff --git a/prediqo_web/src/features/landing/components/LandingHeader.tsx b/prediqo_web/src/features/landing/components/LandingHeader.tsx index 79a9f4a0..64bf78ae 100644 --- a/prediqo_web/src/features/landing/components/LandingHeader.tsx +++ b/prediqo_web/src/features/landing/components/LandingHeader.tsx @@ -136,7 +136,7 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp > - + {t('landing.nav.login')} @@ -273,21 +273,23 @@ export function LandingHeader({ navItems, onNavigateSection }: LandingHeaderProp } @media (max-width: 899px) { .tl-nav-burger { display: inline-flex !important; align-items: center; justify-content: center; } - .tl-hide-xs { display: none !important; } .tl-header-bar { gap: 0.4rem !important; padding: 0.45rem 0.55rem !important; } .tl-header-actions { gap: 4px !important; } - .tl-header-register { - padding: 0.45rem 0.75rem !important; + /* Hero already has Create account — prefer Log in in the bar. */ + .tl-header-register { display: none !important; } + .tl-header-login { + color: #04110c !important; + background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%) !important; + border: 0 !important; + box-shadow: 0 10px 30px rgba(16,185,129,0.28); + padding: 0.45rem 0.85rem !important; font-size: 0.78rem !important; - max-width: 7.5rem; + font-weight: 800 !important; white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; } } @media (max-width: 380px) { .tl-header-wordmark { display: none !important; } - .tl-header-register { display: none !important; } } `} diff --git a/prediqo_web/src/features/landing/landing.css b/prediqo_web/src/features/landing/landing.css index 3f01848a..fce34953 100644 --- a/prediqo_web/src/features/landing/landing.css +++ b/prediqo_web/src/features/landing/landing.css @@ -627,20 +627,41 @@ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.1rem, 2vw, 1.75rem); - align-items: start; + align-items: stretch; } -.tl-live-col { - display: grid; - gap: 0.75rem; - min-width: 0; - align-content: start; +/* Pill sits above Live activity only; both cards share the same row → aligned tops. */ +.tl-live-grid--with-pill { + grid-template-rows: auto 1fr; } -.tl-live-col .tl-live-pill { +.tl-live-grid--with-pill .tl-live-pill { + grid-column: 1; + grid-row: 1; justify-self: start; width: fit-content; max-width: 100%; + margin-bottom: 0; +} + +.tl-live-grid--with-pill .tl-live-feed--activity { + grid-column: 1; + grid-row: 2; +} + +.tl-live-grid--with-pill .tl-live-feed--withdrawals { + grid-column: 2; + grid-row: 2; +} + +.tl-live-feed { + min-width: 0; + display: flex; + flex-direction: column; +} + +.tl-live-feed .tl-feed { + height: 100%; } .tl-feed { @@ -1132,8 +1153,17 @@ width: 100%; } - .tl-live-grid { + .tl-live-grid, + .tl-live-grid--with-pill { grid-template-columns: 1fr; + grid-template-rows: none; + } + + .tl-live-grid--with-pill .tl-live-pill, + .tl-live-grid--with-pill .tl-live-feed--activity, + .tl-live-grid--with-pill .tl-live-feed--withdrawals { + grid-column: 1; + grid-row: auto; } .tl-live-head {