Add after-hours callbacks and persistent ad attribution to all four landings

- The callback dialog switches its copy outside business hours
  (shared/business-hours.ts); such leads get a "нерабочее время" tag,
  a marker in the deal name and a line in the note in amoCRM.
- utm_*, yclid and gclid are read on page load and kept for 30 days
  (src/lib/attribution.ts), last tagged visit wins, and are sent with
  every lead.
- The callback dialog is rebuilt: focus trap, focus return, phone
  masking and a full-number check.
- fitnes drops the floating MobileCta; header and mobile bars follow
  the new dialog state in the other three.
- Add the latest design mockups under legacy/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
yuriy.pandClaude Opus 5.5 committed 2026-09-23 20:53:40 +06:00
1 parent 56ff5839b8
commit a61d53962a
145 files changed
+9242 -523

No files matched your search

+15 -2
View File
@@ -1,8 +1,21 @@
import type { MouseEvent } from 'react'
import { isWithinBusinessHours } from '../../shared/business-hours'
import { contacts } from '../data/content'
import { reportCallClick } from '../lib/lead'
import { Container } from './Layout'
export function SiteFooter() {
export function SiteFooter({ onAfterHoursCall }: { onAfterHoursCall: () => void }) {
// Nobody answers out of hours, so the number opens the callback form instead
// of the dialler — and is not reported as a call, since none happens.
function onPhoneClick(event: MouseEvent<HTMLAnchorElement>) {
if (isWithinBusinessHours()) {
reportCallClick()
return
}
event.preventDefault()
onAfterHoursCall()
}
return (
<footer className="bg-footer py-[32px] text-[11px] text-[#8FA6B4]">
<Container className="flex flex-col gap-[18px] md:flex-row md:items-center md:justify-between">
@@ -12,7 +25,7 @@ export function SiteFooter() {
Российские технологии реабилитации
</div>
<div className="flex flex-wrap gap-[16px] [&>a:hover]:text-white">
<a href={contacts.phoneHref} onClick={reportCallClick}>
<a href={contacts.phoneHref} onClick={onPhoneClick}>
{contacts.phone}
</a>
<a href={`mailto:${contacts.email}`}>{contacts.email}</a>