Compare commits

..

4 Commits

9 changed files with 72 additions and 15 deletions

View File

@ -39,3 +39,4 @@ Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/bui
"# yourhouse"
"# yourhouse"
"# yourhouse"
# yourhouse21

View File

@ -4,6 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"dev-npx": "npx next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint"

BIN
public/images/un2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -97,6 +97,16 @@ export default function Home() {
{/* Left Content */}
<FadeInSection as="div" className="flex-1 text-white text-center lg:text-left" delay={0.2}>
{/* Блок с локацией */}
<div className="mb-6 sm:mb-8 text-center lg:text-left">
<div className="inline-flex items-center justify-center bg-white/20 backdrop-blur-sm rounded-full px-4 py-2.5 border border-white/30">
<svg className="w-4 h-4 sm:w-5 sm:h-5 mr-2 text-white flex-shrink-0" fill="currentColor" viewBox="0 0 20 20">
<path fillRule="evenodd" d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" clipRule="evenodd" />
</svg>
<span className="text-white text-sm font-medium leading-none">В республике Чувашия</span>
</div>
</div>
<h1 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl xl:text-7xl font-bold text-white mb-4 sm:mb-6 leading-tight">
СТРОИТЕЛЬСТВО КАМЕННЫХ<br />
И КАРКАСНЫХ ДОМОВ<br />

View File

@ -159,6 +159,20 @@ const ContactSection = () => {
</p>
</div>
</div>
<div className="flex items-start space-x-3 sm:space-x-4">
<div className="flex-shrink-0 w-10 sm:w-12 h-10 sm:h-12 bg-orange-500/20 rounded-full flex items-center justify-center group-hover:bg-orange-500/30 transition-colors duration-300">
<svg className="w-5 sm:w-6 h-5 sm:h-6 text-orange-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
</svg>
</div>
<div>
<p className="text-gray-600 text-sm sm:text-base mb-1">Email</p>
<a href="mailto:Vashdom121@mail.ru" className="text-lg sm:text-xl font-semibold text-gray-800 hover:text-orange-600 transition-colors duration-300">
Vashdom121@mail.ru
</a>
</div>
</div>
</div>
</div>

View File

@ -56,7 +56,11 @@ const Footer = () => {
+7 953 014 86 06
</a>
</li>
<li>info@vashdom.ru</li>
<li>
<a href="mailto:Vashdom121@mail.ru" className="hover:text-white transition-colors">
Vashdom121@mail.ru
</a>
</li>
<li>
г. Чебоксары,<br />
ул. Калинина, 107

View File

@ -4,12 +4,14 @@ import Link from 'next/link';
import { Menu, Phone } from 'lucide-react';
import { useState } from 'react';
import CallbackModal from './CallbackModal';
import HouseCalculatorModal from './HouseCalculatorModal';
import MobileMenu from './MobileMenu';
import FadeInOnMount from './FadeInOnMount';
const Header = () => {
const [isModalOpen, setIsModalOpen] = useState(false);
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
const [isCalculatorOpen, setIsCalculatorOpen] = useState(false);
return (
<>
@ -39,6 +41,12 @@ const Header = () => {
<Link href="#additional-services" className="text-white hover:text-blue-400 transition-colors font-medium">
Услуги
</Link>
<button
onClick={() => setIsCalculatorOpen(true)}
className="text-white hover:text-blue-400 transition-colors font-medium"
>
Калькулятор
</button>
<Link href="#contact" className="text-white hover:text-blue-400 transition-colors font-medium">
Контакты
</Link>
@ -93,9 +101,12 @@ const Header = () => {
<div className="md:hidden flex items-center space-x-2">
<button
onClick={() => setIsModalOpen(true)}
className="bg-gradient-to-r from-orange-500 to-red-500 text-white px-3 py-2 rounded-lg text-sm font-semibold hover:from-orange-600 hover:to-red-600 transition-all duration-300 hover:scale-105 shadow-lg"
className="bg-gradient-to-r from-orange-500 to-red-500 text-white px-3 py-2 rounded-lg text-xs font-semibold hover:from-orange-600 hover:to-red-600 transition-all duration-300 hover:scale-105 shadow-lg"
>
Заказать звонок
<div className="text-center">
<div>+7 953 013 24 23</div>
<div>+7 953 014 86 06</div>
</div>
</button>
<button
onClick={() => setIsMobileMenuOpen(true)}
@ -119,6 +130,11 @@ const Header = () => {
onClose={() => setIsMobileMenuOpen(false)}
onCallbackClick={() => setIsModalOpen(true)}
/>
<HouseCalculatorModal
isOpen={isCalculatorOpen}
onClose={() => setIsCalculatorOpen(false)}
/>
</>
);
};

View File

@ -132,7 +132,7 @@ const HouseCalculatorModal = ({ isOpen, onClose, userName = '', userPhone = '' }
};
const calculatePrice = () => {
let basePrice = 1500000; // Базовая цена
let basePrice = 1500000 * 2.5; // Базовая цена увеличена в 2.5 раза
// Корректировка по площади
if (area === '100-150 кв.м.') basePrice *= 1.3;
@ -317,7 +317,7 @@ const HouseCalculatorModal = ({ isOpen, onClose, userName = '', userPhone = '' }
Спасибо за заявку!
</h2>
<div className="text-2xl sm:text-3xl lg:text-4xl font-bold text-blue-400 mb-2 sm:mb-4">
{calculatePrice().toLocaleString()}
от {calculatePrice().toLocaleString()}
</div>
<p className="text-sm sm:text-base text-gray-300">
Мы свяжемся с вами в ближайшее время

View File

@ -49,7 +49,7 @@ const MobileMenu = ({ isOpen, onClose, onCallbackClick }: MobileMenuProps) => {
<nav className="flex-1 flex flex-col space-y-6">
<Link
href="#services"
href="#additional-services"
className="text-xl text-white hover:text-blue-400 transition-colors py-2"
onClick={onClose}
>
@ -101,7 +101,18 @@ const MobileMenu = ({ isOpen, onClose, onCallbackClick }: MobileMenuProps) => {
<span className="text-lg font-semibold">+7 953 014 86 06</span>
</a>
</div>
<div className="text-sm text-gray-300 mb-6">Пн - Вс с 8:00 до 20:00</div>
<div className="text-sm text-gray-300 mb-4">Пн - Вс с 8:00 до 20:00</div>
<div className="mb-6">
<a
href="mailto:Vashdom121@mail.ru"
className="flex items-center text-white hover:text-blue-400 transition-colors group"
>
<svg className="w-5 h-5 mr-2 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
</svg>
<span className="text-sm">Vashdom121@mail.ru</span>
</a>
</div>
<button
onClick={() => {
onCallbackClick?.();