Create reception page
This commit is contained in:
56
src/routes/reception/Reception.css
Normal file
56
src/routes/reception/Reception.css
Normal file
@@ -0,0 +1,56 @@
|
||||
@import '../../components/variables.css';
|
||||
|
||||
.root {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.bgImage {
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: url('/img/offley_2560.jpg');
|
||||
background-size: cover;
|
||||
background-position-x: 54%;
|
||||
background-color: #c1c1c1;
|
||||
filter: grayscale(1) brightness(0.6);
|
||||
z-index: -1;
|
||||
transition: filter ease-in-out 0.5s;
|
||||
}
|
||||
|
||||
.bgImageFocus {
|
||||
filter: grayscale(0.4) brightness(1);
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-top: 50px;
|
||||
margin: 0 20px;
|
||||
}
|
||||
|
||||
.headings {
|
||||
max-width: 640px;
|
||||
margin: 0 auto 40px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
text-shadow: 3px 3px 8px var(--colour-nearblack);
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.headings h1 {
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
.subheading {
|
||||
font-family: var(--font-family-cursive);
|
||||
}
|
||||
|
||||
.content {
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
color: #fff;
|
||||
text-shadow: 1px 1px 4px var(--colour-nearblack);
|
||||
}
|
||||
|
||||
.map {
|
||||
width: 360px;
|
||||
}
|
||||
62
src/routes/reception/Reception.js
Normal file
62
src/routes/reception/Reception.js
Normal file
@@ -0,0 +1,62 @@
|
||||
import React from 'react';
|
||||
import withStyles from 'isomorphic-style-loader/lib/withStyles';
|
||||
import s from './Reception.css';
|
||||
import Map from '../../components/Map';
|
||||
|
||||
const markers = [
|
||||
{
|
||||
title: 'Offley Place',
|
||||
lat: 51.9282,
|
||||
lng: -0.3332,
|
||||
},
|
||||
];
|
||||
|
||||
class Reception extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
}
|
||||
|
||||
focusBgImage = (focus) => {
|
||||
this.setState({ focusBgImage: focus });
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className={s.root}>
|
||||
<div
|
||||
className={[
|
||||
s.bgImage,
|
||||
this.state.focusBgImage ? s.bgImageFocus : null,
|
||||
].join(' ')}
|
||||
/>
|
||||
<div className={s.container}>
|
||||
<div className={s.headings}>
|
||||
<h1>Offley Place</h1>
|
||||
<h2 className={s.subheading}>Kings Walden Road<br />
|
||||
Great Offley<br />
|
||||
Hitchin<br />
|
||||
SG5 3DX</h2>
|
||||
</div>
|
||||
<div className={s.content}>
|
||||
<h3>When</h3>
|
||||
<p>The Reception will begin at 3pm, Wedding breakfast at 5pm
|
||||
followed by music until late.</p>
|
||||
<h3>Where</h3>
|
||||
<p>The venue is approximately 30 minute drive from the Church.</p>
|
||||
<div className={s.map}>
|
||||
<Map
|
||||
defaultZoom={12}
|
||||
lat={markers[0].lat}
|
||||
lng={markers[0].lng}
|
||||
markers={markers}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default withStyles(s)(Reception);
|
||||
15
src/routes/reception/index.js
Normal file
15
src/routes/reception/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
import Reception from './Reception';
|
||||
import Layout from '../../components/Layout';
|
||||
|
||||
export default {
|
||||
|
||||
path: '/reception',
|
||||
|
||||
action() {
|
||||
return {
|
||||
title: 'Reception',
|
||||
component: <Layout current="reception"><Reception /></Layout>,
|
||||
};
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user