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 card docs - André Rohman #299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
106 changes: 60 additions & 46 deletions data/blocks/block.nayGe9qHLQ.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,144 +7,158 @@
},
"guidelines": [
{
"id": "7hKoMkJNix",
"type": "do",
"content": {
"type": "doc",
"content": [
{
"type": "bulletList",
"content": [
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Consider and choose text and visual elements carefully. Test your cards with the minimal content and only add additional content or graphics where they give needed context to the user",
"type": "text"
}
],
"type": "paragraph"
]
}
],
"type": "listItem"
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Use headlines that set clear expectations about the content being linked to",
"type": "text"
}
],
"type": "paragraph"
]
}
],
"type": "listItem"
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Use one style of card per module, don't mix and match",
"type": "text"
}
],
"type": "paragraph"
]
}
],
"type": "listItem"
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Feature one piece of information per card",
"type": "text"
}
],
"type": "paragraph"
]
}
],
"type": "listItem"
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Outline the main idea with the minimal possible information, don't overload with information as the card links to more detail",
"type": "text"
}
],
"type": "paragraph"
]
}
],
"type": "listItem"
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Use the Author Demo when appropriate",
"type": "text"
}
]
}
]
}
],
"type": "bulletList"
]
}
],
"type": "doc"
},
"id": "7hKoMkJNix",
"type": "do"
]
}
},
{
"id": "lZ73kjQ5aO",
"type": "dont",
"content": {
"type": "doc",
"content": [
{
"type": "bulletList",
"content": [
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Mix card styles within the same module",
"type": "text"
}
],
"type": "paragraph"
]
}
],
"type": "listItem"
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Overload with information as the card links to more detail",
"type": "text"
}
],
"type": "paragraph"
]
}
],
"type": "listItem"
]
},
{
"type": "listItem",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Add inline text links, the card itself is clickable and should link to a single piece of information, consider using content blocks in this instance",
"type": "text"
}
],
"type": "paragraph"
]
}
],
"type": "listItem"
]
}
],
"type": "bulletList"
]
}
],
"type": "doc"
},
"id": "lZ73kjQ5aO",
"type": "dont"
]
}
}
],
"tileStyles": {
Expand Down
19 changes: 19 additions & 0 deletions data/demos/demo.2i6aBYSuPc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "2i6aBYSuPc",
"data": {
"props": {
"body": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint harum rerum voluptatem quo recusandae magni placeat saepe molestiae, sed excepturi cumque corporis perferendis hic.",
"label": "Case Study",
"title": "Improve your customer experience",
"imgSrc": "https://images.unsplash.com/photo-1492724441997-5dc865305da7?ixlib=rb-1.2.1&ixqx=exTPH5Vqg4&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1679&q=80"
},
"slots": {
"children": []
}
},
"type": "data",
"title": "Simple 2",
"patternId": "card",
"templateId": "react",
"description": ""
}
3 changes: 2 additions & 1 deletion data/knapsack.pattern.card.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"-2WvOX39hg",
"W1Xbf7ez7T",
"3c9C95vaFP",
"WXcBdSXuE9"
"WXcBdSXuE9",
"2i6aBYSuPc"
],
"blockIds": [],
"assetSetIds": ["default"]
Expand Down
Loading