From 4953695c9f162655eb9e05a08ae8cdd314afc49c Mon Sep 17 00:00:00 2001 From: Tim Zielonko Date: Wed, 25 May 2022 14:24:16 -0500 Subject: [PATCH 01/17] rm product specialist page, redirect to demo page --- netlify.toml | 6 ++- .../Actions/ContactPresalesSupportAction.tsx | 2 +- src/components/Blog/ReleasePost.tsx | 3 +- src/pages/contact/index.tsx | 2 +- src/pages/contact/product-specialist.tsx | 46 ------------------- src/pages/pricing.tsx | 6 +-- 6 files changed, 9 insertions(+), 56 deletions(-) delete mode 100644 src/pages/contact/product-specialist.tsx diff --git a/netlify.toml b/netlify.toml index 8ddcf34e041..90938effe62 100644 --- a/netlify.toml +++ b/netlify.toml @@ -103,7 +103,7 @@ # ========== INDIVIDUAL REDIRECTS ========== [[redirects]] from = "/contact/sales" - to = "/contact/product-specialist" + to = "/demo" status = 301 [[redirects]] @@ -125,4 +125,8 @@ from = "/cloud-beta" to = "/" status = 301 + +[[redirects]] + from = "/product-specialist" + to = "/demo" # ========== END INDIVIDUAL REDIRECTS ========== diff --git a/src/components/Actions/ContactPresalesSupportAction.tsx b/src/components/Actions/ContactPresalesSupportAction.tsx index d28fa73c602..d9393cd66be 100644 --- a/src/components/Actions/ContactPresalesSupportAction.tsx +++ b/src/components/Actions/ContactPresalesSupportAction.tsx @@ -8,7 +8,7 @@ interface Props { } export const ContactPresalesSupportAction: FunctionComponent = ({ className = '' }) => ( - + Talk to a product specialist diff --git a/src/components/Blog/ReleasePost.tsx b/src/components/Blog/ReleasePost.tsx index a94800c5633..c6633eb8ab8 100644 --- a/src/components/Blog/ReleasePost.tsx +++ b/src/components/Blog/ReleasePost.tsx @@ -60,8 +60,7 @@ export const ReleasePost: FunctionComponent = ({
- * Please contact Sourcegraph with any licensing - questions. + * Please contact Sourcegraph with any licensing questions.
) diff --git a/src/pages/contact/index.tsx b/src/pages/contact/index.tsx index 86d2982101d..167144189e2 100644 --- a/src/pages/contact/index.tsx +++ b/src/pages/contact/index.tsx @@ -58,7 +58,7 @@ const ContactHome: FunctionComponent = () => (
Sales

For information about products and purchasing:

- + {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
Contact sales diff --git a/src/pages/contact/product-specialist.tsx b/src/pages/contact/product-specialist.tsx deleted file mode 100644 index 88365c35c89..00000000000 --- a/src/pages/contact/product-specialist.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { FunctionComponent } from 'react' - -import { Layout, CustomerLogos } from '@components' -import { useHubSpot, useChiliPiper } from '@hooks' - -const title = 'Sourcegraph - Talk to a product specialist' -const description = 'Talk to a Sourcegraph product specialist. Let us know how we can help.' - -const Contact: FunctionComponent = () => { - useHubSpot({ - portalId: '2762526', - formId: '6170d9b0-fa5b-4240-9f47-f3a3aa9557c9', - targetId: 'hubspotContactForm', - }) - useChiliPiper() - - return ( - -
-
-
-
-

Talk to a product specialist

-

Let us know how we can help. We'll follow up soon.

-
-
-
-
-
- -
-
-
-
- - ) -} - -export default Contact diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx index 318a538446b..f20cefc9f9d 100644 --- a/src/pages/pricing.tsx +++ b/src/pages/pricing.tsx @@ -211,11 +211,7 @@ const PricingPage: FunctionComponent = () => (

Sourcegraph supports the work of educational organizations and nonprofits.
- Please{' '} - - contact us - {' '} - about discounts for your development teams. + Please contact us about discounts for your development teams.

From e5c15dea26a0ae4026d56046b8826665ab3c0be1 Mon Sep 17 00:00:00 2001 From: Tim Zielonko Date: Wed, 25 May 2022 14:29:24 -0500 Subject: [PATCH 02/17] Code Security name change, update links to page --- .../case-studies/nutanix-fixed-log4j-with-sourcegraph.tsx | 4 ++-- src/pages/home/_UseCases.tsx | 2 +- .../use-cases/{vulnerabilities.tsx => code-security.tsx} | 4 ++-- src/pages/use-cases/index.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/pages/use-cases/{vulnerabilities.tsx => code-security.tsx} (98%) diff --git a/src/pages/case-studies/nutanix-fixed-log4j-with-sourcegraph.tsx b/src/pages/case-studies/nutanix-fixed-log4j-with-sourcegraph.tsx index 70f3eb7e0b3..0b0adefa7f9 100644 --- a/src/pages/case-studies/nutanix-fixed-log4j-with-sourcegraph.tsx +++ b/src/pages/case-studies/nutanix-fixed-log4j-with-sourcegraph.tsx @@ -53,7 +53,7 @@ export const CaseStudy: FunctionComponent = () => ( useCases={[ { text: 'Find and fix security vulnerabilities quickly across the codebase.', - href: '/use-cases/vulnerabilities', + href: '/use-cases/code-security', }, ]} challenges={[ @@ -238,7 +238,7 @@ export const CaseStudy: FunctionComponent = () => (

Log4j is one of many reasons why monitoring and updating is now a renewed priority. “Companies will have to be more diligent,” Jon said. With Sourcegraph, Nutanix is prepared to - find and fix the next vulnerability. + find and fix the next vulnerability.

diff --git a/src/pages/home/_UseCases.tsx b/src/pages/home/_UseCases.tsx index b01f1df0cbb..a01079eaf74 100644 --- a/src/pages/home/_UseCases.tsx +++ b/src/pages/home/_UseCases.tsx @@ -28,7 +28,7 @@ const useCases: UseCases[] = [ title: 'Improve code security', description: 'Find, fix, and track vulnerable code quickly across your entire codebase.', link: { - href: '/use-cases/vulnerabilities', + href: '/use-cases/code-security', text: 'Learn more about code security', }, }, diff --git a/src/pages/use-cases/vulnerabilities.tsx b/src/pages/use-cases/code-security.tsx similarity index 98% rename from src/pages/use-cases/vulnerabilities.tsx rename to src/pages/use-cases/code-security.tsx index 8b55b297349..a87f89b73c3 100644 --- a/src/pages/use-cases/vulnerabilities.tsx +++ b/src/pages/use-cases/code-security.tsx @@ -210,9 +210,9 @@ const blogResourceItems = [ const UseCasePage: FunctionComponent = () => ( ( Request a demo - + {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} Date: Wed, 25 May 2022 14:56:46 -0500 Subject: [PATCH 03/17] update Header --- src/components/Layout/Header.tsx | 38 ++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/src/components/Layout/Header.tsx b/src/components/Layout/Header.tsx index dc15ea81a79..fd347cbe17b 100644 --- a/src/components/Layout/Header.tsx +++ b/src/components/Layout/Header.tsx @@ -28,7 +28,7 @@ const Header: FunctionComponent = props => { const [isOpen, setIsOpen] = useState(false) const [productMenuOpen, setProductMenuOpen] = useState(false) const [resourcesMenuOpen, setResourcesMenuOpen] = useState(false) - const [customerMenuOpen, setCustomerMenuOpen] = useState(false) + const [useCaseMenuOpen, setuseCaseMenuOpen] = useState(false) return (