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

Use ContactButton and ContactTextLink #6397

Merged
merged 9 commits into from
Jan 21, 2025
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
2 changes: 1 addition & 1 deletion packages/web/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@radix-ui/react-tabs": "1.1.2",
"@radix-ui/react-tooltip": "1.1.6",
"@tailwindcss/typography": "0.5.16",
"@theguild/components": "7.5.0",
"@theguild/components": "7.6.2",
"clsx": "2.1.1",
"date-fns": "4.1.0",
"next": "14.2.23",
Expand Down
9 changes: 3 additions & 6 deletions packages/web/docs/src/components/federation-page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactElement, ReactNode } from 'react';
import Image from 'next/image';
import { Anchor, CallToAction, Heading } from '@theguild/components';
import { Anchor, CallToAction, ContactButton, Heading } from '@theguild/components';
import { cn } from '../lib';
import { ArrowIcon } from './arrow-icon';
import { FrequentlyAskedFederationQuestions } from './frequently-asked-questions';
Expand Down Expand Up @@ -38,15 +38,12 @@ export function FederationPage(): ReactElement {
>
Try Hive for Federation
</CallToAction>
<CallToAction
<ContactButton
variant="secondary"
title="Contact our experts to learn more about GraphQL Federation"
onClick={() => {
(window as any).$crisp?.push(['do', 'chat:open']);
}}
>
Contact an Expert
</CallToAction>
</ContactButton>
</HeroLinks>
</Hero>
<Intro />
Expand Down
16 changes: 3 additions & 13 deletions packages/web/docs/src/components/got-an-idea-section.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CallToAction, DecorationIsolation, Heading } from '@theguild/components';
import { ContactButton, DecorationIsolation, Heading } from '@theguild/components';
import { cn } from '../lib';

export function GotAnIdeaSection({ className }: { className?: string }) {
Expand Down Expand Up @@ -116,19 +116,9 @@ export function GotAnIdeaSection({ className }: { className?: string }) {
<p className="mt-4 text-white/80">
Join our community to chat with us and let's build something together!
</p>
<CallToAction
href="https://the-guild.dev/contact"
variant="primary-inverted"
className="mt-8"
onClick={event => {
if (window.$crisp) {
event.preventDefault();
window.$crisp?.push(['do', 'chat:open']);
}
}}
>
<ContactButton variant="primary-inverted" className="mt-8">
Get in touch
</CallToAction>
</ContactButton>
</div>
);
}
20 changes: 3 additions & 17 deletions packages/web/docs/src/components/partners-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Link from 'next/link';
import { CodeIcon, LockOpen2Icon, RocketIcon } from '@radix-ui/react-icons';
import {
Anchor,
CallToAction,
cn,
ContactButton,
GetYourAPIGameRightSection,
Heading,
InfoCard,
Expand Down Expand Up @@ -140,22 +140,8 @@ export function PartnersPage() {
realization.
</p>
<HeroLinks>
<CallToAction
variant="primary-inverted"
onClick={() => {
(window as any).$crisp?.push(['do', 'chat:open']);
}}
>
Talk to an expert
</CallToAction>
<CallToAction
variant="secondary"
onClick={() => {
(window as any).$crisp?.push(['do', 'chat:open']);
}}
>
Become a partner
</CallToAction>
<ContactButton variant="primary-inverted">Talk to an expert</ContactButton>
<ContactButton variant="secondary">Become a partner</ContactButton>
</HeroLinks>
</Hero>
<WhyUs />
Expand Down
9 changes: 2 additions & 7 deletions packages/web/docs/src/components/pricing.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HTMLAttributes, ReactElement, ReactNode, useState } from 'react';
import { Arrow, Content, Root, Trigger } from '@radix-ui/react-tooltip';
import { CallToAction, cn } from '@theguild/components';
import { CallToAction, cn, ContactTextLink } from '@theguild/components';
import { Slider } from './slider';

function Tooltip({ content, children }: { content: string; children: ReactNode }) {
Expand Down Expand Up @@ -233,12 +233,7 @@ function PricingSlider({ className, ...rest }: { className?: string }) {
>
<span className="font-medium">Running {max}M+ operations?</span>
<br />
<button
className="underline hover:text-blue-700"
onClick={() => (window as any).$crisp?.push(['do', 'chat:open'])}
>
Talk to us
</button>
<ContactTextLink>Talk to us</ContactTextLink>
</p>
</label>
);
Expand Down
9 changes: 3 additions & 6 deletions packages/web/docs/src/pages/docs/management/organizations.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import NextImage from 'next/image'
import { Callout, Tabs } from '@theguild/components'
import { Callout, ContactTextLink, Tabs } from '@theguild/components'
import orgImage from '../../../../public/docs/pages/first-steps/org.png'
import newOrgImage from '../../../../public/docs/pages/management/create-an-organization-button.png'
import orgCustomRoleImage from '../../../../public/docs/pages/management/org-custom-role.png'
Expand Down Expand Up @@ -171,13 +171,10 @@ If you wish to upgrade your plan, you can choose between the **Pro** and **Enter
For the **Pro** plan, you can use a credit-card and pay monthly for the resevered quota that works
for your needs. You can modify your plan and resevered quota any time during the month.

<a
className="text-primary-500 mt-6 block cursor-pointer"
onClick={() => window.$crisp?.push(['do', 'chat:open'])}
>
<ContactTextLink>
For the **Enterprise** plan, please reach our to us, and we'll be happy to help you with your
custom needs.
</a>
</ContactTextLink>

#### How do I update my billing information?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@ title: 'App Deployment (Persisted Operations)'
---

import NextImage from 'next/image'
import { Callout, Tabs } from '@theguild/components'
import { Callout, ContactTextLink, Tabs } from '@theguild/components'

# App Deployments

<Callout>
<div>
App deployments are currently in preview. If you would like to try them out, please{' '}
<a
href="#"
className="inline-block underline"
onClick={() => {
window?.$crisp?.push(['do', 'chat:open'])
}}
>
reach out to us
</a>
<ContactTextLink>reach out to us</ContactTextLink>
{/* If we move the dot out of the quotations/brackets, it will be a new paragraph... */}
{'.'}
</div>
Expand Down
38 changes: 16 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading