This commit is contained in:
Davron Chetin
2025-10-14 17:16:41 +05:00
parent a3b2d187ae
commit d126d7f8e3
14 changed files with 218 additions and 42 deletions

11
app/[carType]/layout.tsx Normal file
View File

@@ -0,0 +1,11 @@
import CarType_Header from "@/components/carPageParts/carType_head";
import React, { ReactNode } from "react";
export default function Layout({ children }: { children: ReactNode }) {
return (
<div>
<CarType_Header />
{children}
</div>
);
}

View File

@@ -1,13 +1,13 @@
"use client"
"use client";
import CarType_Header from "@/components/carPageParts/carType_head";
import { useParams } from "next/navigation"
import Title from "@/components/title";
import { useParams } from "next/navigation";
export default function CartType() {
const router = useParams();
const router = useParams();
return (
<div>
<CarType_Header/>
<div dir="ltr" className="my-20" >
<Title text="tex-rent" />
</div>
)
);
}

View File

@@ -33,8 +33,8 @@ export default function RootLayout({
return (
<html lang={params.lang} dir={dir(params.lang)}>
<body>
<Header/>
<Navbar/>
<Header />
<Navbar />
{children}
<section id="contact" className="">
<Contact />

View File

@@ -4,18 +4,20 @@ import Offer from "@/components/pageParts/offer";
import Faq from "@/components/pageParts/faq";
import Partners from "@/components/pageParts/partners";
import Map from "@/components/pageParts/map";
import CustomSlider from "@/components/pageParts/newsSlider";
export default function Home() {
return (
<div >
<section id="products" className="mt-50 mb-10">
<Products/>
<div>
<section id="products" className="mt-50 mb-10">
<Products />
</section>
<Texnika/>
<Offer/>
<Faq/>
<Partners/>
<Map/>
<Texnika />
<Offer />
<CustomSlider/>
<Faq />
<Partners />
<Map />
</div>
);
}