[Help] Add help/learning page + interactive guided app tour
New /Help page: quick-start, separate guides for کادر درمان (search/near-me/preferences/اعلام تمایل/saved) and مراکز درمانی (register/post/verify-with-docs/applicants), notifications+install, report/complaint, and an FAQ accordion. Self-hosted tour.js (no CDN, RTL): spotlights elements via data-tour hooks in the nav, auto-runs once for new visitors on the home page (localStorage flag), re-runnable from the Help page button or ?tour=1; skips steps whose target is hidden so it works on mobile/other pages. Help linked from nav + footer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -235,6 +235,24 @@ label { font-size: 13px; }
|
||||
.footer-links a { color: var(--muted); }
|
||||
.footer-links a:hover { color: var(--primary); }
|
||||
|
||||
/* ---------- Guided tour ---------- */
|
||||
.tour-overlay { position: fixed; inset: 0; z-index: 1000; }
|
||||
.tour-hole {
|
||||
position: fixed; border-radius: 12px; pointer-events: none;
|
||||
box-shadow: 0 0 0 9999px rgba(13,30,40,.62);
|
||||
outline: 2px solid var(--accent); transition: all .2s ease;
|
||||
}
|
||||
.tour-bubble {
|
||||
position: fixed; z-index: 1001; background: var(--surface); color: var(--text);
|
||||
border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.28);
|
||||
padding: 16px; max-width: 320px;
|
||||
}
|
||||
.tour-title { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
|
||||
.tour-text { font-size: 14px; color: var(--muted); line-height: 1.9; }
|
||||
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
|
||||
.tour-count { font-size: 12px; color: var(--muted); }
|
||||
.tour-btns { display: flex; gap: 6px; }
|
||||
|
||||
/* Legal/policy pages (privacy, rules, terms) — comfortable long-form reading. */
|
||||
.legal { line-height: 2; }
|
||||
.legal h2 { font-size: 17px; margin: 22px 0 8px; color: var(--primary-dark); }
|
||||
|
||||
Reference in New Issue
Block a user