diff --git a/public/img/cervenalhota_2560.jpg b/public/img/cervenalhota_2560.jpg new file mode 100644 index 0000000..4eccec3 Binary files /dev/null and b/public/img/cervenalhota_2560.jpg differ diff --git a/public/img/church_2500.jpg b/public/img/church_2500.jpg index ca3518c..b9db7dc 100644 Binary files a/public/img/church_2500.jpg and b/public/img/church_2500.jpg differ diff --git a/public/img/prague_2560.jpg b/public/img/prague_2560.jpg new file mode 100644 index 0000000..1b5566a Binary files /dev/null and b/public/img/prague_2560.jpg differ diff --git a/src/components/RsvpButton/RsvpButton.css b/src/components/RsvpButton/RsvpButton.css index 646f3a7..4676a31 100644 --- a/src/components/RsvpButton/RsvpButton.css +++ b/src/components/RsvpButton/RsvpButton.css @@ -71,9 +71,9 @@ .invalidMsg { display: none; padding: 10px 16px; - border: 4px solid var(--colour-red); + border: 2px solid var(--colour-red); border-radius: 14px; - background: transparent; + background: var(--colour-nearblack); color: #fff; text-decoration: none; font-size: 18px; @@ -83,6 +83,7 @@ .invalidMsgVisible { display: inline-block; + opacity: 0.9; } .button { @@ -95,7 +96,7 @@ outline: 0; border: 4px solid #fff; border-radius: 14px; - background: transparent; + background: var(--colour-nearblack); color: #fff; text-align: center; text-decoration: none; @@ -107,7 +108,7 @@ .button:hover, .button:focus { - opacity: 1; + opacity: 0.9; box-shadow: 0 0 4px #fff; } diff --git a/src/components/RsvpButton/RsvpButton.js b/src/components/RsvpButton/RsvpButton.js index ecb47c7..5ec340c 100644 --- a/src/components/RsvpButton/RsvpButton.js +++ b/src/components/RsvpButton/RsvpButton.js @@ -28,11 +28,16 @@ class RsvpButton extends React.Component { } handleRsvpBlur = () => { + this.setState({ inputInvalidMsg: null }); if (this.props.focusCallback) { this.props.focusCallback(false); } } + handleRsvpChange = () => { + this.setState({ inputInvalidMsg: null }); + } + handleFormSubmit = (event) => { event.preventDefault(); fetch(`rsvp/${this.rsvpInput.value}`) @@ -90,6 +95,7 @@ class RsvpButton extends React.Component { ref={(input) => { this.rsvpInput = input; }} onFocus={this.handleRsvpFocus} onBlur={this.handleRsvpBlur} + onChange={this.handleRsvpChange} id="code" type="text" name="code" diff --git a/src/components/variables.css b/src/components/variables.css index b5c809f..cb3399d 100644 --- a/src/components/variables.css +++ b/src/components/variables.css @@ -3,7 +3,7 @@ * 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; /* diff --git a/src/routes/home/Home.css b/src/routes/home/Home.css index 767eb3b..4b35da1 100644 --- a/src/routes/home/Home.css +++ b/src/routes/home/Home.css @@ -5,21 +5,21 @@ height: 100vh; } -.churchImage { +.bgImage { position: fixed; width: 100vw; height: 100vh; - background: url('/img/church_2500.jpg'); + background: url('/img/prague_2560.jpg'); background-size: cover; - background-position-x: 50%; + background-position-x: 54%; background-color: #c1c1c1; - filter: grayscale(1) brightness(0.4); + filter: grayscale(1) brightness(0.6); z-index: -1; transition: filter ease-in-out 0.5s; } -.churchImageFocus { - filter: grayscale(0.4) brightness(0.6); +.bgImageFocus { + filter: grayscale(0.4) brightness(1); } .container { diff --git a/src/routes/home/Home.js b/src/routes/home/Home.js index bb93260..cc3fffb 100644 --- a/src/routes/home/Home.js +++ b/src/routes/home/Home.js @@ -10,8 +10,8 @@ class Home extends React.Component { this.state = {}; } - focusChurchImage = (focus) => { - this.setState({ focusChurch: focus }); + focusBgImage = (focus) => { + this.setState({ focusBgImage: focus }); } render() { @@ -19,8 +19,8 @@ class Home extends React.Component {