-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
245 additions
and
98 deletions.
There are no files selected for viewing
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 @@ | ||
import React from 'react'; | ||
import '../Styles/Notification.css'; | ||
|
||
const Notification = ({ task, onClose }) => { | ||
return ( | ||
<div className="notification"> | ||
<div className="notification-content"> | ||
<p>{`Alarm for task: ${task}`}</p> | ||
<button onClick={onClose} className="close-btn">Close</button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Notification; | ||
|
||
|
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 |
---|---|---|
|
@@ -74,4 +74,6 @@ | |
border: 1px solid rgb(197, 190, 190); | ||
width:20% | ||
} | ||
} | ||
} | ||
|
||
|
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,48 @@ | ||
.notification { | ||
position: fixed; | ||
top: 1em; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
background-color: #ffffff; | ||
color: #040404; | ||
border-radius: 15px; | ||
padding: 1em 2em; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
z-index: 1000; | ||
animation: slide-down 0.5s ease-in-out; | ||
} | ||
|
||
.notification-content { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
|
||
.notification p { | ||
margin: 0; | ||
font-size: 1.2em; | ||
} | ||
|
||
.close-btn { | ||
background: #000000; | ||
color: white; | ||
border: none; | ||
padding: 0.5em 1em; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
margin-left: 1em; | ||
} | ||
|
||
@keyframes slide-down { | ||
from { | ||
opacity: 0; | ||
transform: translate(-50%, -100%); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translate(-50%, 0); | ||
} | ||
}/*# sourceMappingURL=Notification.css.map */ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.notification { | ||
position: fixed; | ||
top: 1em; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
background-color: #ffffff; | ||
color: #040404; | ||
border-radius: 15px; | ||
padding: 1em 2em; | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
z-index: 1000; | ||
animation: slide-down 0.5s ease-in-out; | ||
} | ||
|
||
.notification-content { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
|
||
.notification p { | ||
margin: 0; | ||
font-size: 1.2em; | ||
} | ||
|
||
.close-btn { | ||
background: #000000; | ||
color: white; | ||
border: none; | ||
padding: 0.5em 1em; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
margin-left: 1em; | ||
} | ||
|
||
@keyframes slide-down { | ||
from { | ||
opacity: 0; | ||
transform: translate(-50%, -100%); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: translate(-50%, 0); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,27 +1,49 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
.output-task { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
background: #f9f9f9; | ||
padding: 1em; | ||
border-radius: 0.5em; | ||
width: 100%; | ||
height: auto; | ||
flex-direction: row; | ||
margin-top: 0.5em; | ||
border-bottom: 1px solid rgb(227, 220, 220); | ||
word-wrap: break-word; | ||
overflow-wrap: break-word; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.output-task .task { | ||
width: 80%; | ||
} | ||
.output-task .task p { | ||
font-size: 1.1em; | ||
} | ||
.output-task .task-number { | ||
|
||
.delete-btn { | ||
border: none; | ||
height: 1.5em; | ||
width: 2.5em; | ||
border-radius: 1.3em; | ||
background-color: black; | ||
color: white; | ||
} | ||
|
||
.task-number { | ||
flex-shrink: 0; | ||
margin-right: 1em; | ||
font-weight: bold; | ||
} | ||
.output-task .task { | ||
flex: 1; | ||
padding-right: 1em; | ||
} | ||
.output-task .delete-btn { | ||
background: red; | ||
color: white; | ||
border: none; | ||
padding: 0.5em 1em; | ||
border-radius: 0.5em; | ||
cursor: pointer; | ||
|
||
.notifications { | ||
position: fixed; | ||
top: 1em; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1em; | ||
}/*# sourceMappingURL=Output.css.map */ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.