From 6a81c5ebc6ee1903da7e1a7ca9797a1f8e4e1faf Mon Sep 17 00:00:00 2001 From: yonava Date: Thu, 7 Mar 2024 23:58:38 -0500 Subject: [PATCH] single source for contact form link --- src/components/Footer.js | 3 ++- src/pages/about.js | 12 +++++++----- src/pages/index.js | 3 ++- src/pages/services.js | 15 ++++++++------- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/components/Footer.js b/src/components/Footer.js index 4ee2802..c423443 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -11,6 +11,7 @@ import { faLinkedin, faGithub, } from '@fortawesome/free-brands-svg-icons'; +import { contactFormLink } from '../content/nav'; export default function Footer() { return ( @@ -93,7 +94,7 @@ export default function Footer() { Contact diff --git a/src/pages/about.js b/src/pages/about.js index 5eec7b2..09ee1f0 100644 --- a/src/pages/about.js +++ b/src/pages/about.js @@ -8,11 +8,15 @@ import Button from 'react-bootstrap/Button'; import JumbotronHeader from '../components/JumbotronHeader.jsx'; import { contactFormLink } from '../content/nav.js'; -const about = () => { +export default function about() { const title = "Gain Real-World Experience By Helping Others"; + const subtitle = "BUILD provides a venue for students to gain academic and practical knowledge about software development, web development, and tech consulting. We are BUILDING our community through the pro-bono services we offer to nonprofits, startups, and local businesses."; + const nilayLinkedIn = "https://www.linkedin.com/in/nilay18/"; + const mattLinkedIn = "https://www.linkedin.com/in/matthewpearce/"; + const YEARS_SINCE_BUILDS_INCEPTION = new Date().getFullYear() - 2019; return ( @@ -70,7 +74,7 @@ const about = () => {

- {YEARS_SINCE_BUILDS_INCEPTION} years ago CS students Nilay Sadavarte and Matt Pearce had an idea. They wanted to use their skills to help the community. They wanted to make a difference. They wanted to BUILD. And so, BUILD UMass was born. Since its inception, BUILD has had an impact on dozens of non-profits, charities, and student groups, while helping hundreds of students gain real-world experience in software development, product management, and consulting. We are proud of our accomplishments, but we are always looking to do more. If you are an organization that could benefit from the services we provide, we would love to hear from you. If you are a student looking to gain real-world experience, we would love for you to be a part of the next chapter of our story. + {YEARS_SINCE_BUILDS_INCEPTION} years ago CS students Nilay Sadavarte and Matt Pearce had an idea. They wanted to use their skills to help the community. They wanted to make a difference. They wanted to BUILD. And so, BUILD UMass was born. Since its inception, BUILD has had an impact on dozens of non-profits, charities, and student groups, while helping hundreds of students gain real-world experience in software development, product management, and consulting. We are proud of our accomplishments, but we are always looking to do more. If you are an organization that could benefit from the services we provide, we would love to hear from you. If you are a student looking to gain real-world experience, we would love for you to be a part of the next chapter of our story.

@@ -78,6 +82,4 @@ const about = () => { ); -}; - -export default about; \ No newline at end of file +}; \ No newline at end of file diff --git a/src/pages/index.js b/src/pages/index.js index a331cf7..f6df356 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -6,6 +6,7 @@ import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; import Button from 'react-bootstrap/Button'; import CompanyLogos from '../components/CompanyLogos'; +import { contactFormLink } from '../content/nav'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { @@ -50,7 +51,7 @@ export default function Index() { variant="light" onClick={() => { window.open( - 'https://forms.gle/uuA2s98v4oC4o8TU7', + contactFormLink, '_blank' ); }} diff --git a/src/pages/services.js b/src/pages/services.js index 82888b0..af8a280 100644 --- a/src/pages/services.js +++ b/src/pages/services.js @@ -1,9 +1,9 @@ -// import React from 'react'; import Container from 'react-bootstrap/Container'; import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; import Button from 'react-bootstrap/Button'; +import { contactFormLink } from '../content/nav'; export default function services() { return ( @@ -45,9 +45,8 @@ export default function services() { variant="light" className="link-btn" onClick={() => { - // window.open('/contact', '_self'); window.open( - 'https://forms.gle/uuA2s98v4oC4o8TU7', + contactFormLink, '_blank' ); }} @@ -84,7 +83,10 @@ export default function services() { {/* Types */} {/* Software Development */} -
+
@@ -207,7 +209,7 @@ export default function services() {

Get in touch with us anyway and we’ll try our best to - accomodate any of your requests! + accommodate any of your requests!

@@ -217,9 +219,8 @@ export default function services() { variant="light" className="link-btn" onClick={() => { - // window.open('/contact', '_self'); window.open( - 'https://forms.gle/uuA2s98v4oC4o8TU7', + contactFormLink, '_blank' ); }}