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:
1 parent
56ff5839b8
commit
a61d53962a
145 files changed
+9242
-523
No files matched your search
+12
-5
@@ -12,19 +12,26 @@ import { SiteHeader } from './components/SiteHeader'
|
||||
import { WhyExoSection } from './components/WhyExoSection'
|
||||
import { useAnchorScroll } from './hooks/useAnchorScroll'
|
||||
import { useScrolled } from './hooks/useScrollState'
|
||||
import { isWithinBusinessHours } from '../shared/business-hours'
|
||||
|
||||
export default function App() {
|
||||
const headerRef = useRef<HTMLElement>(null)
|
||||
const scrolled = useScrolled()
|
||||
useAnchorScroll(headerRef)
|
||||
|
||||
const [callbackOpen, setCallbackOpen] = useState(false)
|
||||
const openCallback = useCallback(() => setCallbackOpen(true), [])
|
||||
const closeCallback = useCallback(() => setCallbackOpen(false), [])
|
||||
// null while closed; otherwise whether it was opened outside business hours.
|
||||
const [callback, setCallback] = useState<{ afterHours: boolean } | null>(null)
|
||||
const openCallback = useCallback(() => setCallback({ afterHours: !isWithinBusinessHours() }), [])
|
||||
const closeCallback = useCallback(() => setCallback(null), [])
|
||||
|
||||
return (
|
||||
<>
|
||||
<SiteHeader scrolled={scrolled} headerRef={headerRef} onCallbackClick={openCallback} />
|
||||
<SiteHeader
|
||||
scrolled={scrolled}
|
||||
headerRef={headerRef}
|
||||
callbackOpen={callback !== null}
|
||||
onCallbackClick={openCallback}
|
||||
/>
|
||||
|
||||
<main>
|
||||
<Hero />
|
||||
@@ -38,7 +45,7 @@ export default function App() {
|
||||
</main>
|
||||
|
||||
<SiteFooter />
|
||||
<CallbackModal open={callbackOpen} onClose={closeCallback} />
|
||||
<CallbackModal open={callback !== null} afterHours={callback?.afterHours ?? false} onClose={closeCallback} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user