hotel: apply the v7 design and add the callback dialog
Ports legacy/hotel v7 into the React landing. - Copy: nav is Экономика / Для гостя / Интерьер / Сервис, and «Интерьер» now comes before «Сервис». The hero keeps one button and gets the 2 500 ₽ / 600 000 ₽ / 7,2 млн ₽ facts. New headings and leads for the interior, service and request blocks. Session lengths 10–15 and 30–60 min, area 12–36 m². - Calculator counts sessions and gains the ЭкзоКлиник benchmark and a «Получить консультацию» button. - Request form: company and email are optional. The server schema already treats them as optional. - v8 phone type scale (≤620px), a 380px `micro` step, and a `slim` (≤640px) variant. The max-width variants are now declared widest first, so the narrower one wins where two apply. - The market charts' SVGs stay inline, as in the mockup. The header «Звонок» button opens the «Перезвоним вам» dialog from the fitness landing (name, phone, consent). The server accepts form 'callback', names the deal «Обратный звонок — <имя>» and tags it «обратный звонок». The phone link inside the dialog still reports a call click. With Inter substituted into the mockup, the page text matches it line for line (except the fixed «2025–2026 гг.» typo), and every section height matches at 360–1440 px. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
7ce8bee320
commit
1ee5431b92
@@ -52,7 +52,7 @@ export function Hero() {
|
||||
<p
|
||||
ref={subtitle.ref}
|
||||
className={cx(
|
||||
'mb-[30px] max-w-[730px] text-[clamp(19px,2.2vw,27px)] leading-[1.42] text-white/[0.82] delay-[160ms]',
|
||||
'mb-[30px] max-w-[730px] text-[clamp(19px,2.2vw,27px)] leading-[1.42] text-white/[0.82] delay-[160ms] compact:text-[18px] compact:leading-[1.46]',
|
||||
subtitle.revealClass,
|
||||
)}
|
||||
>
|
||||
@@ -64,29 +64,26 @@ export function Hero() {
|
||||
Получить предложение
|
||||
<ArrowRightIcon />
|
||||
</ButtonLink>
|
||||
<ButtonLink href="#equipment" variant="secondary">
|
||||
Подобрать оборудование
|
||||
</ButtonLink>
|
||||
</div>
|
||||
|
||||
<div
|
||||
ref={facts.ref}
|
||||
aria-label="Ключевые параметры формата"
|
||||
aria-label="Ключевая экономика сценария"
|
||||
className={cx(
|
||||
'grid max-w-[700px] grid-cols-3 gap-[10px] delay-[240ms] sm:gap-[12px] tiny:max-w-[330px] tiny:grid-cols-1',
|
||||
facts.revealClass,
|
||||
)}
|
||||
>
|
||||
{heroFacts.map((fact) => (
|
||||
// Under 430px the fact turns into a value/label row. The original used an
|
||||
// 80px column, which the widest value overflowed into the label; 124px
|
||||
// keeps every value on one line.
|
||||
// Under 430px the fact turns into a value/label row. The value column
|
||||
// grows with its content, so «600 000 ₽ / мес.» stays on one line.
|
||||
<div
|
||||
key={fact.value}
|
||||
className="min-h-[82px] rounded-[18px] border border-white/[0.16] bg-[#051D2F]/[0.42] px-[16px] py-[15px] backdrop-blur-[16px]
|
||||
tiny:grid tiny:min-h-0 tiny:grid-cols-[124px_1fr] tiny:items-center tiny:gap-[10px]"
|
||||
tiny:grid tiny:min-h-0 tiny:grid-cols-[minmax(118px,auto)_1fr] tiny:items-center tiny:gap-[10px]
|
||||
micro:grid-cols-[minmax(105px,auto)_1fr]"
|
||||
>
|
||||
<strong className="mb-[3px] block text-[clamp(20px,3vw,29px)] leading-[1.1] tracking-[-0.03em] tiny:mb-0 tiny:text-[21px]">
|
||||
<strong className="mb-[3px] block text-[clamp(19px,2.55vw,27px)] leading-[1.1] tracking-[-0.03em] whitespace-nowrap tiny:mb-0 tiny:text-[18px] micro:text-[17px]">
|
||||
{fact.value}
|
||||
</strong>
|
||||
<span className="text-[12px] text-white/[0.62]">{fact.label}</span>
|
||||
|
||||
Reference in New Issue
Block a user