products
This commit is contained in:
11
app/[carType]/layout.tsx
Normal file
11
app/[carType]/layout.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
@@ -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>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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 />
|
||||
|
||||
18
app/page.tsx
18
app/page.tsx
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user