Skip to content

Commit

Permalink
Final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joebochill committed Feb 3, 2018
1 parent add9830 commit 381163f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/maintenance.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Down For Maintenance</title>
<title>Temporarily Down For Maintenance</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700');
Expand Down
1 change: 1 addition & 0 deletions src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ body {
.banner{
position: fixed;
bottom: 0rem;
z-index: 1000;

padding: 1rem 4rem;
min-height: 3rem;
Expand Down
5 changes: 4 additions & 1 deletion src/js/components/SwingEssentialsApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions src/js/components/banner/Banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class HomePage extends Component {
</section>
<section>
<h1>Why Swing Essentials?</h1>
<p>Swing Essenials offers a true one-on-one experience. Our PGA-certified professional puts a personal touch on each and every lesson, giving you the confidence to know that your lesson is just for you. But don’t take our word for it - hear what our customers have to say.</p>
<p>Swing Essentials offers a true one-on-one experience. Our PGA-certified professional puts a personal touch on each and every lesson, giving you the confidence to know that your lesson is just for you. But don’t take our word for it - hear what our customers have to say.</p>
</section>
<section>
<h1>Testimonials</h1>
Expand Down

0 comments on commit 381163f

Please sign in to comment.