Replace home page image
This commit is contained in:
BIN
public/img/cervenalhota_2560.jpg
Normal file
BIN
public/img/cervenalhota_2560.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 925 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 MiB After Width: | Height: | Size: 829 KiB |
BIN
public/img/prague_2560.jpg
Normal file
BIN
public/img/prague_2560.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 666 KiB |
@@ -71,9 +71,9 @@
|
|||||||
.invalidMsg {
|
.invalidMsg {
|
||||||
display: none;
|
display: none;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
border: 4px solid var(--colour-red);
|
border: 2px solid var(--colour-red);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
background: transparent;
|
background: var(--colour-nearblack);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
@@ -83,6 +83,7 @@
|
|||||||
|
|
||||||
.invalidMsgVisible {
|
.invalidMsgVisible {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
opacity: 0.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
@@ -95,7 +96,7 @@
|
|||||||
outline: 0;
|
outline: 0;
|
||||||
border: 4px solid #fff;
|
border: 4px solid #fff;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
background: transparent;
|
background: var(--colour-nearblack);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -107,7 +108,7 @@
|
|||||||
|
|
||||||
.button:hover,
|
.button:hover,
|
||||||
.button:focus {
|
.button:focus {
|
||||||
opacity: 1;
|
opacity: 0.9;
|
||||||
box-shadow: 0 0 4px #fff;
|
box-shadow: 0 0 4px #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,11 +28,16 @@ class RsvpButton extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleRsvpBlur = () => {
|
handleRsvpBlur = () => {
|
||||||
|
this.setState({ inputInvalidMsg: null });
|
||||||
if (this.props.focusCallback) {
|
if (this.props.focusCallback) {
|
||||||
this.props.focusCallback(false);
|
this.props.focusCallback(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleRsvpChange = () => {
|
||||||
|
this.setState({ inputInvalidMsg: null });
|
||||||
|
}
|
||||||
|
|
||||||
handleFormSubmit = (event) => {
|
handleFormSubmit = (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
fetch(`rsvp/${this.rsvpInput.value}`)
|
fetch(`rsvp/${this.rsvpInput.value}`)
|
||||||
@@ -90,6 +95,7 @@ class RsvpButton extends React.Component {
|
|||||||
ref={(input) => { this.rsvpInput = input; }}
|
ref={(input) => { this.rsvpInput = input; }}
|
||||||
onFocus={this.handleRsvpFocus}
|
onFocus={this.handleRsvpFocus}
|
||||||
onBlur={this.handleRsvpBlur}
|
onBlur={this.handleRsvpBlur}
|
||||||
|
onChange={this.handleRsvpChange}
|
||||||
id="code"
|
id="code"
|
||||||
type="text"
|
type="text"
|
||||||
name="code"
|
name="code"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Typography
|
* Typography
|
||||||
* ======================================================================== */
|
* ======================================================================== */
|
||||||
|
|
||||||
--font-family-base: 'Poppins', 'Segoe UI', 'HelveticaNeue-Light', sans-serif;
|
--font-family-base: 'Palanquin Dark', 'Segoe UI', 'HelveticaNeue-Light', sans-serif;
|
||||||
--font-family-cursive: 'Yesteryear', cursive;
|
--font-family-cursive: 'Yesteryear', cursive;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -5,21 +5,21 @@
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.churchImage {
|
.bgImage {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background: url('/img/church_2500.jpg');
|
background: url('/img/prague_2560.jpg');
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position-x: 50%;
|
background-position-x: 54%;
|
||||||
background-color: #c1c1c1;
|
background-color: #c1c1c1;
|
||||||
filter: grayscale(1) brightness(0.4);
|
filter: grayscale(1) brightness(0.6);
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
transition: filter ease-in-out 0.5s;
|
transition: filter ease-in-out 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.churchImageFocus {
|
.bgImageFocus {
|
||||||
filter: grayscale(0.4) brightness(0.6);
|
filter: grayscale(0.4) brightness(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ class Home extends React.Component {
|
|||||||
this.state = {};
|
this.state = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
focusChurchImage = (focus) => {
|
focusBgImage = (focus) => {
|
||||||
this.setState({ focusChurch: focus });
|
this.setState({ focusBgImage: focus });
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@@ -19,8 +19,8 @@ class Home extends React.Component {
|
|||||||
<div className={s.root}>
|
<div className={s.root}>
|
||||||
<div
|
<div
|
||||||
className={[
|
className={[
|
||||||
s.churchImage,
|
s.bgImage,
|
||||||
this.state.focusChurch ? s.churchImageFocus : null,
|
this.state.focusBgImage ? s.bgImageFocus : null,
|
||||||
].join(' ')}
|
].join(' ')}
|
||||||
/>
|
/>
|
||||||
<div className={s.container}>
|
<div className={s.container}>
|
||||||
@@ -31,7 +31,7 @@ class Home extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className={s.rsvp}>
|
<div className={s.rsvp}>
|
||||||
<RsvpButton
|
<RsvpButton
|
||||||
focusCallback={this.focusChurchImage}
|
focusCallback={this.focusBgImage}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user