Skip to content

Commit

Permalink
Damn
Browse files Browse the repository at this point in the history
  • Loading branch information
cvharris committed Jun 3, 2022
1 parent 81967f5 commit 575d26a
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 11 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 8.17.0
37 changes: 33 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions src/components/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import React from 'react'
import ContactMap from './SingleLocationMap'

const ContactBox = props => {
console.log('ADDREESS HERE', props)
return (
<div className="flex-ns justify-between">
<div className="">
<div className="fw7">ECOcentrix Consultants, LLC</div>
<div className="fw5">2612 Delmar Blvd</div>
<div className="fw5">{props.address.street1}</div>
{props.address.street2 && (
<div className="fw5">{props.address.street2}</div>
)}
Expand Down Expand Up @@ -73,9 +72,13 @@ export const ContactBoxQuery = () => (
}
}
`}
render={data => (
<ContactBox {...data.allMarkdownRemark.edges[0].node.frontmatter} />
)}
render={data => {
const { node } = data.allMarkdownRemark.edges.find(
edge => edge.node.frontmatter.address !== null
)
console.log({ node })
return <ContactBox {...node.frontmatter} />
}}
/>
)

Expand Down
4 changes: 2 additions & 2 deletions src/templates/contact-us.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const ContactPageTemplate = ({ title, content, contentComponent }) => {
return (
<div className="contact-main">
<div className="pb0-ns z-1 h5 relative">
<div className="bg-grey-color-80 absolute cover h-100 w-100 z-2" />
<div className="bg-blue absolute cover h-100 w-100 z-2" />
<h1 className="mw8 pl5 f2 f-5-ns center white mv0 lh-copy z-5 relative">
{title}
</h1>
Expand Down Expand Up @@ -72,7 +72,7 @@ export const ContactPageTemplate = ({ title, content, contentComponent }) => {
</form>
</section>
<PageContent
className="markdown-content pt4 mw7 center ph4"
className="markdown-content pv4 mw7 center ph4"
content={content}
/>
<section className="pb5 mw7 center ph4">
Expand Down

0 comments on commit 575d26a

Please sign in to comment.