Skip to content

Commit

Permalink
modal: Add drop shadow.
Browse files Browse the repository at this point in the history
This commit adds a drop shadow to the modal container
which gives it a 3-D effect.
  • Loading branch information
kuv2707 committed Jul 1, 2024
1 parent a039828 commit c3e8d60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/library/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ const Modal: React.FC<ModalContainerProps> = ({
ref={modalRef}
onClick={closeModal}
className={`fixed inset-0 bg-black bg-opacity-30 backdrop-blur-sm flex items-center justify-center p-4 overflow-y-auto z-30 transition-opacity duration-500 ${isVisible ? 'opacity-100' : 'opacity-0'}`}
style={{
filter: 'drop-shadow(0 0 20px rgb(0, 0, 0))',
}}
>
<div
className={`${modalClass} ${isVisible ? 'opacity-100 scale-100' : 'opacity-0 scale-90'}`}
Expand Down

0 comments on commit c3e8d60

Please sign in to comment.