diff --git a/src/components/UI/Modal/Modal.css b/src/components/UI/Modal/Modal.css new file mode 100644 index 0000000..2c80ff8 --- /dev/null +++ b/src/components/UI/Modal/Modal.css @@ -0,0 +1,20 @@ +.Modal { + position: fixed; + z-index: 500; + background-color: white; + width: 70%; + border: 1px solid #ccc; + box-shadow: 1px 1px 1px black; + padding: 16px; + left: 15%; + top: 30%; + box-sizing: border-box; + transition: all 0.3s ease-out; +} + +@media (min-width: 600px) { + .Modal { + width: 500px; + left: calc(50% - 250px); + } +} \ No newline at end of file diff --git a/src/components/UI/Modal/Modal.js b/src/components/UI/Modal/Modal.js new file mode 100644 index 0000000..e4b40f9 --- /dev/null +++ b/src/components/UI/Modal/Modal.js @@ -0,0 +1,13 @@ +import React from 'react'; + +import classes from './Modal.css'; + +const modal = (props) => { + return ( +