NextJS 14 Image - set background that will repeat for all sections

183 views Asked by At

I have component Wrapper for the landing, I want to set background image that will repeat for all sections. With my code it will not repeat, could you help me?

const Wrapper = ({ children }: any) => (
  <div>
    <Image
      src="/assets/images/bg.svg"
      alt=""
      layout="fill"
      objectFit="cover"
    />
    {children}
  </div>
);

export default Wrapper;
0

There are 0 answers