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" "use client"
import CarType_Header from "@/components/carTypePageParts/carType_head"; import CarType_Header from "@/components/carPageParts/carType_head";
import { useParams } from "next/navigation" import { useParams } from "next/navigation"
export default function CartType() { export default function CartType() {

View File

@@ -3,6 +3,10 @@ import { Geist, Geist_Mono } from "next/font/google";
import { dir } from "i18next"; import { dir } from "i18next";
import "./globals.css"; import "./globals.css";
import UpScrollIcon from "@/components/upScroll"; 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({ const geistSans = Geist({
variable: "--font-geist-sans", variable: "--font-geist-sans",
@@ -26,14 +30,17 @@ export default function RootLayout({
children: React.ReactNode; children: React.ReactNode;
params: { lang: string }; params: { lang: string };
}>) { }>) {
return ( return (
<html lang={params.lang} dir={dir(params.lang)}> <html lang={params.lang} dir={dir(params.lang)}>
<body> <body>
<Header/>
<Navbar/>
{children} {children}
<UpScrollIcon/> <section id="contact" className="">
<Contact />
</section>
<Footer />
<UpScrollIcon />
</body> </body>
</html> </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 Products from "@/components/pageParts/products";
import Texnika from "@/components/pageParts/texnika"; import Texnika from "@/components/pageParts/texnika";
import Offer from "@/components/pageParts/offer"; import Offer from "@/components/pageParts/offer";
import Faq from "@/components/pageParts/faq"; import Faq from "@/components/pageParts/faq";
import Partners from "@/components/pageParts/partners"; import Partners from "@/components/pageParts/partners";
import Map from "@/components/pageParts/map"; import Map from "@/components/pageParts/map";
import Contact from "@/components/pageParts/contact";
import Footer from "@/components/nav_foot/footer";
export default function Home() { export default function Home() {
return ( return (
<div > <div >
<Header/>
<Navbar/>
<section id="products" className="mt-50 mb-10"> <section id="products" className="mt-50 mb-10">
<Products/> <Products/>
</section> </section>
@@ -23,10 +16,6 @@ export default function Home() {
<Faq/> <Faq/>
<Partners/> <Partners/>
<Map/> <Map/>
<section id="contact" className="" >
<Contact/>
</section>
<Footer/>
</div> </div>
); );
} }

View File

@@ -7,7 +7,7 @@ import { Asphalt, Ekskavator, Forklift, Kran, Truck } from "@/assets";
import Image from "next/image"; import Image from "next/image";
import type {productFilterTypes, ProductTypes} from "@/types"; import type {productFilterTypes, ProductTypes} from "@/types";
import { allProducts } from "@/data"; import { allProducts } from "@/data";
import ProductCard from "../carTypePageParts/productCard"; import ProductCard from "../carPageParts/productCard";
const productFilterTypes: productFilterTypes[] = [ const productFilterTypes: productFilterTypes[] = [
{ name: "trucks", image: Truck }, { name: "trucks", image: Truck },