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:
SlimusMinus
2026-10-29 22:25:15 +03:00
parent 025ba2d637
commit df91e7e129
12 changed files with 734 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ import { useState, useCallback } from "react";
* Управляет всеми модалками MainFeed через единое состояние,
* чтобы гарантировать что открыта максимум одна модалка сразу.
*
* Типы: "create" | "edit" | "profile" | "auth" | "rules" | "postDetail"
* Типы: "create" | "edit" | "profile" | "auth" | "rules" | "guide" | "postDetail"
*/
export function useModals() {
const [modal, setModal] = useState(null); // { type, payload }