From 5919c96aaa868f84e8352337df8a4b2464533b7e Mon Sep 17 00:00:00 2001 From: Jason Laster Date: Tue, 27 Aug 2024 12:31:45 -0700 Subject: [PATCH] Remove Test Suites section --- next.config.js | 5 + src/app/page.tsx | 2 - src/components/layout/header/index.tsx | 1 - src/components/sections/TestSuites.tsx | 211 ------------------------- 4 files changed, 5 insertions(+), 214 deletions(-) delete mode 100644 src/components/sections/TestSuites.tsx diff --git a/next.config.js b/next.config.js index ddecedca..68b49af6 100644 --- a/next.config.js +++ b/next.config.js @@ -160,6 +160,11 @@ const nextConfig = { source: '/security-privacy', destination: 'https://www.replay.io/security-and-privacy', permanent: true + }, + { + source: '/pricing', + destination: 'https://www.replay.io/', + permanent: false } ] } diff --git a/src/app/page.tsx b/src/app/page.tsx index 0251c66a..fea1259c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,6 @@ import { CallToAction } from '~/components/sections/CallToAction' import { Footer } from '~/components/Footer' import { DevTools } from '~/components/sections/DevTools' -import { TestSuites } from '~/components/sections/TestSuites' import { Testimonials } from '~/components/Testimonials' import { Pump } from '.basehub/react-pump' import { draftMode } from 'next/headers' @@ -32,7 +31,6 @@ export default function Home() {
- diff --git a/src/components/layout/header/index.tsx b/src/components/layout/header/index.tsx index bf994e12..bb2a7735 100644 --- a/src/components/layout/header/index.tsx +++ b/src/components/layout/header/index.tsx @@ -20,7 +20,6 @@ export type Navlink = { const NAVLINKS: Navlink[] = [ { href: '/#devtools', label: 'DevTools' }, - { href: '/#test-suites', label: 'Test Suites' }, { href: 'https://docs.replay.io', label: 'Docs' }, { href: 'https://blog.replay.io', label: 'Changelog' }, { href: '/about', label: 'Company' } diff --git a/src/components/sections/TestSuites.tsx b/src/components/sections/TestSuites.tsx deleted file mode 100644 index 62f5779f..00000000 --- a/src/components/sections/TestSuites.tsx +++ /dev/null @@ -1,211 +0,0 @@ -'use client' - -import Image from 'next/image' -import { Tab, Transition } from '@headlessui/react' -import clsx from 'clsx' -import { LandingPageFragment } from '~/lib/basehub-queries' - -import { Container } from '~/components/Container' -import screenshotDashboard from '~/images/screenshots/dashboard-view.png' -import screenshotTests from '~/images/screenshots/tests-view.png' -import screenshotRuns from '~/images/screenshots/runs-view.png' -import screenshotPRComments from '~/images/screenshots/pr-comments.png' -import { getImageSizes } from '~/lib/utils/image' -import { Eyebrow, Title } from '../primitives/texts' -import { Button } from '../Button' -import { useState } from 'react' - -const images = { - dashboard: screenshotDashboard, - tests: screenshotTests, - runs: screenshotRuns, - pr: screenshotPRComments -} - -function TabHeading({ - children, - isActive, - className, - ...rest -}: React.ComponentPropsWithoutRef<'div'> & { isActive: boolean }) { - return ( -
-

- {children} -

-
- ) -} - -function FeaturesMobile({ - features -}: { - features: LandingPageFragment['testSuites']['features']['items'] -}) { - return ( -
- {features.map((feature) => ( -
- - {feature._title} - - -

- {feature.subtitle} -

-

- {feature.description} -

-
-
- -
-
- -
- ))} -
- ) -} - -function FeaturesDesktop({ - features -}: { - features: LandingPageFragment['testSuites']['features']['items'] -}) { - const [selectedIndex, setSelectedIndex] = useState(0) - return ( -
- {Array.from({ length: 4 }).map((_, index) => ( -
- ))} - - - {features.map((feature, featureIndex) => ( - - {feature._title} - - ))} - - -
- {features.map((feature, featureIndex) => ( - -

- {feature.subtitle} -

-

- {feature.description} -

- -
- -
-
-
- -
-
- ))} -
-
-
-
- ) -} - -export function TestSuites({ testSuites }: LandingPageFragment) { - return ( -
- -
- {testSuites.superTitle} - {testSuites.superTitle} -

{testSuites.subTitle}

-
- - -
-
- ) -}