-
Notifications
You must be signed in to change notification settings - Fork 4
Changed the success toast to reflect Lazim's design #512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
namanhboi
wants to merge
8
commits into
master
Choose a base branch
from
nd433/successModal
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5e4d9e3
Changed the success toast to reflect Lazim's design
namanhboi 4bc96f2
ran prettier
namanhboi 384ae89
Greyed out background of success modal and made it unclickable but st…
namanhboi b651536
Merge branch 'master' into nd433/successModal
namanhboi ebcd5cf
got it to compile, encountered a bug where clicking on employeee goes…
namanhboi d1c8ce2
ran prettier
namanhboi dfc092f
ran prettier
namanhboi 2f016d4
Merge branch 'master' into nd433/successModal
selenaliu1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
93 changes: 80 additions & 13 deletions
93
frontend/src/components/ConfirmationToast/ConfirmationToast.tsx
This file contains hidden or 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
71 changes: 61 additions & 10 deletions
71
frontend/src/components/ConfirmationToast/confirmationtoast.module.css
This file contains hidden or 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 |
---|---|---|
@@ -1,28 +1,79 @@ | ||
.toast { | ||
position: fixed; | ||
top: 2rem; | ||
background-color: black; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, 0); | ||
transform: translate(-50%, -50%); | ||
margin: auto; | ||
padding: 0.75rem 1rem; | ||
width: 38.5rem; | ||
height: 25.125rem; | ||
padding: 1.5rem 1.5rem; | ||
box-shadow: 4px 6px 30px 5px rgba(0, 0, 0, 0.15); | ||
border-radius: 0.625rem; | ||
z-index: 999; | ||
border-radius: 1rem; | ||
z-index: 1000; | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
} | ||
.background { | ||
position: fixed; | ||
background-color: rgba(13, 13, 13, 0.6); | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
z-index: 1000; | ||
} | ||
.toastContent { | ||
margin-bottom: 4rem; | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
} | ||
|
||
.toasttext { | ||
font-size: 1.0625rem; | ||
height: 100%; | ||
margin-left: 0.625rem; | ||
color: white; | ||
color: #00c48c; | ||
text-align: center; | ||
font-size: 1.75rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
margin-top: 1.5rem; | ||
} | ||
|
||
.successToast { | ||
background-color: #00c48c; | ||
background-color: white; | ||
} | ||
|
||
.errorToast { | ||
background-color: #ff0000; | ||
} | ||
|
||
.continueButton { | ||
background-color: #00c48c; | ||
border: none; | ||
border-radius: 9px; | ||
padding: 0.4rem 2.5rem; | ||
margin-bottom: 2.5rem; | ||
} | ||
|
||
.continueText { | ||
color: #fff; | ||
text-align: center; | ||
font-size: 0.938rem; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: normal; | ||
} | ||
|
||
.closeButton { | ||
background-color: white; | ||
border: none; | ||
align-self: flex-end; | ||
border: none; | ||
cursor: pointer; | ||
background: none; | ||
padding: 0; | ||
margin-bottom: 1rem; | ||
} |
This file contains hidden or 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 hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.