From 463cabbdd05b789ad4bd2c0640037da295c579d9 Mon Sep 17 00:00:00 2001 From: brooktewabe Date: Sun, 1 Mar 2026 14:24:30 +0300 Subject: [PATCH] layout --- components/layout/auth-modal.tsx | 18 ++-- components/layout/layout-client-wrapper.tsx | 28 +++-- components/layout/right-panel.tsx | 26 +++-- components/layout/site-footer.tsx | 12 +-- components/layout/site-header.tsx | 114 ++++++++++++-------- components/layout/sports-sidebar.tsx | 87 +++++++++++---- components/ui/button.tsx | 10 +- components/ui/tabs.tsx | 37 +++---- 8 files changed, 206 insertions(+), 126 deletions(-) diff --git a/components/layout/auth-modal.tsx b/components/layout/auth-modal.tsx index 083fa0c..8b104a9 100644 --- a/components/layout/auth-modal.tsx +++ b/components/layout/auth-modal.tsx @@ -66,39 +66,41 @@ export function AuthModal({ open, defaultMode, onClose }: AuthModalProps) { onClick={onClose} >
e.stopPropagation()} > {/* Close button */} {/* Logo */} -
- +
+
+ +
{/* Title */} -
-

+
+

{mode === "login" ? "LOGIN" : "REGISTER"}

{/* Form */} -
+
{/* Phone Number */}
- + ET +251 ("login") @@ -24,23 +30,25 @@ export default function LayoutClientWrapper({ children }: { children: React.Reac }, []) return ( -
+
openAuth("login")} onRegisterClick={() => openAuth("register")} /> -
- {/* Sidebar: hidden on mobile */} - {!isLivePage && ( -
+
+ {/* Sidebar: hidden on mobile and hidden on specific pages */} + {!hideLeftSidebar && ( +
)} -
{children}
- {/* Right panel: hidden on mobile */} -
- -
+
{children}
+ {/* Right panel: completely off-flow on mobile/tablet; only from lg to match RightPanel */} + {!hideRightSidebar && ( +
+ +
+ )}
diff --git a/components/layout/right-panel.tsx b/components/layout/right-panel.tsx index a1b1ed8..c9ca64c 100644 --- a/components/layout/right-panel.tsx +++ b/components/layout/right-panel.tsx @@ -3,6 +3,7 @@ import { Betslip } from "@/components/betting/betslip" import { ReloadTicket } from "@/components/betting/reload-ticket" import { CheckYourBet } from "@/components/betting/check-your-bet" +import { useBetslipStore } from "@/lib/store/betslip-store" import { useState } from "react" import { Button } from "@/components/ui/button" @@ -10,14 +11,15 @@ import { Input } from "@/components/ui/input" export function RightPanel() { const [activeTab, setActiveTab] = useState<"betslip" | "myBets">("betslip") + const bets = useBetslipStore((s) => s.bets) return ( -