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

Create a pricing calculator jump link and add copy button into section #531

Conversation

Brenosalv
Copy link
Collaborator

#521

Changes

  • Add jump link id to the pricing calculator section from the pricing page;
  • Add a "Copy to clipboard" button somewhere in this section;
  • Reuse the "Copy to clipboard" button from the "Share this article" section in the blog post template.

Tests / Screenshots

image

@Brenosalv Brenosalv added the enhancement New feature or request label Oct 9, 2024
@Brenosalv Brenosalv self-assigned this Oct 9, 2024
@Brenosalv
Copy link
Collaborator Author

@SourabhEstuary I placed the copy button next to the section title since the link references the section. Do you think it would be better positioned elsewhere in the pricing calculator section?

@Brenosalv
Copy link
Collaborator Author

@SourabhEstuary By the way, the link is: https://www.estuary.dev/pricing/#pricing-calculator as requested.

travjenkins
travjenkins previously approved these changes Oct 9, 2024
Copy link
Member

@travjenkins travjenkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link

github-actions bot commented Oct 9, 2024

Visit the preview URL for this PR (updated for commit 5a744c3):

https://estuary-marketing--pr531-brenosalv-feature-52-lbts8n08.web.app

(expires Sat, 09 Nov 2024 20:34:18 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 76f6b095a0752e5d9c6c890267f9fdc3e392161e

@SourabhEstuary
Copy link
Collaborator

This looks good

Breno added 3 commits October 10, 2024 01:16
…to Brenosalv/feature/521-create-a-pricing-calculator-jump-link-for-the-calculator-section-on-the-pricing-page
<h2 className={title}>PRICING CALCULATOR</h2>
<div>
<h2 className={title}>PRICING CALCULATOR</h2>
<CopyToClipboardButton contentToCopy="https://www.estuary.dev/pricing/#pricing-calculator" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This content needs updated to use window.location.origin and not be hard coded to the current domain.

@@ -22,90 +16,50 @@ type ShareArticleProps = {
};

const ShareArticle = ({ article: { title, slug } }: ShareArticleProps) => {
const [isCopied, setIsCopied] = React.useState(false);
const [isCopyFailed, setIsCopyFailed] = React.useState(false);

const shareMessage = `Check out the article "${title}"`;

const articleUrl = `https://estuary.dev/${slug}`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make the same change here and use window.location.origin

Copy link
Member

@travjenkins travjenkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@travjenkins travjenkins merged commit 36363f6 into master Oct 10, 2024
@travjenkins travjenkins deleted the Brenosalv/feature/521-create-a-pricing-calculator-jump-link-for-the-calculator-section-on-the-pricing-page branch October 10, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a #pricing-calculator Jump-Link for the Calculator Section on the Pricing Page
3 participants