Rename medcenter landings and add the revenue calculator

Rename the two medcenter landings to their audience names:
medcenter -> medcenterphysio, medcenterpersonal -> medcenterstart.

Alongside the rename:
- add a RevenueCalculator section to both landings;
- rework the copy and figures in src/data/content.ts;
- simplify the lead form: drop the "cabinet_state" and "profile"
  selects (along with SelectField and the matching fields in
  shared/lead.ts, lead-mapper.ts and amo-check.ts) and make
  company and email optional;
- add the legacy/new static prototypes for both landings;
- add pnpm-lock.yaml to medcenterstart (package-lock.json is still
  there too).

deploy/apps.conf and deploy/README.md still refer to the old
directory names and need a follow-up.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Yuriy PanovandClaude Opus 5 committed 2026-09-06 23:19:46 +06:00
1 parent be7741e269
commit 0732aa2096
170 files changed
+5342 -205

No files matched your search

@@ -0,0 +1,66 @@
import { useEffect, useState } from 'react'
import { contacts } from '../data/content'
import { cx } from '../lib/cx'
import { ButtonLink, buttonClass } from './Button'
import { PhoneIcon } from './Icons'
/**
* The primary CTA's home below 760px, where the header cannot hold it without
* crushing the logo. See `SiteHeader`.
*
* It waits for the hero — whose own two buttons say the same thing — to scroll
* away, and steps back down while the form is on screen, so it never sits on
* top of the fields it points at. That also keeps it clear of the submit
* button, which is the one control it could plausibly be mistaken for.
*/
export function MobileActionBar() {
const [shown, setShown] = useState(false)
useEffect(() => {
const hero = document.getElementById('top')
const form = document.getElementById('proposal')
if (!hero || !form) return
let heroOnScreen = true
let formOnScreen = false
const observer = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (entry.target === hero) heroOnScreen = entry.isIntersecting
if (entry.target === form) formOnScreen = entry.isIntersecting
}
setShown(!heroOnScreen && !formOnScreen)
})
observer.observe(hero)
observer.observe(form)
return () => observer.disconnect()
}, [])
return (
<div
/* Not `hidden` when down: it is off-screen, and `inert` already takes it
out of the tab order, so the slide stays animatable both ways. */
inert={!shown || undefined}
className={cx(
'fixed inset-x-0 bottom-0 z-[55] border-t border-white/[0.1] bg-navy-deep/[0.94] backdrop-blur-[18px] md:hidden',
'px-[16px] pt-[12px] pb-[max(12px,env(safe-area-inset-bottom))]',
'transition-transform duration-300 ease-[cubic-bezier(0.2,0.65,0.3,1)]',
shown ? 'translate-y-0' : 'translate-y-full',
)}
>
<div className="flex items-center gap-[10px]">
<a
href={contacts.phoneHref}
aria-label={`Позвонить в Экзо Групп по номеру ${contacts.phone}`}
className={buttonClass('call', 'shrink-0', 'min-h-[52px] w-[52px] px-0')}
>
<PhoneIcon />
</a>
<ButtonLink href="#proposal" className="flex-1">
Получить предложение
</ButtonLink>
</div>
</div>
)
}