-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
109 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import { Modal, Box, Typography, Button } from '@mui/material'; | ||
|
||
const IntroModal = ({ isOpen, handleClose }) => { | ||
return ( | ||
<Modal | ||
open={isOpen} | ||
onClose={handleClose} | ||
aria-labelledby="intro-modal-title" | ||
aria-describedby="intro-modal-description" | ||
> | ||
<Box sx={{ | ||
position: 'absolute', | ||
top: '50%', | ||
left: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
width: 400, | ||
bgcolor: 'background.paper', | ||
border: '2px solid #000', | ||
boxShadow: 24, | ||
p: 4 | ||
}}> | ||
<Typography id="intro-modal-title" variant="h6" component="h2"> | ||
欢迎使用音程训练器 | ||
</Typography> | ||
<Typography id="intro-modal-description" sx={{ mt: 2 }}> | ||
您将会听到一个低音作为主音,随后会播放另一个音符。您需要根据听到的音符选择相应的音程级数。 | ||
在右上角的设置中,您可以调节音量和练习内容。 | ||
</Typography> | ||
<Button onClick={handleClose} variant="contained" color="primary" sx={{ mt: 3 }}> | ||
开始练习 | ||
</Button> | ||
</Box> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default IntroModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters