Files
exodevices/fitnes/src/components/SiteFooter.tsx
T
yuriy.pandClaude Opus 5.5 a61d53962a 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>
2026-09-23 20:53:40 +06:00

41 lines
1.5 KiB
TypeScript

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({ 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">
<div>
<strong className="text-white">ЭКЗО ГРУПП</strong>
<br />
Российские технологии реабилитации
</div>
<div className="flex flex-wrap gap-[16px] [&>a:hover]:text-white">
<a href={contacts.phoneHref} onClick={onPhoneClick}>
{contacts.phone}
</a>
<a href={`mailto:${contacts.email}`}>{contacts.email}</a>
<a href={contacts.siteHref} rel="noopener" target="_blank">
{contacts.site}
</a>
</div>
<div>© 2026 ООО «ЭКЗО ГРУПП»</div>
</Container>
</footer>
)
}