ModuleHeader.tsx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. interface ModuleHeaderProps {
  2. className?: string;
  3. title?: string;
  4. }
  5. export default function ModuleHeader({ className, title }: ModuleHeaderProps) {
  6. return (
  7. <div className={className} data-name="报表头部">
  8. <div className="absolute bg-gradient-to-r blur-[14.5px] bottom-0 filter from-[rgba(162,190,255,0)] left-[18.55%] right-[18.15%] to-[95.957%] to-[rgba(162,190,255,0)] top-0 via-[51.477%] via-[rgba(162,190,255,0.302)]" />
  9. <div className="absolute flex inset-[38.16%_77.08%_38.16%_0.03%] items-center justify-center">
  10. <div className="flex-none h-[9px] rotate-[180deg] scale-y-[-100%] w-[136px]">
  11. <div className="relative size-full" data-name="左侧">
  12. <img alt="" className="block max-w-none size-full" src="/financial-dashboard/header-left.svg" />
  13. </div>
  14. </div>
  15. </div>
  16. <div className="absolute flex inset-[38.16%_0.03%_38.16%_77.08%] items-center justify-center">
  17. <div className="flex-none h-[9px] rotate-[180deg] scale-y-[-100%] w-[136px]">
  18. <div className="relative size-full" data-name="右侧">
  19. <img alt="" className="block max-w-none size-full" src="/financial-dashboard/header-right.svg" />
  20. </div>
  21. </div>
  22. </div>
  23. <div className="absolute flex inset-[38.16%_0.03%_38.16%_0.03%] items-center justify-center">
  24. <div className="flex-none h-[9px] rotate-[180deg] scale-y-[-100%] w-[136px]">
  25. {/* <div className="relative size-full" data-name="中间">
  26. <img alt="" className="block max-w-none size-full" src="/financial-dashboard/header-top-nav.svg" />
  27. </div> */}
  28. </div>
  29. </div>
  30. {title && (
  31. <p className="absolute inset-[19.74%_29.03%_19.74%_28.81%] leading-[normal] text-[20px] text-center text-white whitespace-pre-wrap">
  32. {title}
  33. </p>
  34. )}
  35. </div>
  36. );
  37. }