-
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.
Merge pull request #51 from matthewmincher/develop
Move notifications to a component
- Loading branch information
Showing
7 changed files
with
60 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.notification > div { | ||
color: #dddddd; | ||
padding: 10px; | ||
text-align: center; | ||
position: relative; | ||
font-family: Georgia, serif; | ||
font-size: 90%; | ||
margin-bottom: 20px; | ||
} | ||
|
||
|
||
.notification.light > div { | ||
background-color: rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.notification.dark > div { | ||
background-image: url(../../images/layout/header_gradient_faded.jpg); | ||
background-attachment: scroll; | ||
background-repeat: repeat; | ||
background-size: auto; | ||
background-position: center top; | ||
border: 2px solid rgba(183, 186, 143, 0.2); | ||
} |
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,23 @@ | ||
import * as React from 'react'; | ||
import { FC } from 'react'; | ||
import * as Style from './notificationmessage.module.scss'; | ||
|
||
type NotificationMessageProps = { | ||
theme: 'light' | 'dark'; | ||
message: string; | ||
classList?: string[]; | ||
}; | ||
|
||
const NotificationMessage: FC<NotificationMessageProps> = ({ | ||
message, | ||
classList, | ||
theme, | ||
}) => { | ||
return ( | ||
<div className={`constrainedContent ${Style.notification} ${Style[theme]}`}> | ||
<div className={classList?.join(' ')}>{message}</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotificationMessage; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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