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

feat(components): add <PublicPageLayout> component #1974

Merged
merged 11 commits into from
Jan 18, 2021

Conversation

emmenko
Copy link
Member

@emmenko emmenko commented Jan 15, 2021

This PR adds a new layout component (essentially our internal "public page container" component).
This is useful for login pages (or other pages such as auth callback error page #1934 ).

@vercel
Copy link

vercel bot commented Jan 15, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/o0zlmj67y
✅ Preview: https://merchant-cente-git-nm-components-public-page-147faa.commercetools.vercel.app

@changeset-bot
Copy link

changeset-bot bot commented Jan 15, 2021

🦋 Changeset detected

Latest commit: 1cdf6aa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@commercetools-frontend/application-components Minor
@commercetools-frontend/babel-preset-mc-app Minor
merchant-center-application-template-starter Patch
@commercetools-frontend/application-shell Minor
playground Patch
@commercetools-local/visual-testing-app Patch
@commercetools-website/components-playground Patch
@commercetools-frontend/jest-preset-mc-app Minor
@commercetools-frontend/mc-scripts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +9 to +10
// https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
import base64Background from /* preval */ './public-background';
Copy link
Member Author

Choose a reason for hiding this comment

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

🔥

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Preval and macros!

@vercel vercel bot temporarily deployed to Preview January 16, 2021 09:02 Inactive
@vercel vercel bot temporarily deployed to Preview January 18, 2021 08:45 Inactive
@emmenko emmenko marked this pull request as ready for review January 18, 2021 09:13
it('should render welcome message and footer', async () => {
renderComponent(
<PublicPageLayout welcomeMessage="Welcome to the Merchant Center">
{'Test'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: should this work?

Suggested change
{'Test'}
Test

Comment on lines +9 to +10
// https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
import base64Background from /* preval */ './public-background';
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Preval and macros!

/**
* The `normal` scale uses an horizontal contraint size of `8` (384px).
* The `wide` scale uses an horizontal contraint size of `15` (742px).
* The `wide` scale can be used for
Copy link
Contributor

Choose a reason for hiding this comment

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

for... what?

@vercel vercel bot temporarily deployed to Preview January 18, 2021 15:13 Inactive
@emmenko emmenko merged commit dc7a443 into master Jan 18, 2021
@emmenko emmenko deleted the nm-components-public-page-layout branch January 18, 2021 15:45
@ghost ghost mentioned this pull request Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants