-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from TusharSin810/main
Made a PopUp
- Loading branch information
Showing
8 changed files
with
2,594 additions
and
3 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
.popup{ | ||
padding-top: 50px; | ||
font-weight: bolder; | ||
color: white; | ||
text-decoration: none; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.popup-text{ | ||
color: white; | ||
font-size: 22x; | ||
font-weight: bolder; | ||
display: flex; | ||
justify-content: center; | ||
|
||
} |
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
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,55 @@ | ||
|
||
.modal-overlay { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background: rgba(0, 0, 0, 0.6); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
z-index: 1000; | ||
|
||
} | ||
|
||
|
||
.modal-content { | ||
background: rgb(0, 0, 0) url('../../images/jodcLogoWB.svg') no-repeat center center; | ||
background-size: contain; | ||
padding: 40px; | ||
max-width: 80%; | ||
height: 300px; | ||
max-height: 90vh; | ||
position: relative; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); | ||
border-radius: 12px; | ||
color: #fff; | ||
overflow: hidden; | ||
box-sizing: border-box; | ||
} | ||
|
||
|
||
.modal-close { | ||
position: absolute; | ||
top: 10px; | ||
right: 10px; | ||
color: #fff; | ||
border: none; | ||
background-color: transparent; | ||
cursor: pointer; | ||
font-size: 24px; | ||
transition: transform 0.2s ease, color 0.2s ease; | ||
|
||
} | ||
|
||
.modal-close:hover { | ||
transform: scale(1.2); | ||
color: #ff5f5f; | ||
} | ||
|
||
|
||
.modal-close:focus { | ||
outline: 3px solid #ff5f5f; | ||
outline-offset: 2px; | ||
} |
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,17 @@ | ||
import React from 'react'; | ||
import './Modal.css'; | ||
|
||
const Modal = ({ isOpen, onClose, children }) => { | ||
if (!isOpen) return null; | ||
|
||
return ( | ||
<div className="modal-overlay" onClick={onClose}> | ||
<div className="modal-content back" onClick={e => e.stopPropagation()}> | ||
<button className="modal-close" onClick={onClose}>x</button> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Modal; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.