Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SGM-7320 - Urgent, correct outdated form embed code #7323

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 2 additions & 29 deletions src/pages/cody.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { FunctionComponent, useEffect, useRef, useState } from 'react'
import { FunctionComponent, useEffect, useRef } from 'react'

import classNames from 'classnames'
import { Expand, ShieldCheck, Cloud, ChevronRightIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'

import { Layout, HubSpotForm, Modal, CodyIde, CodyPartners, ContentSection, Badge } from '../components'
import { Layout, CodyIde, CodyPartners, ContentSection, Badge } from '../components'
import { BentoWithMockup } from '../components/bentoWithMockup'
import { ContentEnum, FullWidthTabsCarousel } from '../components/Carousels/fullWidthTabsCarousel'
import CodyPlan from '../components/cody/CodyPlan'
Expand All @@ -18,8 +18,6 @@ import { breakpoints } from '../data/breakpoints'
import { useWindowWidth } from '../hooks/windowWidth'
import { captureCustomEventWithPageData } from '../lib/utils'

import styles from '../styles/CustomHubspotForm.module.scss'

const optimizedPoweritems = [
{ label: 'Claude 3.5 Sonnet', iconUrl: '/assets/cody/anthropic-icon.svg' },
{ label: 'Claude 3 Opus', iconUrl: '/assets/cody/anthropic-icon.svg' },
Expand Down Expand Up @@ -128,7 +126,6 @@ const singleViewCardContent = [
]

const CodyPage: FunctionComponent = () => {
const [isContactModalOpen, setIsContactModalOpen] = useState(false)
const windowWidth = useWindowWidth()
const isMobile = windowWidth < breakpoints.lg
const router = useRouter()
Expand Down Expand Up @@ -518,30 +515,6 @@ const CodyPage: FunctionComponent = () => {
<ContentSection>
<CodyPlan />
</ContentSection>

<Modal
open={isContactModalOpen}
handleClose={() => setIsContactModalOpen(false)}
modalBackdropClassName="cody-contact-modal"
modalClassName="bg-[#632590] border border-opacity-20 border-white px-6 py-[64px] md:px-[80px] md:py-[96px]"
>
<div className="flex flex-col gap-8 md:flex-row md:gap-10">
<div className="min-w-[200px] max-w-[513px]">
<h2 className="text-white">Get Cody where you work</h2>
<p className="mt-4 text-lg text-gray-200">
Cody for Enterprise provides context-aware answers based on your own private codebase.
Contact us through the form to learn more.
</p>
</div>
<div className={classNames('md:min-w-[400px] xl:min-w-[554px]', styles.codyForm)}>
<HubSpotForm
formId="05e46684-9fbc-4c4d-b010-f661f247c4c6"
inlineMessage="Thank you! We'll get back to you soon"
/>
</div>
</div>
</Modal>

<DevStarterPackModal />
</Layout>
)
Expand Down
27 changes: 1 addition & 26 deletions src/pages/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { FunctionComponent, useState, useEffect, FC } from 'react'
import classNames from 'classnames'
import { Link as ScrollLink } from 'react-scroll'

import { Layout, HubSpotForm, Modal, CodyCta, ContentSection } from '../components'

import styles from '../styles/CustomHubspotForm.module.scss'
import { Layout, CodyCta, ContentSection } from '../components'

const CHAT_CONTENT = [
{
Expand Down Expand Up @@ -170,7 +168,6 @@ const SECTIONS = [
]

const CodyPage: FunctionComponent = () => {
const [isContactModalOpen, setIsContactModalOpen] = useState(false)
const isLight = true
const [activeSection, setActiveSection] = useState('')

Expand Down Expand Up @@ -324,28 +321,6 @@ const CodyPage: FunctionComponent = () => {
</ContentSection>

<CodyCta source="Cody page" isCodyPage={true} isLight={true} />
<Modal
open={isContactModalOpen}
handleClose={() => setIsContactModalOpen(false)}
modalBackdropClassName="cody-contact-modal"
modalClassName="bg-[#632590] border border-opacity-20 border-white px-6 py-[64px] md:px-[80px] md:py-[96px]"
>
<div className="flex flex-col gap-8 md:flex-row md:gap-10">
<div className="min-w-[200px] max-w-[513px]">
<h2 className="text-white">Get Cody where you work</h2>
<p className="mt-4 text-lg text-gray-200">
Cody for Enterprise provides context-aware answers based on your own private codebase.
Contact us through the form to learn more.
</p>
</div>
<div className={classNames('md:min-w-[400px] xl:min-w-[554px]', styles.codyForm)}>
<HubSpotForm
formId="05e46684-9fbc-4c4d-b010-f661f247c4c6"
inlineMessage="Thank you! We'll get back to you soon"
/>
</div>
</div>
</Modal>
</Layout>
)
}
Expand Down
Loading