SectionDivider.tsx 836 B

12345678910111213141516171819202122
  1. export default function SectionDivider({ wave = false }) {
  2. if (wave) {
  3. return (
  4. <svg className="section-divider section-divider-auto" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 80">
  5. <path d="M1920,80 L0,80 L0,0 C0,0 387,59 960,59 C1533,59 1920,0 1920,0 L1920,80 Z" />
  6. </svg>
  7. );
  8. }
  9. return (
  10. <svg
  11. className="section-divider"
  12. xmlns="http://www.w3.org/2000/svg"
  13. viewBox="0 24 150 28"
  14. preserveAspectRatio="none"
  15. >
  16. <path className="wave-1" d="M-110 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
  17. <path className="wave-2" d="M-110 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
  18. <path className="wave-3" d="M-110 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
  19. </svg>
  20. );
  21. }