diff --git a/src/components/footer.js b/src/components/footer.js index e4f988d..fa231d4 100644 --- a/src/components/footer.js +++ b/src/components/footer.js @@ -22,7 +22,7 @@ const Content = styled.div` const Cell = styled.div` display: flex; flex-direction: column; - ${props => + ${(props) => props.flexEnd && css` @media (min-width: ${props.flexEnd}) { @@ -41,17 +41,15 @@ export default function Footer() { { - const { phone, altPhone, email } = data.allPerson.nodes[0]; + render={(data) => { + const { phone } = data.allPerson.nodes[0]; return ( @@ -77,46 +75,24 @@ export default function Footer() { )} - {altPhone && ( - - - - - - - {altPhone} - - - - )} - {email && ( - - - - - - - {email} - - - - )} + + + + + + + quotations@abcprojectdesign.com + + + © {year} Abc Project Ltd diff --git a/src/data/team.json b/src/data/team.json index 6e15523..7898889 100644 --- a/src/data/team.json +++ b/src/data/team.json @@ -1,16 +1,9 @@ { "team": [ - { - "name": "Nicholas Day", - "email": "quotations@abcprojectdesign.com", - "phone": "07539 051512", - "altPhone": "01708 938455", - "title": "Head of Sales and Marketing" - }, { "name": "Daniel Costea", "email": "daniel.costea@abcprojectdesign.com", - "phone": "07378 839358", + "phone": "07378839358", "title": "Project Director" }, { diff --git a/src/pages/contact.js b/src/pages/contact.js index b30616d..546bd34 100644 --- a/src/pages/contact.js +++ b/src/pages/contact.js @@ -17,15 +17,15 @@ import { Section, Select, Team, - Text + Text, } from "../components"; import CheckCircleIcon from "../icons/check-circle.svg"; import EnvelopeIcon from "../icons/envelope.svg"; import TeamIcon from "../icons/team.svg"; -const encode = data => { +const encode = (data) => { const formData = new FormData(); - Object.keys(data).forEach(k => { + Object.keys(data).forEach((k) => { formData.append(k, data[k]); }); return formData; @@ -34,7 +34,7 @@ const encode = data => { export default function Index({ data }) { const [formState, setFormState] = useState(); - const handleSubmit = e => { + const handleSubmit = (e) => { e.preventDefault(); setFormState("submitting"); const body = encode({ @@ -46,10 +46,10 @@ export default function Index({ data }) { stage: e.target.stage.value, status: e.target.status.value, budget: e.target.budget.value, - message: e.target.message.value + message: e.target.message.value, }); fetch("/contact", { method: "POST", body }) - .then(res => { + .then((res) => { if (res.status !== 200) { setFormState("error"); } else { @@ -127,7 +127,7 @@ export default function Index({ data }) { name="contact" method="POST" action="/contact" - onSubmit={e => handleSubmit(e, scroll)} + onSubmit={(e) => handleSubmit(e, scroll)} data-netlify="true" data-netlify-honeypot="bot-field" > @@ -149,12 +149,12 @@ export default function Index({ data }) { { value: "ready to hire", label: "I'm ready to hire" }, { value: "budgeting and planning", - label: "I'm planning and budgeting" + label: "I'm planning and budgeting", }, { value: "quote for insurance", - label: "I need a quote for insurance" - } + label: "I need a quote for insurance", + }, ]} />