|
1 | 1 | "use client"; |
2 | 2 |
|
3 | | -import { Discord, Github } from "@arcadeai/design-system"; |
| 3 | +import { |
| 4 | + Dialog, |
| 5 | + DialogContent, |
| 6 | + Discord, |
| 7 | + Github, |
| 8 | +} from "@arcadeai/design-system"; |
4 | 9 | import { HeartPulse, Mail, Shield, Users } from "lucide-react"; |
| 10 | +import { useEffect, useRef, useState } from "react"; |
5 | 11 | import { QuickStartCard } from "../../../_components/quick-start-card"; |
6 | 12 |
|
7 | 13 | export function ContactCards() { |
| 14 | + const [isSalesModalOpen, setIsSalesModalOpen] = useState(false); |
| 15 | + const scriptLoadedRef = useRef(false); |
| 16 | + |
| 17 | + useEffect(() => { |
| 18 | + // Load HubSpot script once |
| 19 | + if (!scriptLoadedRef.current) { |
| 20 | + const script = document.createElement("script"); |
| 21 | + script.src = "https://js-na2.hsforms.net/forms/embed/39979532.js"; |
| 22 | + script.defer = true; |
| 23 | + document.body.appendChild(script); |
| 24 | + scriptLoadedRef.current = true; |
| 25 | + } |
| 26 | + }, []); |
| 27 | + |
8 | 28 | return ( |
9 | | - <div className="mt-16 grid gap-8 md:grid-cols-2 lg:grid-cols-3"> |
10 | | - <QuickStartCard |
11 | | - description="Get help with technical issues, account questions, and general inquiries from our support team. Email support is available for customers on paid plans." |
12 | | - |
13 | | - icon={Mail} |
14 | | - title="Email Support" |
15 | | - /> |
16 | | - <QuickStartCard |
17 | | - description="Discuss enterprise plans, pricing, and how Arcade can help your organization build better, safer agents." |
18 | | - |
19 | | - icon={Users} |
20 | | - title="Contact Sales" |
21 | | - /> |
22 | | - <QuickStartCard |
23 | | - description="Join our Discord community for real-time help from the community, to connect with other developers, and stay updated on new features and announcements." |
24 | | - href="https://discord.gg/GUZEMpEZ9p" |
25 | | - icon={Discord} |
26 | | - title="Discord Community" |
27 | | - /> |
28 | | - <QuickStartCard |
29 | | - description="Report bugs, request features, and contribute to Arcade. You can report problems via Github Issues or start a discussion on Github Discussions." |
30 | | - href="https://github.com/ArcadeAI/arcade-mcp" |
31 | | - icon={Github} |
32 | | - title="GitHub Issues & Discussions" |
33 | | - /> |
34 | | - <QuickStartCard |
35 | | - description="Report security vulnerabilities responsibly. Learn about our security research program and disclosure process." |
36 | | - href="/home/security" |
37 | | - icon={Shield} |
38 | | - title="Security Research" |
39 | | - /> |
40 | | - <QuickStartCard |
41 | | - description="Check the current status of Arcade's services, view incident history, and subscribe to updates." |
42 | | - href="https://status.arcade.dev" |
43 | | - icon={HeartPulse} |
44 | | - title="System Status" |
45 | | - /> |
46 | | - </div> |
| 29 | + <> |
| 30 | + <div className="mt-16 grid gap-8 md:grid-cols-2 lg:grid-cols-3"> |
| 31 | + <QuickStartCard |
| 32 | + description="Get help with technical issues, account questions, and general inquiries from our support team. Email support is available for customers on paid plans." |
| 33 | + |
| 34 | + icon={Mail} |
| 35 | + title="Email Support" |
| 36 | + /> |
| 37 | + <QuickStartCard |
| 38 | + description="Discuss enterprise plans, pricing, and how Arcade can help your organization build better, safer agents." |
| 39 | + icon={Users} |
| 40 | + onClick={() => setIsSalesModalOpen(true)} |
| 41 | + title="Contact Sales" |
| 42 | + /> |
| 43 | + <QuickStartCard |
| 44 | + description="Join our Discord community for real-time help from the community, to connect with other developers, and stay updated on new features and announcements." |
| 45 | + href="https://discord.gg/GUZEMpEZ9p" |
| 46 | + icon={Discord} |
| 47 | + title="Discord Community" |
| 48 | + /> |
| 49 | + <QuickStartCard |
| 50 | + description="Report bugs, request features, and contribute to Arcade. You can report problems via Github Issues or start a discussion on Github Discussions." |
| 51 | + href="https://github.com/ArcadeAI/arcade-mcp" |
| 52 | + icon={Github} |
| 53 | + title="GitHub Issues & Discussions" |
| 54 | + /> |
| 55 | + <QuickStartCard |
| 56 | + description="Report security vulnerabilities responsibly. Learn about our security research program and disclosure process." |
| 57 | + href="/home/security" |
| 58 | + icon={Shield} |
| 59 | + title="Security Research" |
| 60 | + /> |
| 61 | + <QuickStartCard |
| 62 | + description="Check the current status of Arcade's services, view incident history, and subscribe to updates." |
| 63 | + href="https://status.arcade.dev" |
| 64 | + icon={HeartPulse} |
| 65 | + title="System Status" |
| 66 | + /> |
| 67 | + </div> |
| 68 | + <Dialog |
| 69 | + onOpenChange={(open) => !open && setIsSalesModalOpen(false)} |
| 70 | + open={isSalesModalOpen} |
| 71 | + > |
| 72 | + <DialogContent className="border-gray-800 bg-gray-900 sm:max-w-[500px]"> |
| 73 | + <div className="py-4"> |
| 74 | + <div |
| 75 | + className="hs-form-frame" |
| 76 | + data-form-id="aa1d8f09-6368-461d-bb27-d49bc056e3df" |
| 77 | + data-portal-id="39979532" |
| 78 | + data-region="na2" |
| 79 | + /> |
| 80 | + </div> |
| 81 | + </DialogContent> |
| 82 | + </Dialog> |
| 83 | + </> |
47 | 84 | ); |
48 | 85 | } |
0 commit comments