diff --git a/src/components/Modal/index.js b/src/components/Modal/index.js index 4c503fc..a8e97b0 100644 --- a/src/components/Modal/index.js +++ b/src/components/Modal/index.js @@ -11,12 +11,16 @@ import { State } from "../Layout"; // Data import { quickActionList } from "../../data"; +// Files +import keytype from "../../files/keytype.mp3"; + // Styles import "./index.scss"; const Modal = () => { const [list, setList] = React.useState(quickActionList); const [cursor, setCursor] = React.useState(0); + const [typeListener, setTypeListener] = React.useState(null); const { modalIsOpened, setModalIsOpened, setCopied } = React.useContext(State); @@ -105,6 +109,27 @@ const Modal = () => { setCursor(cursor + 1); }; + // React.useEffect(() => { + // const sound = new Audio(keytype); + // if ( + // modalIsOpened && + // document.activeElement.id === "shortcutid" && + // !typeListener + // ) { + // const listener = document.addEventListener("keydown", (e) => { + // sound.currentTime = 0; + // sound.volume = 0.2; + // sound.play(); + // }); + + // setTypeListener(listener); + // } + + // if (!modalIsOpened) { + // document.removeEventListener("keydown", typeListener); + // } + // }, [modalIsOpened, typeListener]); + return (
2024`, + details: `getulio vargas foundation (fgv) | são Paulo, brazil | 2023 -> 2024`, }, { role: "summer programm on usability engineering", - details: `university of são paulo | são Paulo, brazil | 2017 -> 2018`, + details: `university of são paulo (usp) | são Paulo, brazil | 2017 -> 2018`, }, { role: "bachelor of digital (ba) design", - details: `anhembi morumbi university | são Paulo, brazil | 2016 -> 2019`, + details: `anhembi morumbi university (uam) | são Paulo, brazil | 2016 -> 2019`, }, { role: "career and technical education (cte) on information systems", - details: `são paulo state technical school | são Paulo, brazil | 2013 -> 2015`, + details: `são paulo state technical school (etec) | são Paulo, brazil | 2013 -> 2015`, }, ]; diff --git a/src/files/.DS_Store b/src/files/.DS_Store index 0cd7ff6..774b273 100644 Binary files a/src/files/.DS_Store and b/src/files/.DS_Store differ diff --git a/src/files/keytype.mp3 b/src/files/keytype.mp3 new file mode 100644 index 0000000..401d7a2 Binary files /dev/null and b/src/files/keytype.mp3 differ diff --git a/src/icons/.DS_Store b/src/icons/.DS_Store index f9f50f0..7c98d3f 100644 Binary files a/src/icons/.DS_Store and b/src/icons/.DS_Store differ