Add first-visit tip and how-to guide for guests
- guests in the feed see a "New here?" tip with a waving hand: swipe up to dismiss on mobile (top), close button on desktop (bottom right); shown once, remembered in localStorage - GuideModal: six short steps (feed and map, map pins, posting, chat with photos/video, phone reveal, marking as returned) plus safety tips; guests get a sign-in button - "How it works" item in the mobile menu and the desktop sidebar - ru/en texts, tests, README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,8 @@ import CityFilterLegacy from "../components/CityFilter";
|
||||
import { ProfileModal } from "../components/profile";
|
||||
import AuthModal from "../components/AuthModal";
|
||||
import RulesModal from "./RulesModal";
|
||||
import GuideModal from "../components/GuideModal";
|
||||
import GuestGuideBanner from "../components/GuestGuideBanner";
|
||||
import FeedTopBar from "../components/feed/FeedTopBar";
|
||||
import FeedSearchBar from "../components/feed/FeedSearchBar";
|
||||
import CityQuickFilterLegacy from "../components/feed/CityQuickFilter";
|
||||
@@ -664,6 +666,18 @@ export default function MainFeed() {
|
||||
|
||||
{modals.isOpen("rules") && <RulesModal onClose={modals.close} />}
|
||||
|
||||
{modals.isOpen("guide") && (
|
||||
<GuideModal
|
||||
onClose={modals.close}
|
||||
onLoginClick={isAuthenticated ? undefined : () => modals.open("auth")}
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Гостю в ленте — подсказка «Ты здесь впервые?» со ссылкой на инструкцию */}
|
||||
{!isAuthenticated && !isMapView && (
|
||||
<GuestGuideBanner onOpenGuide={() => modals.open("guide")} />
|
||||
)}
|
||||
|
||||
{modals.isOpen("postDetail") && (
|
||||
<PostDetailModal
|
||||
postId={modals.modal.payload.postId}
|
||||
|
||||
Reference in New Issue
Block a user