ScroolToTop icon button
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -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,13 +30,16 @@ 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}
|
||||||
|
<section id="contact" className="">
|
||||||
|
<Contact />
|
||||||
|
</section>
|
||||||
|
<Footer />
|
||||||
<UpScrollIcon />
|
<UpScrollIcon />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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 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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 },
|
||||||
|
|||||||
Reference in New Issue
Block a user