diff --git a/app/page.tsx b/app/page.tsx index efa7a72..1747596 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,12 +1,16 @@ 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"; export default function Home() { return (
+
+ +
); } diff --git a/components/nav_foot/navbar.tsx b/components/nav_foot/navbar.tsx index 1a0fec3..ba9974f 100644 --- a/components/nav_foot/navbar.tsx +++ b/components/nav_foot/navbar.tsx @@ -163,7 +163,7 @@ function LinkGroup({ togle_func }: { togle_func: () => void }) { (null); return (
- + {/* title part */} + <div className="flex flex-col md:gap-8 gap-4"> + <div className="flex items-center justify-center w-full "> + <div className="text-secondary px-2 py-1 text-[18px] font-semibold "> + <Text txt="equipment" /> + </div> + <div className="bg-primary text-secondary px-3 py-1 text-[18px] font-semibold "> + <Text txt="amazing" /> + </div> + </div> + <Title text="pricing-h2" /> + </div> + + {/* product filters */} + <div className="flex flex-wrap gap-3 items-center justify-center"> + {productsTypes.map((item, index) => ( + <button + key={index} + onClick={()=>setProductFilter(item)} + className={`${productFilter === item ?'bg-secondary' : ''} hover:bg-secondary border-gray-300 hover:border-secondary border-[1px] px-10 py-3 text-2xl rounded-tr-full rounded-bl-full `} + > + <Text txt={item} /> + </button> + ))} + </div> + + {/* products */} + <div></div> </div> - ) + ); } diff --git a/components/tools/title.tsx b/components/tools/title.tsx index 933a202..bc07f18 100644 --- a/components/tools/title.tsx +++ b/components/tools/title.tsx @@ -1,8 +1,9 @@ import { TitleType } from '@/types' import React from 'react' +import Text from '../text' export default function Title({text}:TitleType) { return ( - <div className='text-primary text-3xl ' >{text}</div> + <div className='text-primary md:text-[45px] text-[25px] w-full text-center font-bold '><Text txt={text} /></div> ) }