From cb5cdebbefae74ba8129181089d3ee44f14ed7f8 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 22 May 2026 19:45:43 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 137 +++++++++++++++++++++-------------------------- 1 file changed, 61 insertions(+), 76 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 9cbc8f6..637ac28 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -6,7 +6,7 @@ import { useState } from "react"; import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; import FaqBase from '@/components/sections/faq/FaqBase'; import FeatureCardTwentyThree from '@/components/sections/feature/FeatureCardTwentyThree'; -import FooterMedia from '@/components/sections/footer/FooterMedia'; +import FooterSimple from '@/components/sections/footer/FooterSimple'; import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel'; import MediaAbout from '@/components/sections/about/MediaAbout'; import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo'; @@ -17,34 +17,11 @@ import TeamCardSix from '@/components/sections/team/TeamCardSix'; import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne'; export default function LandingPage() { - const [service, setService] = useState(""); - const [teeth, setTeeth] = useState(1); - const [price, setPrice] = useState(null); - - const services = [ - { name: "Имплантация", base: 25000 }, - { name: "Отбеливание", base: 8000 }, - { name: "Брекеты", base: 35000 }, - { name: "Лечение кариеса", base: 3000 }, - { name: "Виниры", base: 15000 }, - { name: "Протезирование", base: 12000 }, - { name: "Профессиональная чистка", base: 3000 }, - ]; - - const handleCalculate = () => { - const selected = services.find((s) => s.name === service); - if (selected) setPrice(selected.base * teeth); - }; - const handleScroll = (id: string) => { const element = document.getElementById(id); if (element) { element.scrollIntoView({ behavior: "smooth" }); } - const menu = document.querySelector('[data-fullscreen-menu]'); - if (menu) { - (menu as HTMLElement).style.display = 'none'; - } }; return ( @@ -61,62 +38,70 @@ export default function LandingPage() { headingFontWeight="normal" > - + -
- handleScroll('about') }, - ]} - mediaItems={[{ imageSrc: "http://img.b2bpic.net/free-photo/young-female-dentist-treating-patients-teeth-with-dental-microscope-dentistry-concept_169016-66977.jpg?_wi=1", imageAlt: "modern dental clinic interior" }]} - /> -
+
+ handleScroll('services') }, + ]} + mediaItems={[{ imageSrc: "http://img.b2bpic.net/free-photo/young-female-dentist-treating-patients-teeth-with-dental-microscope-dentistry-concept_169016-66977.jpg?_wi=1", imageAlt: "dentistry" }]} + /> +
-
-
+
+ +
-
-
-

Рассчитайте стоимость лечения

-

Получите примерную стоимость за 30 секунд

- - setTeeth(Number(e.target.value))} placeholder="Количество зубов" /> - - {price !== null && ( -
-

Примерная стоимость: {price} ₽

- Записаться на приём -
- )} -
-
+
+ +
-
-
-
-
-
-
-
-
Карта
- +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
); -- 2.49.1