From 7e9d83e79a97b4a634b10268af4e034ac129939c Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Mon, 8 Jun 2026 23:20:37 +0330 Subject: [PATCH] Mobile: single-row logo+title on Home; add Sign Out to Profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Home: logo and «برگ وسط» now sit on one row (prevents overflow), with «بازی حکم آنلاین» as a small subtitle beneath the title next to the logo. - Profile: add a خروج (Sign Out) button at the bottom (when signed in). Co-Authored-By: Claude Opus 4.8 --- src/components/HomeScreen.tsx | 23 +++++++++++++++-------- src/components/screens/ProfileScreen.tsx | 18 +++++++++++++++++- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/src/components/HomeScreen.tsx b/src/components/HomeScreen.tsx index 11fe9b7..25fc88a 100644 --- a/src/components/HomeScreen.tsx +++ b/src/components/HomeScreen.tsx @@ -84,16 +84,23 @@ export function HomeScreen() { -
- + {/* logo + title on one row (no overflow); subtitle beneath the title */} +
+
+ +
+
+

+ {t("app.title")} +

+

{t("app.subtitle")}

+
+
+
+
-

- {t("app.title")} -

-

{t("app.subtitle")}

- {/* HERO: play online */} diff --git a/src/components/screens/ProfileScreen.tsx b/src/components/screens/ProfileScreen.tsx index 80e5c68..140b1af 100644 --- a/src/components/screens/ProfileScreen.tsx +++ b/src/components/screens/ProfileScreen.tsx @@ -1,7 +1,7 @@ "use client"; import { motion } from "framer-motion"; -import { Check, ChevronLeft, Crown, Eye, EyeOff, Lock, Music, Pencil, Star, Upload, Users, Volume2 } from "lucide-react"; +import { Check, ChevronLeft, Crown, Eye, EyeOff, Lock, LogOut, Music, Pencil, Star, Upload, Users, Volume2 } from "lucide-react"; import { useRef, useState } from "react"; import { ScreenHeader, ScreenShell } from "@/components/online/ScreenHeader"; import { RankBadge } from "@/components/online/RankBadge"; @@ -35,6 +35,8 @@ export function ProfileScreen() { const profile = useSessionStore((s) => s.profile); const updateProfile = useSessionStore((s) => s.updateProfile); const upgradePlan = useSessionStore((s) => s.upgradePlan); + const signOut = useSessionStore((s) => s.signOut); + const isAuthed = useSessionStore((s) => s.isAuthed); const go = useUIStore((st) => st.go); const fileRef = useRef(null); const [editing, setEditing] = useState(false); @@ -346,6 +348,20 @@ export function ProfileScreen() { })}
+ + {/* Sign out */} + {isAuthed && ( + + )} ); }