ScroolToTop icon button
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import CarType_Header from "@/components/carTypePageParts/carType_head";
|
||||
import CarType_Header from "@/components/carPageParts/carType_head";
|
||||
import { useParams } from "next/navigation"
|
||||
|
||||
export default function CartType() {
|
||||
|
||||
@@ -3,6 +3,10 @@ import { Geist, Geist_Mono } from "next/font/google";
|
||||
import { dir } from "i18next";
|
||||
import "./globals.css";
|
||||
import UpScrollIcon from "@/components/upScroll";
|
||||
import Contact from "@/components/pageParts/contact";
|
||||
import Footer from "@/components/nav_foot/footer";
|
||||
import Navbar from "@/components/nav_foot/navbar";
|
||||
import Header from "@/components/nav_foot/header";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
@@ -26,14 +30,17 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
params: { lang: string };
|
||||
}>) {
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<html lang={params.lang} dir={dir(params.lang)}>
|
||||
<body>
|
||||
<Header/>
|
||||
<Navbar/>
|
||||
{children}
|
||||
<UpScrollIcon/>
|
||||
<section id="contact" className="">
|
||||
<Contact />
|
||||
</section>
|
||||
<Footer />
|
||||
<UpScrollIcon />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
11
app/page.tsx
11
app/page.tsx
@@ -1,20 +1,13 @@
|
||||
import Image from "next/image";
|
||||
import Header from "../components/nav_foot/header";
|
||||
import Navbar from "@/components/nav_foot/navbar";
|
||||
import Products from "@/components/pageParts/products";
|
||||
import Texnika from "@/components/pageParts/texnika";
|
||||
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 Contact from "@/components/pageParts/contact";
|
||||
import Footer from "@/components/nav_foot/footer";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div >
|
||||
<Header/>
|
||||
<Navbar/>
|
||||
<section id="products" className="mt-50 mb-10">
|
||||
<Products/>
|
||||
</section>
|
||||
@@ -23,10 +16,6 @@ export default function Home() {
|
||||
<Faq/>
|
||||
<Partners/>
|
||||
<Map/>
|
||||
<section id="contact" className="" >
|
||||
<Contact/>
|
||||
</section>
|
||||
<Footer/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user