You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
589 B

  1. import React, { FC } from "react";
  2. export interface BackgroundSectionProps {
  3. className?: string;
  4. children?: React.ReactNode;
  5. }
  6. const BackgroundSection: FC<BackgroundSectionProps> = ({
  7. className = "bg-neutral-100 dark:bg-black dark:bg-opacity-20 ",
  8. children,
  9. }) => {
  10. return (
  11. <div
  12. className={`nc-BackgroundSection absolute inset-y-0 w-screen xl:max-w-[1340px] 2xl:max-w-screen-2xl left-1/2 transform -translate-x-1/2 xl:rounded-[40px] z-0 ${className}`}
  13. data-nc-id="BackgroundSection"
  14. >
  15. {children}
  16. </div>
  17. );
  18. };
  19. export default BackgroundSection;