62 lines
1.9 KiB
TypeScript
62 lines
1.9 KiB
TypeScript
"use client";
|
||
import React from "react";
|
||
import Navbar from "../../components/Navbar";
|
||
import { boxItems } from "@/constants";
|
||
import Image from "next/image";
|
||
import { cn } from "@/lib/utils";
|
||
|
||
export default function Landing() {
|
||
return (
|
||
<div>
|
||
<div
|
||
style={{ backgroundSize: "100%" }}
|
||
className=" bg-mainBg w-full bg-contain bg-top lg:bg-center bg-no-repeat h-[20rem] md:h-[24rem] xl:h-[33rem] "
|
||
>
|
||
<Navbar />
|
||
</div>
|
||
<div className=" w-[60%] mx-auto">
|
||
<div className="flex justify-between gap-6 w-full mx-auto -mt-24">
|
||
{boxItems.map((item) => {
|
||
return (
|
||
<div className=" bg-white shadow-md rounded-lg p-10 h-64 w-64 flex items-end justify-center z-10 relative">
|
||
<p className=" z-10">{item.name}</p>
|
||
<Image
|
||
alt="icon"
|
||
src={item.icon}
|
||
width={20}
|
||
height={20}
|
||
quality={100}
|
||
className={cn(
|
||
" w-[80%] h-[80%] absolute left-2 top-6",
|
||
item.id == 1 && "left-8"
|
||
)}
|
||
/>
|
||
</div>
|
||
);
|
||
})}
|
||
</div>
|
||
<div className=" border mt-6 mx-auto py-3 px-4 rounded-lg">
|
||
آخرین اخبار
|
||
</div>
|
||
<div className=" w-full mt-6 flex gap-6">
|
||
<div className=" w-1/2 border rounded-lg">
|
||
<Image
|
||
alt="picture"
|
||
src="/img/pic1.png"
|
||
height={500}
|
||
width={500}
|
||
style={{ objectFit: "contain" }}
|
||
className="w-1/2 h-full rounded-r-lg"
|
||
/>
|
||
<div className=" w-1/2 h-full"></div>
|
||
</div>
|
||
<div className=" w-1/2">
|
||
<div></div>
|
||
<div></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
);
|
||
}
|