-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
add9830
commit 381163f
Showing
5 changed files
with
9 additions
and
5 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 |
---|---|---|
|
@@ -75,6 +75,7 @@ body { | |
.banner{ | ||
position: fixed; | ||
bottom: 0rem; | ||
z-index: 1000; | ||
|
||
padding: 1rem 4rem; | ||
min-height: 3rem; | ||
|
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 |
---|---|---|
|
@@ -63,7 +63,10 @@ class SwingEssentialsApp extends Component { | |
<Redirect to="/"/> | ||
</Route> | ||
</Switch> | ||
<Banner/> | ||
<Banner | ||
message={<span>Welcome to our newly designed site! If you find any bugs, please let us know at <b style={{fontWeight: 'bold'}}><a href='mailto:[email protected]'>[email protected]</a></b>.</span>} | ||
expires={1519862400} | ||
/> | ||
<ModalConductor/> | ||
</div> | ||
</ConnectedRouter> | ||
|
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 |
---|---|---|
|
@@ -8,9 +8,9 @@ class Banner extends Component { | |
} | ||
} | ||
render() { | ||
return ( | ||
return (Date.now()/1000 > this.props.expires) ? null : ( | ||
<span className="banner" style={this.state.hidden?{display:'none'}:{}}> | ||
Welcome to our new site! If you find any bugs, please let us know at <b style={{fontWeight: 'bold'}}><a href='mailto:[email protected]'>[email protected]</a></b>. | ||
{this.props.message} | ||
<svg viewBox="0 0 20 20" onClick={()=>this.setState({hidden:true})} style={{ | ||
position: 'absolute', | ||
right: '1rem', | ||
|
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