Hide RSVP button on blur

darken bg images
update copy
change URLs for routes
This commit is contained in:
2017-03-03 22:18:33 +00:00
parent 179d0de047
commit b6f0822826
13 changed files with 23 additions and 22 deletions

View File

@@ -16,9 +16,9 @@ class Navigation extends React.Component {
<div className={s.root} role="navigation"> <div className={s.root} role="navigation">
<div className={s.container}> <div className={s.container}>
<Link className={[s.link, this.props.current === 'home' ? s.active : null].join(' ')} to="/">RSVP</Link> <Link className={[s.link, this.props.current === 'home' ? s.active : null].join(' ')} to="/">RSVP</Link>
<Link className={[s.link, this.props.current === 'ceremony' ? s.active : null].join(' ')} to="/ceremony">Church</Link> <Link className={[s.link, this.props.current === 'ceremony' ? s.active : null].join(' ')} to="/church">Church</Link>
<Link className={[s.link, this.props.current === 'reception' ? s.active : null].join(' ')} to="/reception">Venue</Link> <Link className={[s.link, this.props.current === 'reception' ? s.active : null].join(' ')} to="/venue">Venue</Link>
<Link className={[s.link, this.props.current === 'accomodation' ? s.active : null].join(' ')} to="/accomodation">Hotels</Link> <Link className={[s.link, this.props.current === 'accomodation' ? s.active : null].join(' ')} to="/hotels">Hotels</Link>
<Link className={[s.link, this.props.current === 'transport' ? s.active : null].join(' ')} to="/transport">Transport</Link> <Link className={[s.link, this.props.current === 'transport' ? s.active : null].join(' ')} to="/transport">Transport</Link>
</div> </div>
</div> </div>

View File

@@ -32,6 +32,7 @@ class RsvpButton extends React.Component {
if (this.props.focusCallback) { if (this.props.focusCallback) {
this.props.focusCallback(false); this.props.focusCallback(false);
} }
this.setState({ showRsvpForm: false });
} }
handleRsvpChange = () => { handleRsvpChange = () => {

View File

@@ -13,7 +13,7 @@
background-size: cover; background-size: cover;
background-position-x: 54%; background-position-x: 54%;
background-color: #c1c1c1; background-color: #c1c1c1;
filter: grayscale(1) brightness(0.6); filter: grayscale(1) brightness(0.4);
z-index: -1; z-index: -1;
transition: filter ease-in-out 0.5s; transition: filter ease-in-out 0.5s;
} }

View File

@@ -49,7 +49,7 @@ class Accomodation extends React.Component {
<h1>Local hotels</h1> <h1>Local hotels</h1>
</div> </div>
<div className={s.content}> <div className={s.content}>
<h3>The following hotels are near Offley Place</h3> <h3>The following hotels are near Offley Place:</h3>
<ul> <ul>
{hotels.map((hotel, index) => ( {hotels.map((hotel, index) => (
<li key={index}><a className={s.hotelLink} href={hotel.url}>{hotel.title}</a></li> <li key={index}><a className={s.hotelLink} href={hotel.url}>{hotel.title}</a></li>

View File

@@ -4,11 +4,11 @@ import Layout from '../../components/Layout';
export default { export default {
path: '/accomodation', path: '/hotels',
action() { action() {
return { return {
title: 'Accomodation', title: 'Hotels',
component: <Layout current="accomodation"><Accomodation /></Layout>, component: <Layout current="accomodation"><Accomodation /></Layout>,
}; };
}, },

View File

@@ -13,7 +13,7 @@
background-size: cover; background-size: cover;
background-position-x: 54%; background-position-x: 54%;
background-color: #c1c1c1; background-color: #c1c1c1;
filter: grayscale(1) brightness(0.6); filter: grayscale(1) brightness(0.4);
z-index: -1; z-index: -1;
transition: filter ease-in-out 0.5s; transition: filter ease-in-out 0.5s;
} }

View File

@@ -25,11 +25,10 @@ class Ceremony extends React.Component {
</div> </div>
<div className={s.content}> <div className={s.content}>
<h3>When</h3> <h3>When</h3>
<p>The Ceremony begins at 1pm</p> <p>The ceremony begins at 1pm</p>
<h3>Where</h3> <h3>Where</h3>
<p>The Church is located at the southern end of Kings Langley high street. <p>The church is located at the southern end of Kings Langley high street.
Parking is available across the road at the Rose and Crown pub Parking is available across the road at the Rose and Crown pub.</p>
(Dan may be there before 1pm 😉).</p>
<Map <Map
defaultZoom={14} defaultZoom={14}
lat={markers[0].lat} lat={markers[0].lat}
@@ -38,7 +37,7 @@ class Ceremony extends React.Component {
/> />
<h3>About the church</h3> <h3>About the church</h3>
<p>All Saints Church is a medieval church with parts dating from the 13th century. <p>All Saints Church is a medieval church with parts dating from the 13th century.
The main features of the body of the Church are the beautiful reredos, depicting The main features of the church are the beautiful reredos, depicting
The Last Supper, and the fine Jacobean pulpit with its intricate carvings. The Last Supper, and the fine Jacobean pulpit with its intricate carvings.
The Tower has a peal of 8 bells that are regularly rung before Services.</p> The Tower has a peal of 8 bells that are regularly rung before Services.</p>
<p>The church was chosen because it is Dan&#8217;s family church.</p> <p>The church was chosen because it is Dan&#8217;s family church.</p>

View File

@@ -4,11 +4,11 @@ import Layout from '../../components/Layout';
export default { export default {
path: '/ceremony', path: '/church',
action() { action() {
return { return {
title: 'Ceremony', title: 'All Saints\' Church',
component: <Layout current="ceremony"><Ceremony /></Layout>, component: <Layout current="ceremony"><Ceremony /></Layout>,
}; };
}, },

View File

@@ -13,7 +13,7 @@
background-size: cover; background-size: cover;
background-position-x: 54%; background-position-x: 54%;
background-color: #c1c1c1; background-color: #c1c1c1;
filter: grayscale(1) brightness(0.6); filter: grayscale(1) brightness(0.4);
z-index: -1; z-index: -1;
transition: filter ease-in-out 0.5s; transition: filter ease-in-out 0.5s;
} }

View File

@@ -29,10 +29,10 @@ class Reception extends React.Component {
</div> </div>
<div className={s.content}> <div className={s.content}>
<h3>When</h3> <h3>When</h3>
<p>The Reception will begin at 3pm, Wedding breakfast at 5pm <p>The Reception will begin at 3pm, Wedding Breakfast at 5pm
followed by music until late.</p> followed by music until late.</p>
<h3>Where</h3> <h3>Where</h3>
<p>The venue is approximately 30 minute drive from the Church.</p> <p>The venue is approximately a 30 minute drive from the Church.</p>
<Map <Map
defaultZoom={12} defaultZoom={12}
lat={offley[0].lat} lat={offley[0].lat}

View File

@@ -4,11 +4,11 @@ import Layout from '../../components/Layout';
export default { export default {
path: '/reception', path: '/venue',
action() { action() {
return { return {
title: 'Reception', title: 'Offley Place',
component: <Layout current="reception"><Reception /></Layout>, component: <Layout current="reception"><Reception /></Layout>,
}; };
}, },

View File

@@ -13,7 +13,7 @@
background-size: cover; background-size: cover;
background-position-x: 54%; background-position-x: 54%;
background-color: #c1c1c1; background-color: #c1c1c1;
filter: grayscale(1) brightness(0.6); filter: grayscale(1) brightness(0.4);
z-index: -1; z-index: -1;
transition: filter ease-in-out 0.5s; transition: filter ease-in-out 0.5s;
} }

View File

@@ -41,7 +41,7 @@ class Transport extends React.Component {
</div> </div>
<div className={s.content}> <div className={s.content}>
<h3>Train</h3> <h3>Train</h3>
<p>There are 3 stations nearby, Hitchin, Luton and Luton Parkway (airport). <p>There are 3 stations nearby, Hitchin, Luton and Luton Parkway (Airport).
All trains terminate at London St Pancras or London Kings Cross</p> All trains terminate at London St Pancras or London Kings Cross</p>
<Map <Map
defaultZoom={11} defaultZoom={11}
@@ -51,6 +51,7 @@ class Transport extends React.Component {
/> />
<h3>Car</h3> <h3>Car</h3>
<p>Offley Place has secure parking facilities.</p> <p>Offley Place has secure parking facilities.</p>
<h3>Taxi</h3>
<p>The following taxi companies are recommended:</p> <p>The following taxi companies are recommended:</p>
<ul> <ul>
<li> <li>