From 216891325777dab07231dfc399eba2e60e9991ba Mon Sep 17 00:00:00 2001 From: Tabatha Zeitke Date: Wed, 6 Dec 2023 10:32:53 -0600 Subject: [PATCH 1/8] feat: remove new user view homepage toggle --- src/components/HomepageVideo.js | 171 --------------- src/pages/index.js | 365 ++++++++++++-------------------- 2 files changed, 136 insertions(+), 400 deletions(-) delete mode 100644 src/components/HomepageVideo.js diff --git a/src/components/HomepageVideo.js b/src/components/HomepageVideo.js deleted file mode 100644 index 811ea496920..00000000000 --- a/src/components/HomepageVideo.js +++ /dev/null @@ -1,171 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { css } from '@emotion/react'; -import { - SearchInput, - useTessen, - useTranslation, -} from '@newrelic/gatsby-theme-newrelic'; -import { navigate } from '@reach/router'; -import curlyAndDotsBackground from './curlyAndDots.webp'; -import curlyAndDotsBackgroundDarkmode from './curlyAndDotsDM.webp'; -import InlineSignup from './InlineSignup'; -import { useMainLayoutContext } from './MainLayoutContext'; - -const HomepageVideo = () => { - const [searchTerm, setSearchTerm] = useState(''); - const { t } = useTranslation(); - const tessen = useTessen(); - const [sidebar] = useMainLayoutContext(); - const [mobileBreakpoint, setMobileBreakpoint] = useState('1050px'); - - useEffect(() => { - if (sidebar) { - setMobileBreakpoint('1300px'); - } else { - setMobileBreakpoint('1050px'); - } - }, [sidebar]); - - return ( - <> -
-
-

{t('homepageVideo.header')}

-

{t('homepageVideo.p1')}

-

{t('homepageVideo.p2')}

- { - setSearchTerm(e.target.value); - }} - onSubmit={() => { - tessen.track({ - eventName: 'videoViewSearch', - category: 'SearchInput', - searchTerm, - }); - navigate(`?q=${searchTerm || ''}`); - }} - css={css` - @media screen and (max-width: ${mobileBreakpoint}) { - margin-bottom: 1rem; - } - `} - /> -
-
-
-
-