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

New pricing page #461

Merged
merged 32 commits into from
Aug 28, 2024
Merged

Conversation

Brenosalv
Copy link
Collaborator

#431

Changes

  • Remove CSS and assets from old pricing page;
  • Replace old pricing page with new redesigned sections;
  • Remove all layout="constrained" from StaticImage since it already is the default value;
  • Merge pricing changes into this branch.

@Brenosalv Brenosalv added the enhancement New feature or request label Aug 22, 2024
@Brenosalv Brenosalv self-assigned this Aug 22, 2024
@Brenosalv Brenosalv linked an issue Aug 22, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Aug 22, 2024

Visit the preview URL for this PR (updated for commit 26639d8):

https://estuary-marketing--pr461-brenosalv-feature-43-70hb9hrf.web.app

(expires Fri, 27 Sep 2024 21:21:33 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 76f6b095a0752e5d9c6c890267f9fdc3e392161e

package.json Outdated Show resolved Hide resolved
Comment on lines 99 to 111
backgroundColor:
selectedIndex === index
? '#5072EB'
: '#FFFFFF',
color:
selectedIndex === index
? '#5072EB'
: '#FFFFFF',
borderColor:
selectedIndex === index
? '#5072EB'
: '#47506D',
}}
Copy link
Member

Choose a reason for hiding this comment

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

To reduce dynamic styling I think we should just mark the li as selected with a class name.

@@ -30,17 +30,30 @@ const SectionThree = () => {
}
`);

const cardsPerSlide = 3;
Copy link
Member

Choose a reason for hiding this comment

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

This should be declared outside outside the function.

) : null}
</div>
<p className={planDescriptionStyle}>{description}</p>
<div className={divider} />
Copy link
Member

Choose a reason for hiding this comment

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

Can you try to make this just use a hr tag?

@travjenkins
Copy link
Member

Now that there is an input the user can use to enter whatever number they want - we should make the step property a bit higher so you can more easily use a keyboard to control the slider
image

The input only works on tab away... I think this should probably update the slider on a debounce so the user doesn't need to tab away.
image

) => {
const inputValue = event.target.value;

if (/^\d*$/.test(inputValue)) {
Copy link
Member

Choose a reason for hiding this comment

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

Please store this regex in a const outside of the component.

export const PricingCalculator = ({
isDarkTheme = false,
}: PricingCalculatorProps) => {
const [selectedGbs, setSelectedGbs] = React.useState(1);
Copy link
Member

Choose a reason for hiding this comment

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

This applies to a few places here... can you import the hook you're using and not all of React.

travjenkins
travjenkins previously approved these changes Aug 28, 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

Adding a minimum value
travjenkins
travjenkins previously approved these changes Aug 28, 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
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 9fea904 into master Aug 28, 2024
1 check passed
@travjenkins travjenkins deleted the Brenosalv/feature/431-pricing-page-updates branch August 28, 2024 20:22
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.

Pricing Page Updates
2 participants