From 9f047aecb447bdc73186a35a86a3fcce6c031254 Mon Sep 17 00:00:00 2001 From: "nabijonovdavronbek619@gmail.com" Date: Sat, 8 Nov 2025 11:11:44 +0500 Subject: [PATCH] connect links to a tegs --- app/[lang]/[carType]/[carDeatil]/page.tsx | 8 ++++---- app/[lang]/page.tsx | 5 ++++- components/cards/sliderCard.tsx | 4 +++- components/nav_foot/footer.tsx | 21 +++++++++++---------- components/nav_foot/navbar.tsx | 2 +- components/pageParts/contact.tsx | 5 +++-- components/pageParts/offer.tsx | 4 ++-- 7 files changed, 28 insertions(+), 21 deletions(-) diff --git a/app/[lang]/[carType]/[carDeatil]/page.tsx b/app/[lang]/[carType]/[carDeatil]/page.tsx index 5a26f5b..656d102 100644 --- a/app/[lang]/[carType]/[carDeatil]/page.tsx +++ b/app/[lang]/[carType]/[carDeatil]/page.tsx @@ -68,19 +68,19 @@ export default function CarDetailPage() {
- - +
diff --git a/app/[lang]/page.tsx b/app/[lang]/page.tsx index 49248a8..750ad62 100644 --- a/app/[lang]/page.tsx +++ b/app/[lang]/page.tsx @@ -5,6 +5,7 @@ import Faq from "@/components/pageParts/faq"; 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"; export default function Home() { return ( @@ -14,7 +15,9 @@ export default function Home() { - +
+ +
diff --git a/components/cards/sliderCard.tsx b/components/cards/sliderCard.tsx index 6321b06..783339f 100644 --- a/components/cards/sliderCard.tsx +++ b/components/cards/sliderCard.tsx @@ -5,11 +5,13 @@ import Image from "next/image"; import Link from "next/link"; import Text from "../lib_components/text"; import { motion } from "framer-motion"; +import { useParams } from "next/navigation"; export default function SliderCard({ data }: { data: ProductTypes }) { + const router = useParams(); return ( diff --git a/components/nav_foot/footer.tsx b/components/nav_foot/footer.tsx index 843bc7c..cd89db3 100644 --- a/components/nav_foot/footer.tsx +++ b/components/nav_foot/footer.tsx @@ -32,25 +32,25 @@ export default function Footer() {
-
-
+
-
-
+
void }) { return ( <>

- Qo'ng'iroqni buyurtma qiling +

{/* Input va Button bloki */} @@ -16,7 +17,7 @@ export default function Contact() { className="flex-1 py-3 px-5 bg-white text-gray-600 placeholder-gray-400 text-lg clip-input focus:outline-none" />
diff --git a/components/pageParts/offer.tsx b/components/pageParts/offer.tsx index 221138d..a8c59dd 100644 --- a/components/pageParts/offer.tsx +++ b/components/pageParts/offer.tsx @@ -32,12 +32,12 @@ export default function Offer() { " - +