67 lines
2.4 KiB
TypeScript
67 lines
2.4 KiB
TypeScript
"use client";
|
|
import Image from "next/image";
|
|
import React, { useEffect, useState } from "react";
|
|
|
|
import { callUsItems } from "@/constants";
|
|
import { getSingleWebContents } from "@/utils/commonApi";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
const Map = dynamic(() => import("./Map"), {
|
|
ssr: false,
|
|
});
|
|
import dynamic from "next/dynamic";
|
|
import { useQuery } from "@tanstack/react-query";
|
|
|
|
export default function CallUs(props: any) {
|
|
const { position, zoom } = props;
|
|
|
|
return (
|
|
<div className="bg-white dark:bg-gray-900 w-screen">
|
|
<div className="w-full">
|
|
|
|
{/* <div className="w-full mt-6"> */}
|
|
{/* <Map /> */}
|
|
{/* </div> */}
|
|
|
|
<div className="container flex items-center h-[90vh]">
|
|
<div className="grid gap-8 md:gap-0 grid-cols-1 md:grid-cols-2 md:h-[40vh] h-full w-full lg:px-32 xl:px-52 md:py-8 py-12">
|
|
{callUsItems.map((item) => {
|
|
return (
|
|
<div
|
|
key={item.id}
|
|
className={cn(
|
|
" px-4 md:px-6 gap-4 flex justify-center items-center lg:border-l-[1px] border-black h-full",
|
|
item.id == 3 && " lg:border-l-0 backdrop:"
|
|
)}
|
|
>
|
|
<div
|
|
key={item.id}
|
|
className="p-4 lg:p-6 dark:bg-gray-800 gap-4 flex flex-col justify-between items-center
|
|
border-black max-md:rounded-lg h-full w-full lg:bg-transparent bg-[#EBEBEB]
|
|
rounded-lg hover:bg-[#EBEBEB] hover:shadow-[0px_4px_4px_0px_#00000026]
|
|
hover:transition-all transition-all delay-300 cursor-default"
|
|
>
|
|
<span className="inline-block text-orange-500 w-14 h-14">
|
|
{item.icon}
|
|
</span>
|
|
|
|
<p className=" text-center text-neutral-700 text-lg font-bold dark:text-white">
|
|
{item.title}
|
|
</p>
|
|
<p className="text-center text-neutral-500 text-base dark:text-gray-400 line-clamp-2">
|
|
{item.description}
|
|
</p>
|
|
<p className="text-center text-orange-500 text-lg font-bold">
|
|
{item.description2}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
})}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|