Skip to content

Commit

Permalink
Thank you page (#24)
Browse files Browse the repository at this point in the history
* centered content

* updated thank you page

* updated thank you

* updated thank you page
  • Loading branch information
LeftoverLemon59 authored Mar 7, 2020
1 parent 15c3280 commit 55fea80
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 15 deletions.
7 changes: 7 additions & 0 deletions constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
facebook: 'https://www.facebook.com/Pi515/',
twitter: 'https://twitter.com/LOVEPI515',
phoneNumber: '515-344-4326',
address: '4300 Beaver Avenue Des Moines, IA 50310',
email: '[email protected]'
}
17 changes: 6 additions & 11 deletions src/pages/contact/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import { navigate } from 'gatsby-link'
import Layout from '../../components/Layout'
import constants from '../../../constants'

function encode(data) {
return Object.keys(data)
Expand All @@ -9,12 +10,6 @@ function encode(data) {
}

export default class Index extends React.Component {
facebook = 'https://www.facebook.com/Pi515/';
twitter = 'https://twitter.com/LOVEPI515';
phoneNumber = '515-344-4326';
address = '4300 Beaver Avenue Des Moines, IA 50310';
email = '[email protected]';

constructor(props) {
super(props);
this.state = { isValidated: false }
Expand Down Expand Up @@ -46,13 +41,13 @@ export default class Index extends React.Component {
<div className="container columns is-mobile">
<address className="content column">
<h3>Pursuit of Innovation</h3>
<div>Phone number: <a href={'tel:' + this.phoneNumber}>{this.phoneNumber}</a></div>
<div>Email: <a href={'mailto:' + this.email}>{this.email}</a></div>
<div>Address: <a href={'geo:' + this.address}>4300 Beaver Avenue Des Moines, IA 50310</a></div>
<div>Phone number: <a href={'tel:' + constants.phoneNumber}>{constants.phoneNumber}</a></div>
<div>Email: <a href={'mailto:' + constants.email}>{constants.email}</a></div>
<div>Address: <a href={'geo:' + constants.address}>{constants.address}</a></div>
<div>Hours: 9am - 5pm</div>
<div>
<div><a href={this.facebook}>Facebook</a></div>
<div><a href={this.twitter}>Twitter</a></div>
<div><a href={constants.facebook}>Facebook</a></div>
<div><a href={constants.twitter}>Twitter</a></div>
</div>
<iframe
title="map"
Expand Down
23 changes: 19 additions & 4 deletions src/pages/contact/thanks.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
import React from 'react'
import Layout from '../../components/Layout'
import constants from '../../../constants'

export default () => (
<Layout>
<section className="section">
<div className="container">
<div className="content">
<h1>Thank you!</h1>
<p>This is a custom thank you page for form submissions</p>
<div className="columns is-centered is-vcentered">
<div class="column is-half has-text-centered">
<div className="content">
<h1>Thanks for being Awesome!</h1>
<p>
We appreciate that you've taken the time to write us. If your
inquiry is urgent, please use the telephone number listed below to talk to one
of our staff members. Otherwise, we will reply by email as soon as possible.
<br/><br/>
Talk to you soon!
</p>
</div>
<address className="content column">
<h3>Pursuit of Innovation</h3>
<div>Phone number: <a href={'tel:' + constants.phoneNumber}>{constants.phoneNumber}</a></div>
<div>Email: <a href={'mailto:' + constants.email}>{constants.email}</a></div>
<div>Address: <a href={'geo:' + constants.address}>{constants.address}</a></div>
</address>
</div>
</div>
</section>
Expand Down

0 comments on commit 55fea80

Please sign in to comment.