Dynamic realtime profile ReadMe linked with spotify
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.

27 lines
611 B

  1. import React from "react";
  2. const ReadmeImg = ({ width, height, children }) => {
  3. return (
  4. <svg
  5. fill="none"
  6. width={width}
  7. height={height}
  8. viewBox={`0 0 ${width} ${height}`}
  9. xmlns="http://www.w3.org/2000/svg"
  10. >
  11. <foreignObject width={width} height={height}>
  12. <div {...{ xmlns: "http://www.w3.org/1999/xhtml" }}>
  13. <style>{`
  14. * {
  15. margin: 0;
  16. box-sizing: border-box;
  17. }
  18. `}</style>
  19. {children}
  20. </div>
  21. </foreignObject>
  22. </svg>
  23. );
  24. };
  25. export default ReadmeImg;