diff --git a/app/[lang]/page.tsx b/app/[lang]/page.tsx index 750ad62..1669b8e 100644 --- a/app/[lang]/page.tsx +++ b/app/[lang]/page.tsx @@ -6,11 +6,13 @@ import Partners from "@/components/pageParts/partners"; import Map from "@/components/pageParts/map"; import CustomSlider from "@/components/pageParts/newsSlider"; import Footer from "@/components/nav_foot/footer"; +import HeroSection from "@/components/pageParts/hero"; export default function Home() { return (
-
+ +
diff --git a/components/nav_foot/header.tsx b/components/nav_foot/header.tsx index 8f1668c..817758d 100644 --- a/components/nav_foot/header.tsx +++ b/components/nav_foot/header.tsx @@ -18,13 +18,10 @@ export default function Header() {
- - +998 33 232 00 00 - {/* - - */} + +998 33 252 00 00
diff --git a/components/nav_foot/navbar.tsx b/components/nav_foot/navbar.tsx index b7a2683..1c51a44 100644 --- a/components/nav_foot/navbar.tsx +++ b/components/nav_foot/navbar.tsx @@ -1,15 +1,15 @@ // src/components/nav_foot/navbar.tsx "use client"; -import { useTranslation } from "react-i18next"; -import { useState } from "react"; +import { useEffect, useState } from "react"; import i18n from "@/i18n"; -import { Link, animateScroll as scroll } from "react-scroll"; +import { animateScroll as scroll } from "react-scroll"; import Text from "../lib_components/text"; import "./navbar.css"; import { logoImg } from "@/assets"; import Image from "next/image"; import { usePathname, useRouter } from "next/navigation"; +import { X } from "lucide-react"; // ❗ exit icon export default function Navbar() { const router = useRouter(); @@ -46,60 +46,108 @@ export default function Navbar() { router.push(`/${lang}`); }; + // ❗ Scrollni bloklash uchun effect + useEffect(() => { + if (toggle) { + document.body.style.overflow = "hidden"; // orqa scrollni o‘chir + } else { + document.body.style.overflow = "auto"; // qayta yoq + } + }, [toggle]); + return ( -
-
-
- - -
- -
-
- - - + <> + {toggle && ( +
+ )} +
+
+
+ +
-
-
-
-
-
- -
-
- +
+
+ - + +
+ +
+
+
+
+
+ +
+
+ + + + +
-
-
- SPES-TEXNIKA - logo +
+ + SPES-TEXNIKA + + logo +
-
+ ); } diff --git a/components/pageParts/hero.tsx b/components/pageParts/hero.tsx new file mode 100644 index 0000000..7be3938 --- /dev/null +++ b/components/pageParts/hero.tsx @@ -0,0 +1,56 @@ +"use client"; + +import { motion } from "framer-motion"; +import Image from "next/image"; + +export default function HeroSection() { + return ( +
+ + {/* Asosiy kontent */} +
+ {/* Chap tomondagi matn */} + +

+ Ishonchli SpesTexnika — + sizning loyihangiz uchun eng yaxshi tanlov! +

+ +

+ Biz eng so‘nggi texnikalar, maxsus transportlar va qurilish + uskunalarini qulay narxda taqdim etamiz. +

+
+ + {/* O‘ng tomondagi texnika rasmi */} + + SpetsTexnika yuk mashinasi + +
+ + {/* Pastdagi to‘lqinli animatsiya (dekor) */} + +
+ ); +} diff --git a/public/2.jpg b/public/2.jpg new file mode 100644 index 0000000..818de6c Binary files /dev/null and b/public/2.jpg differ diff --git a/public/hero.jpg b/public/hero.jpg new file mode 100644 index 0000000..eee6618 Binary files /dev/null and b/public/hero.jpg differ