Piano notes book, powered by Astro and React.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

30 行
519 B

  1. import * as React from 'react';
  2. export interface ScoreProps {
  3. id: string;
  4. alt: string;
  5. }
  6. export const Score: React.FC<ScoreProps> = ({
  7. id,
  8. alt,
  9. }) => {
  10. return (
  11. <div className="score-wrapper">
  12. <a href={`scores/${id}.svg`}>
  13. <figure>
  14. <img className="score" src={`scores/${id}.svg`} alt={alt} />
  15. <figcaption>
  16. {alt}
  17. </figcaption>
  18. </figure>
  19. </a>
  20. <div className="screen-controls">
  21. <a href={`scores/${id}.musicxml`}>
  22. Download MusicXML
  23. </a>
  24. </div>
  25. </div>
  26. );
  27. };