ScroolToTop icon button

This commit is contained in:
Davron Chetin
2025-10-14 12:51:25 +05:00
parent c4a43ddd1e
commit a3b2d187ae
6 changed files with 13 additions and 17 deletions

View File

@@ -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() {

View File

@@ -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>
);

View File

@@ -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>
);
}