Skip to content

Commit f3a9f79

Browse files
committed
Fixes enterprise-related stuff
1 parent 32cae25 commit f3a9f79

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

apps/web-roo-code/src/app/pricing/page.tsx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Link from "next/link"
44

55
import { Button } from "@/components/ui"
66
import { AnimatedBackground } from "@/components/homepage"
7+
import { ContactForm } from "@/components/enterprise/contact-form"
78
import { SEO } from "@/lib/seo"
89
import { EXTERNAL_LINKS } from "@/lib/constants"
910

@@ -64,7 +65,8 @@ interface PricingTier {
6465
features: string[]
6566
cta: {
6667
text: string
67-
href: string
68+
href?: string
69+
isContactForm?: boolean
6870
}
6971
}
7072

@@ -133,7 +135,7 @@ const pricingTiers: PricingTier[] = [
133135
],
134136
cta: {
135137
text: "Talk to Sales",
136-
href: "/enterprise#contact",
138+
isContactForm: true,
137139
},
138140
},
139141
]
@@ -205,11 +207,19 @@ export default function PricingPage() {
205207
</p>
206208
<p className="text-xs text-muted-foreground">{tier.cancellation}&nbsp;</p>
207209

208-
<Button size="lg" className="w-full mt-2 transition-all duration-300" asChild>
209-
<Link href={tier.cta.href} className="flex items-center justify-center">
210-
{tier.cta.text}
211-
</Link>
212-
</Button>
210+
{tier.cta.isContactForm ? (
211+
<ContactForm
212+
formType="demo"
213+
buttonText={tier.cta.text}
214+
buttonClassName="w-full mt-2 transition-all duration-300"
215+
/>
216+
) : (
217+
<Button size="lg" className="w-full mt-2 transition-all duration-300" asChild>
218+
<Link href={tier.cta.href!} className="flex items-center justify-center">
219+
{tier.cta.text}
220+
</Link>
221+
</Button>
222+
)}
213223
</div>
214224
)
215225
})}

apps/web-roo-code/src/components/chromes/footer.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,6 @@ export function Footer() {
194194
Careers
195195
</a>
196196
</li>
197-
<li>
198-
<a
199-
href={EXTERNAL_LINKS.BLOG}
200-
target="_blank"
201-
rel="noopener noreferrer"
202-
className="text-sm leading-6 text-muted-foreground transition-colors hover:text-foreground">
203-
Blog
204-
</a>
205-
</li>
206197
<li>
207198
<Link
208199
href="/terms"

apps/web-roo-code/src/components/chromes/nav-bar.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ export function NavBar({ stars, downloads }: NavBarProps) {
4040
className="text-muted-foreground px-4 py-6 transition-transform duration-200 hover:scale-105 hover:text-foreground max-lg:hidden">
4141
Product
4242
</ScrollButton>
43-
<Link
44-
href="/enterprise"
45-
className="text-muted-foreground px-4 py-6 transition-transform duration-200 hover:scale-105 hover:text-foreground">
46-
Enterprise
47-
</Link>
4843
<a
4944
href={EXTERNAL_LINKS.DOCUMENTATION}
5045
target="_blank"
@@ -147,12 +142,6 @@ export function NavBar({ stars, downloads }: NavBarProps) {
147142
onClick={() => setIsMenuOpen(false)}>
148143
Product
149144
</ScrollButton>
150-
<Link
151-
href="/enterprise"
152-
className="block w-full p-5 py-3 text-left text-foreground active:opacity-50"
153-
onClick={() => setIsMenuOpen(false)}>
154-
Enterprise
155-
</Link>
156145
<a
157146
href={EXTERNAL_LINKS.DOCUMENTATION}
158147
target="_blank"

0 commit comments

Comments
 (0)