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

Feature/edu collections block link card #634

Merged
merged 5 commits into from
Sep 24, 2024
Merged
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
67 changes: 67 additions & 0 deletions packages/vue/src/components/BlockLinkCard/BlockLinkCard.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,70 @@ export const LargeEduExplainerArticle = {
}
}
}
export const EduCollection = {
decorators: [
() => ({
template: `<div id="storyDecorator" class="relative grid grid-cols-2 gap-3"><story/></div>`
})
],
args: {
...BlockLinkCardData,
size: 'sm',
useFeaturedStyles: true,
data: {
page: {
__typename: 'EDUCollectionsDetailPage',
...BlockLinkCardData.data,
summary:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mattis auctor magna. Quisque molestie ex metus, et aliquet nunc porttitor nec. Donec imperdiet quam dolor, ut iaculis justo ornare non. Proin finibus nulla ut lorem molestie sagittis quis ut nulla. Sed sit amet dui consectetur, aliquam tortor nec, pulvinar libero.',
primarySubject: {
subject: 'Engineering'
},
gradeLevels: [
{ gradeLevel: 'All Ages' },
{ gradeLevel: 'K' },
{ gradeLevel: '1' },
{ gradeLevel: '2' },
{ gradeLevel: '5' },
{ gradeLevel: '6' },
{ gradeLevel: '7' },
{ gradeLevel: '8' }
],
time: {
time: '1-2 hrs'
}
}
}
}
}
export const EduCollectionLarge = {
args: {
...BlockLinkCardData,
size: 'lg',
useFeaturedStyles: true,
data: {
page: {
__typename: 'EDUCollectionsDetailPage',
...BlockLinkCardData.data,
summary:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse mattis auctor magna. Quisque molestie ex metus, et aliquet nunc porttitor nec. Donec imperdiet quam dolor, ut iaculis justo ornare non. Proin finibus nulla ut lorem molestie sagittis quis ut nulla. Sed sit amet dui consectetur, aliquam tortor nec, pulvinar libero.',
primarySubject: {
subject: 'Engineering'
},
gradeLevels: [
{ gradeLevel: 'All Ages' },
{ gradeLevel: 'K' },
{ gradeLevel: '1' },
{ gradeLevel: '2' },
{ gradeLevel: '5' },
{ gradeLevel: '6' },
{ gradeLevel: '7' },
{ gradeLevel: '8' }
],
time: {
time: '1-2 hrs'
}
}
}
}
}
Loading