Backdrop and menu

This commit is contained in:
Max Lynch
2020-12-21 15:10:40 -06:00
parent b0aec7fc3d
commit f7974d10ac
6 changed files with 90 additions and 56 deletions
+29
View File
@@ -0,0 +1,29 @@
import classNames from 'classnames';
const Menu = ({ open, onClose }) => (
<div
className={classNames(
'fixed z-40 transform transform-gpu translate w-48 h-full bg-gray-100 transition-transform',
{
'-translate-x-full': !open,
'-translate-x-0': open,
}
)}
>
<div className="p-4">
<h2 className="text-xl select-none">Menu</h2>
</div>
<ul>
<li>
<a
href="#"
className="text-gray-800 hover:text-gray-400 block px-4 py-2 rounded-md text-base font-medium"
>
Calendar
</a>
</li>
</ul>
</div>
);
export default Menu;