import React from "react";
import Image from "next/image";

const layout = ({ children }: { children: React.ReactNode }) => {
  return (
    <div className="flex flex-col relative justify-center items-center ">
      <div className="flex relative -z-10 pt-40 w-full h-[400px] overflow-hidden">
        <Image
          src="/IMG_2431.jpg"
          alt="nav image"
          priority
          fill
          style={{ objectFit: "cover", objectPosition: "center" }}
          quality={100}
          className="brightness-[20%] "
        />
        <div className="flex flex-col w-full text-center xl:text-5xl xl:block text-white lg:text-2xl z-10 ">
          <div className="p-6 ">
            <p className="py-4">
              <span className="">Menu</span>
            </p>
          </div>
        </div>
      </div>

      <div className="flex-grow p-6 md:overflow-y-auto md:p-12 bg-paintbg">{children}</div>
    </div>
  );
};

export default layout;
