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(theme): draft schema and model for cards #421

Closed
wants to merge 1 commit into from

Conversation

emmenko
Copy link
Member

@emmenko emmenko commented May 5, 2020

Proposal for modelling Cards (#414)

See also #415


Motivation

Cards can be considered like MDX fragments.
Because cards have a deterministic behavior and appearance, we can model most of the information as frontmatter fields.
The body of the MDX file is the body of the card.

All cards information can then be queried in the UI components to programmatically build and render the cards.

image

@vercel
Copy link

vercel bot commented May 5, 2020

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/commercetools-docs-kit/cfn727qqm
✅ Preview: https://commercetools-docs-kit-git-nm-cards-model-draft.commercetools.now.sh

Copy link
Collaborator

@nkuehn nkuehn left a comment

Choose a reason for hiding this comment

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

I'm quite confused to be honest - cards aren't data on graphQL that live in separate files. They are JSX fragments in any regular content page.

@emmenko
Copy link
Member Author

emmenko commented May 6, 2020

What do you mean? Aren't cards supposed to be used in the landing page or intro pages?
If not, where can I find the usage requirements?

@emmenko emmenko closed this May 6, 2020
@emmenko emmenko deleted the nm-cards-model-draft branch May 6, 2020 10:02
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.

None yet

2 participants